AN202
V1.0 | Page 30/73
www.cmostek.com
4.1.20
PCON
(
Addr:0x8E
)
Table 4-37. PCON Register
Name
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
PCON
-
-
-
-
-
-
/POR
/BOR
Reset
-
-
-
-
-
-
q
q
Type
-
-
-
-
-
-
RW
RW
Table 4-38. PCONBit Function Description
4.1.21
OSCCON
(
Addr:0x8F
)
Table 4-39. OSCCON Register
Name
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
OSCCON
LFMOD
IRCF<2:0>
OSTS
HTS
LTS
SCS
Reset
0
101
1
0
0
0
Type
RW
RW
R
R
R
RW
Table 4-40. OSCCONBit Function Description
2
OSFIE
Oscillator Fail Interrupt Enable bit
1 = Enable the oscillator fail interrupt
0 = Disable the oscillator fail interrupt
1
TMR2IE
Timer2 to PR2 Match Interrupt Enable bit
1 = Enable
0 = Disable
Bit
Name
Function
1
/POR
Power-onReset Status bit, active low
0 = A Power-onReset occured
1 = No Power-on Reset occured or software set it to 1.
/POR is set to 0 after a Power-onReset occurs.After that, the software should set it to 1.
0
/BOR
Brown-out Reset Status bit, active low
0 = A Brown-out Reset occured
1 = No Brown-out Reset occurred or software set it to 1.
Bit
Name
Function
7
LFMOD
Internal Low Frequency OscillationMode:
1 = 256K oscillation frequency mode
0 = 32K oscillation frequency mode
6:4
IRCF<2:0>
Internal Oscillator Frequency Select bits
111 = 16MHz