| Oricom Technologies
www.oricomtech.com |
|
Go to: Weblinks Main Index
PIC Microcontroller book on-line: mikroelektronika.co.yu
<| Companies with PIC-Based Products
|
|
<| PIC Link MetaList
The following is a list of websites with information on PIC controllers, as well as lists of links to similar sites.
<| PIC Software and Projects
<| !! PIC ERRATA ALERT !! - (in case you haven't heard about some of the problems that plague PIC developers) - [note added summer 2000]
The Microchip datasheet DOES mention using a 100-1000 ohm series resistor in the -MCLR line to limit current flowing from an external capacitor "in the event of MCLR pin breakdown due to ESD or EOS" - so Microchip appears to be aware of the general susceptibility of this pin, but their use of the term "in the event of" is some kind of doubletalk. In fact, tying a capacitor directly to the pin is the source of the electrical overstress.
Another way to look at this is that, you can take the same working source code, program the chip twice in succession, and it may run differently in the two cases - if the chip was not erased for a long enough period prior to reprogramming.
PIC Fun'n'Games = "Hold RB3 Low" - circa 01 March 2002. [Note - this issue has been around for a while, but as noted below, it has only been a problem for us with the latest batches of PICs].
We have been programming Microchip PIC16F876 and several other 'F87x flash controllers for almost 2 years now using our vintage programmer with no problems. We use HVP [13v high voltage programming] exclusively. Suddenly, week of 24 February, we received a new batch of 'F876 chips and could no longer read/write/erase them.
Turns out you have to hold RB3 low during the HVP programming cycle to access the chips properly. We found this to be the case with chips from 2 out of 3 different batches purchased during the aforementioned week. This was not the case with the many, many chips programmed previously. There has been some mention of this problem on piclist/etc, but we had not encountered it with the 'F876, or with 'F873 or 'F874, chips until this point in time.
It is difficult to find reference to this issue on the Microchip site - it is mentioned in 2 errata sheets, although not for the chips we have been using. See Microchip errata page, and download the errata sheets for 16F870 and 16F872 chips. We also talked to customer service at two of our chip suppliers, and they were remarkably unaware of this problem.
The Fix. The solution to this problem is a programmer hardware modification. If using a programmer that performs HVP, wire the RB3 pin to ground using a low value resistor. Some people use a short, Microchip suggests a 10K resistor. We use 150 ohms. Note - there is apparently a similar issue with the 16F62x chips regarding pin RB4. See also: piclist.com and piclist.com
Another point to keep in mind. If you use LVP with the 'F87x flash parts, RB3 must be kept low on your target board (and therefore is not available for normal I/O), else the chip will leave operational mode and enter programming mode.
<| Scenix -(like PICs on turbo-boost)
<| Misc