Information

PIC24HJ32GP202/204 and PIC24HJ16GP304
DS80467G-page 8 © 2009-2011 Microchip Technology Inc.
23. Module: ADC
If the ADC module is in an enabled state when the
device enters Sleep mode as a result of executing
a PWRSAV #0 instruction, the device power-down
current (I
PD) may exceed the specifications listed
in the device data sheet. This may happen even if
the ADC module is disabled by clearing the ADON
bit prior to entering Sleep mode.
Work around 1:
In order to remain within the IPD specifications
listed in the device data sheet, the user software
must completely disable the ADC module by
setting the ADC Module Disable bit in the
corresponding Peripheral Module Disable register
(PMDx), prior to executing a PWRSAV #0
instruction.
Work around 2:
If the ADC module was previously initialized and
enabled, before entering Sleep, execute the lines
of code provided in Example 1.
Affected Silicon Revisions
24. Module: All
The affected silicon revisions listed below are not
warranted for operation at 150ºC.
Work around
Only use the affected revisions of silicon for Hi-Temp
operating range from -40ºC to +140ºC.
Affected Silicon Revisions
EXAMPLE 1:
Note: The ADC module must be reinitialized by
the user application before resuming ADC
operation.
Note: Unlike Work around 1, the user
application does not need to reinitialize
the ADC module; however, it is necessary
to re-enable the ADC module by setting
the ADON bit after waking from Sleep.
A2 A3 A4 A5
A6
XXXXX
A2 A3 A4 A5 A6
XXXX
AD1CON1bits.ADON = 0; //Disable the ADC module
__asm__ volatile ("REPEAT #50"); //Wait 50 Tcy
__asm__ volatile ("NOP"); //Repeat NOP 51 times
Sleep(); // Execute PWRSAV #0 and go to Sleep