PIC12F508/509
PIC12F508/509 Rev. A Silicon/Data Sheet Errata
The PIC12F508/509 parts you have received conform
functionally to the Device Data Sheet (DS41236C),
except for the anomalies described below.
2. Module: PIC12F509 debugging with ICD2
(PIC16F505-ICD silicon) – Invalid
FSR Power-Up Initialization
All problems listed here will be addressed in future
revisions of the PIC12F508/509 silicon. Where noted,
problems apply to listed revision only.
The FSR on the PIC16F505-ICD debugger silicon
initializes to an invalid state. When using the ICD to
debug software with the PIC16F505-ICD, bit 5 in the
FSR register must be manually cleared to ‘0’ prior to
saving data in user RAM space. The power-up default
is ‘1’, which causes the device to Access Bank 1. The
power-up defaults are correct on the non-ICD version
of the PIC12F509 devices.
1. Module: MPLAB® IDE, Revision 6.61 and
Earlier
MPLAB IDE 6.61 does not look for or set the
Configuration Word in the hex file at the conven-
tional logical location of 0xFFF.
Work around:
Work around:
Add the following line of code to the top of your
program;
The CONFIG data must be assigned in two
locations within the assembly code to ensure
proper Configuration Word placement in the hex
file. This is only required for MPLAB IDE version
6.61 and earlier.
BCF FSR,5 ;set bank pointers to bank 0
This will have no effect on non-ICD devices, but will
correct for the initialization errata on -ICD devices.
Fixed Code
3. Module: IPD, Power-Down Base current
org
0xYYYY
data
_CP_OFF & _WDT_ON & etc.
On the PIC12F508/509 silicon, revisions earlier
than A3, the power-down base current may remain
higher than the specification for a short time when
entering Sleep.
__CONFIG _CP_OFF & _WDT_ON & etc.
Re-locatable Code
.config
code 0xYYYY
The following graph illustrates the device current
upon entering Sleep:
data
data _CP_OFF & _WDT_ON &
etc.
FIGURE 1:
__CONFIG data _CP_OFF & _WDT_ON &
etc.
IDD
Configuration Word Address
Device
PIC12F508
PIC12F509
YYYY
03FF
07FF
IPD
Time
Note: YYYY is the address of the Configuration
Word for the part.
Device enters
Sleep
Device current
reaches IPD
The length of time between the device entering
Sleep mode and the device current reaching IPD
increases as both temperature and voltage
decrease.
Work around
This issue is fixed in Revisions A3 and later.
© 2007 Microchip Technology Inc.
DS80190G-page 1