Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #376949 > unrolled thread

OT: MPLAB problems

Started byRobert Baer <robertbaer@localnet.com>
First post2015-09-14 18:50 -0700
Last post2015-09-16 19:33 -0700
Articles 9 — 5 participants

Back to article view | Back to sci.electronics.design


Contents

  OT: MPLAB problems Robert Baer <robertbaer@localnet.com> - 2015-09-14 18:50 -0700
    Re: OT: MPLAB problems Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-09-14 18:52 -0700
      Re: OT: MPLAB problems Martin Riddle <martin_ridd@verizon.net> - 2015-09-15 00:08 -0400
        Re: OT: MPLAB problems Robert Baer <robertbaer@localnet.com> - 2015-09-15 21:45 -0700
      Re: OT: MPLAB problems Robert Baer <robertbaer@localnet.com> - 2015-09-15 21:42 -0700
        Re: OT: MPLAB problems Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2015-09-15 22:07 -0700
    Re: OT: MPLAB problems piglet <erichpwagner@hotmail.com> - 2015-09-16 08:41 +0100
      Re: OT: MPLAB problems Ian Malcolm <See.My.Sig.for.email@totally.invalid> - 2015-09-16 11:29 +0000
    Re: OT: MPLAB problems Robert Baer <robertbaer@localnet.com> - 2015-09-16 19:33 -0700

#376949 — OT: MPLAB problems

FromRobert Baer <robertbaer@localnet.com>
Date2015-09-14 18:50 -0700
SubjectOT: MPLAB problems
Message-ID<TPKJx.11982$pu3.8986@fx23.iad>
   Programming.
   It seems to be proven that the clock MUST run in order for the PIC to 
be programmed (not verified for the erase function).
   THAT was the major source of problems seen.
   Why the h*ll a "verify" comes back when it is plain afterwards the 
PIC is blank i do not know.
   Maybe that is related to the fact that "Read" does nothing.

[toc] | [next] | [standalone]


#376950

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2015-09-14 18:52 -0700
Message-ID<5euevaptlijdu3i2ejg8sgc1s4k8cj8vqg@4ax.com>
In reply to#376949
On Mon, 14 Sep 2015 18:50:45 -0700, Robert Baer
<robertbaer@localnet.com> wrote:

>   Programming.
>   It seems to be proven that the clock MUST run in order for the PIC to 
>be programmed (not verified for the erase function).
>   THAT was the major source of problems seen.
>   Why the h*ll a "verify" comes back when it is plain afterwards the 
>PIC is blank i do not know.
>   Maybe that is related to the fact that "Read" does nothing.

Sounds like a Baer problem >:-}
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
I love to cook with wine.     Sometimes I even put it in the food.

[toc] | [prev] | [next] | [standalone]


#376968

FromMartin Riddle <martin_ridd@verizon.net>
Date2015-09-15 00:08 -0400
Message-ID<2e6fvathcvkbhaav7evj7p9mmm1lbmg9n5@4ax.com>
In reply to#376950
On Mon, 14 Sep 2015 18:52:28 -0700, Jim Thompson
<To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:

>On Mon, 14 Sep 2015 18:50:45 -0700, Robert Baer
><robertbaer@localnet.com> wrote:
>
>>   Programming.
>>   It seems to be proven that the clock MUST run in order for the PIC to 
>>be programmed (not verified for the erase function).
>>   THAT was the major source of problems seen.
>>   Why the h*ll a "verify" comes back when it is plain afterwards the 
>>PIC is blank i do not know.
>>   Maybe that is related to the fact that "Read" does nothing.
>
>Sounds like a Baer problem >:-}
>		
>                                        ...Jim Thompson

Wait untill he upgrades to Win 7  ;D

Cheers

[toc] | [prev] | [next] | [standalone]


#377096

FromRobert Baer <robertbaer@localnet.com>
Date2015-09-15 21:45 -0700
Message-ID<Gt6Kx.81718$sc3.56306@fx21.iad>
In reply to#376968
Martin Riddle wrote:
> On Mon, 14 Sep 2015 18:52:28 -0700, Jim Thompson
> <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>  wrote:
>
>> On Mon, 14 Sep 2015 18:50:45 -0700, Robert Baer
>> <robertbaer@localnet.com>  wrote:
>>
>>>    Programming.
>>>    It seems to be proven that the clock MUST run in order for the PIC to
>>> be programmed (not verified for the erase function).
>>>    THAT was the major source of problems seen.
>>>    Why the h*ll a "verify" comes back when it is plain afterwards the
>>> PIC is blank i do not know.
>>>    Maybe that is related to the fact that "Read" does nothing.
>>
>> Sounds like a Baer problem>:-}
>> 		
>>                                         ...Jim Thompson
>
> Wait untill he upgrades to Win 7  ;D
>
> Cheers
   It will act differently in Win7?
   I can try that tonight as i have 2 Win7 HDs to sacrifice to the gods 
of bits&gates.

[toc] | [prev] | [next] | [standalone]


#377094

FromRobert Baer <robertbaer@localnet.com>
Date2015-09-15 21:42 -0700
Message-ID<Qq6Kx.4198$Sx2.684@fx31.iad>
In reply to#376950
Jim Thompson wrote:
> On Mon, 14 Sep 2015 18:50:45 -0700, Robert Baer
> <robertbaer@localnet.com>  wrote:
>
>>    Programming.
>>    It seems to be proven that the clock MUST run in order for the PIC to
>> be programmed (not verified for the erase function).
>>    THAT was the major source of problems seen.
>>    Why the h*ll a "verify" comes back when it is plain afterwards the
>> PIC is blank i do not know.
>>    Maybe that is related to the fact that "Read" does nothing.
>
> Sounds like a Baer problem>:-}
> 		
>                                          ...Jim Thompson
   Try it yourself first, then rag on me.

