PIC12F519 Microchip Technology, PIC12F519 Datasheet - Page 48

no-image

PIC12F519

Manufacturer Part Number
PIC12F519
Description
8-Bit Flash Microcontroller
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12F519-I/MC
Manufacturer:
SST
Quantity:
101
Part Number:
PIC12F519-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12F519-I/SN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12F519-I/SN
0
Part Number:
PIC12F519T-I/MC
Manufacturer:
MICROCHIP
Quantity:
1 001
www.DataSheet4U.com
PIC12F519
8.7
The TO, PD and (RBWUF) bits in the STATUS register
can be tested to determine if a Reset condition has
been caused by a power-up condition, a MCLR or
Watchdog Timer (WDT) Reset.
TABLE 8-7:
8.8
A device may be powered down (Sleep) and later
powered up (wake-up from Sleep).
8.8.1
The Power-down mode is entered by executing a
SLEEP instruction.
If enabled, the Watchdog Timer will be cleared but
keeps running, the TO bit (STATUS<4>) is set, the PD
bit (STATUS<3>) is cleared and the oscillator driver is
turned off. The I/O ports maintain the status they had
before the SLEEP instruction was executed (driving
high, driving low or high-impedance).
For lowest current consumption while powered down,
the T0CKI input should be at V
RB3/MCLR/V
MCLR is enabled.
DS41319A-page 46
Legend: u = unchanged
Note 1:
RBWUF
Note:
0
0
0
0
0
1
Time-out Sequence, Power-down
and Wake-up from Sleep Status
Bits (TO, PD, RBWUF)
Power-down Mode (Sleep)
The TO, PD and RBWUF bits maintain
their status (u) until a Reset occurs. A
low-pulse on the MCLR input does not
change the TO, PD and RBWUF Status
bits.
SLEEP
A Reset generated by a WDT time-out
does not drive the MCLR pin low.
TO
PP
0
0
1
1
u
1
pin must be at a logic high level if
TO/PD/(RBWUF) STATUS
AFTER RESET
PD
0
u
0
1
u
0
WDT wake-up from Sleep
WDT time-out (not from
Sleep)
MCLR wake-up from Sleep
Power-up
MCLR not during Sleep
Wake-up from Sleep on pin
change
Reset Caused By
DD
or V
SS
and the
Preliminary
8.8.2
The device can wake-up from Sleep through one of
the following events:
1.
2.
3.
These events cause a device Reset. The TO, PD and
RBWUF bits can be used to determine the cause of
device Reset. The TO bit is cleared if a WDT time-out
occurred (and caused wake-up). The PD bit, which is
set on power-up, is cleared when SLEEP is invoked.
The RBWUF bit indicates a change in state while in
Sleep at pins RB0, RB1 and RB3 (since the last file or
bit operation on RB port).
The WDT is cleared when the device wakes from
Sleep, regardless of the wake-up source.
Note:
An external Reset input on RB3/MCLR/V
when configured as MCLR.
A Watchdog Timer Time-out Reset (if WDT was
enabled).
A change on input pin RB0, RB1 and RB3 when
wake-up on change is enabled.
WAKE-UP FROM SLEEP
Caution: Right before entering Sleep,
read the input pins. When in Sleep, wake
up occurs when the values at the pins
change from the state they were in at the
last reading. If a wake-up on change
occurs and the pins are not read before
re-entering Sleep, a wake-up will occur
immediately even if no pins change while
in Sleep mode.
© 2007 Microchip Technology Inc.
PP
pin,

Related parts for PIC12F519