DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16LF1938-ESP View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC16LF1938-ESP Datasheet PDF : 418 Pages
First Prev 61 62 63 64 65 66 67 68 69 70 Next Last
PIC16F193X/LF193X
3.9 Power Control (PCON) Register
The Power Control (PCON) register has six Status bits
to indicate what type of Reset that last occurred.
3.9.1 PCON REGISTER
The Power Control (PCON) register contains flag bits
(refer to Table 3-6) to differentiate between a:
• Power-on Reset (POR)
• Brown-out Reset (BOR)
• Reset Instruction Reset (RI)
• Stack Overflow Reset (STKOVF)
• Stack Underflow Reset (STKUVF)
The PCON register also controls the software enable of
the BOR.
The PCON register bits are shown in Register 3-3.
REGISTER 3-3: PCON: POWER CONTROL REGISTER
R/W-0/q
R/W-0/q
U-0
STKOVF
STKUNF
bit 7
U-0
R/W-1/q
RMCLR
R/W-1/q
RI
R/W-q/u
POR
R/W-q/u
BOR
bit 0
Legend:
R = Readable bit
u = bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
q = Value depends on condition
bit 7
bit 6
bit 5-4
bit 3
bit 2
bit 1
bit 0
STKOVF: Stack Overflow Flag bit
1 = A Stack Overflow occurred (more CALLs than fit on the stack)
0 = A Stack Overflow has not occurred or set to ‘0’ by firmware
STKUNF: Stack Underflow Flag bit
1 = A Stack Underflow occurred (more RETURNs than CALLs)
0 = A Stack Underflow has not occurred or set to ‘0’ by firmware
Unimplemented: Read as ‘0
RMCLR: MCLR Reset Flag bit
1 = A MCLR Reset has not occurred or set to ‘1’ by firmware
0 = A MCLR Reset has occurred (set to ‘0’ in hardware when a MCLR Reset occurs)
RI: RESET Instruction Flag bit
1 = A RESET instruction has not been executed or set to ‘1’ by firmware
0 = A RESET instruction has been executed (set to ‘0’ in hardware upon executing a RESET instruction)
POR: Power-on Reset Status bit
1 = No Power-on Reset occurred
0 = A Power-on Reset occurred (must be set in software after a Power-on Reset occurs)
BOR: Brown-out Reset Status bit
1 = No Brown-out Reset occurred
0 = A Brown-out Reset occurred (must be set in software after a Power-on Reset or Brown-out Reset
occurs)
© 2009 Microchip Technology Inc.
Preliminary
DS41364B-page 65

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]