[toc] | [prev] | [next] | [standalone]


#377106

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2015-09-15 22:07 -0700
Message-ID<67uhval2o6cif135s2c94hvu51b6j2op8n@4ax.com>
In reply to#377094
On Tue, 15 Sep 2015 21:42:26 -0700, Robert Baer
<robertbaer@localnet.com> wrote:

>Jim Thompson wrote:
>> On Mon, 14 Sep 2015 18:50:45 -0700, Robert Baer
>> <robertbaer@localnet.com>  wrote:
>>
>>>    Programming.
>>>    It seems to be proven that the clock MUST run in order for the PIC to
>>> be programmed (not verified for the erase function).
>>>    THAT was the major source of problems seen.
>>>    Why the h*ll a "verify" comes back when it is plain afterwards the
>>> PIC is blank i do not know.
>>>    Maybe that is related to the fact that "Read" does nothing.
>>
>> Sounds like a Baer problem>:-}
>> 		
>>                                          ...Jim Thompson
>   Try it yourself first, then rag on me.

Rag. Rag >:-}
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| San Tan Valley, AZ 85142     Skype: skypeanalog  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
I love to cook with wine.     Sometimes I even put it in the food.

[toc] | [prev] | [next] | [standalone]


#377126

Frompiglet <erichpwagner@hotmail.com>
Date2015-09-16 08:41 +0100
Message-ID<mtb6cc$gi3$1@dont-email.me>
In reply to#376949
On 15/09/2015 02:50, Robert Baer wrote:
>    Programming.
>    It seems to be proven that the clock MUST run in order for the PIC to
> be programmed (not verified for the erase function).

I have never seen that behavoir. Port pin RB6 is the serial clock for 
programming and must be driven by the programming adapter. The processor 
clock (whether internal RC, external RC, lf crystal, hf crystal etc) is 
*not* required in either high voltage mode (13V on MCLR) or low-voltage 
mode (logic 1 on RB4 if config bit enabled).

piglet

[toc] | [prev] | [next] | [standalone]


#377144

FromIan Malcolm <See.My.Sig.for.email@totally.invalid>
Date2015-09-16 11:29 +0000
Message-ID<XnsA5177F62C3FE30xDEADBEEF@213.239.209.88>
In reply to#377126
piglet <erichpwagner@hotmail.com> wrote in
news:mtb6cc$gi3$1@dont-email.me: 

> On 15/09/2015 02:50, Robert Baer wrote:
>>    Programming.
>>    It seems to be proven that the clock MUST run in order for the PIC
>>    to 
>> be programmed (not verified for the erase function).
> 
> I have never seen that behavoir. Port pin RB6 is the serial clock for 
> programming and must be driven by the programming adapter. The
> processor clock (whether internal RC, external RC, lf crystal, hf
> crystal etc) is *not* required in either high voltage mode (13V on
> MCLR) or low-voltage mode (logic 1 on RB4 if config bit enabled).
> 
> piglet
> 
> 

In fact on some older PICs, it is advisable to disable the clock during
programming, if /MCLR is significantly loaded as transitions on OSC1
while /MCLR is rising to the minimum Vpp threshold can cause the program
counter to increment and as it is used for programming mode addressing,
this corrupts the code programmed by ofssetting its address.   Its not
an issue for current parts as entry into programming mode now resets the
program counter. 

There are also issues with reprogramming any PIC that has a running
oscillator, and is loaded with code that has /MCLR disabled and uses the
PGC and/or PGD pins as outputs, as the code may initialise the pins
before the programmer can enter programming mode resulting in a level
conflict. 

If you need to disable a PIC RC or any crystal oscilator mode for
programming, simply ground OSC1, however beware of two speed startup
(IESO) or failsafe clock monitoring (FCM) being enabled in the CONFIG
(if implemented) as the internal oscillator will thn take over. -- 
Ian Malcolm.   London, ENGLAND.  (NEWSGROUP REPLY PREFERRED) 
ianm[at]the[dash]malcolms[dot]freeserve[dot]co[dot]uk 
[at]=@, [dash]=- & [dot]=. *Warning* HTML & >32K emails --> NUL

[toc] | [prev] | [next] | [standalone]


#377253

FromRobert Baer <robertbaer@localnet.com>
Date2015-09-16 19:33 -0700
Message-ID<gEpKx.5$jN2.0@fx25.iad>
In reply to#376949
Robert Baer wrote:
> Programming.
> It seems to be proven that the clock MUST run in order for the PIC to be
> programmed (not verified for the erase function).
> THAT was the major source of problems seen.
> Why the h*ll a "verify" comes back when it is plain afterwards the PIC
> is blank i do not know.
> Maybe that is related to the fact that "Read" does nothing.
   PITA. Trying various as well as outrageous code changes and seeing NO 
timing changes gets a bit hair-pulling.

   Got it working.
   Problem is, if one makes changes in the code, you must use a NEW 
project name; otherwise code from previous time gets written.
   READ will work if you generate empty, new project.

[toc] | [prev] | [standalone]


Back to top | Article view | sci.electronics.design


csiph-web