24
4428E–8051–02/08
AT/TS80C31X2
13. Power-Off Flag
The power-off flag allows the user to distinguish between a “cold start” reset and a “warm start”
reset.
A cold start reset is the one induced by VCC switch-on. A warm start reset occurs while VCC is still
applied to the device and could be generated for example by an exit from power-down.
The power-off flag (POF) is located in PCON register (See Table 13-1.). POF is set by hardware
when VCC rises from 0 to its nominal voltage. The POF can be set or cleared by software allow-
ing the user to determine the type of reset.
The POF value is only relevant with a Vcc range from 4.5V to 5.5V. For lower Vcc value, reading
POF bit will return indeterminate value.
Table 13-1.
PCON Register -- PCON - Power Control Register (87h)
Reset Value = 00X1 0000b
Not bit addressable
7
6
5
4
3
2
1
0
SMOD1
SMOD0
-
POF
GF1
GF0
PD
IDL
Bit
Number
Bit
Mnemonic
Description
7
SMOD1
Serial port Mode bit 1
Set to select double baud rate in mode 1, 2 or 3.
6
SMOD0
Serial port Mode bit 0
Clear to select SM0 bit in SCON register.
Set to to select FE bit in SCON register.
5
-
Reserved
The value read from this bit is indeterminate. Do not set this bit.
4
POF
Power-Off Flag
Clear to recognize next reset type.
Set by hardware when V
CC rises from 0 to its nominal voltage. Can also be set by software.
3
GF1
General purpose Flag
Cleared by user for general purpose usage.
Set by user for general purpose usage.
2
GF0
General purpose Flag
Cleared by user for general purpose usage.
Set by user for general purpose usage.
1
PD
Power-Down mode bit
Cleared by hardware when reset occurs.
Set to enter power-down mode.
0
IDL
Idle mode bit
Clear by hardware when interrupt or reset occurs.
Set to enter idle mode.
相关PDF资料
TS87C54X2-MCE IC MCU 8BIT 16K OTP 40MHZ 44VQFP
PIC18F66K90-I/MR IC MCU 8BIT 64KB FLASH 64QFN
PIC24HJ32GP304-I/ML IC PIC MCU FLASH 32K 44-QFN
PIC18F67K22-I/PTRSL MCU PIC 128K FLASH XLP 64TQFP
PIC18F66K90-I/MRRSL MCU PIC 64K FLASH MEM XLP 64QFN
PIC16LC621-04/SO IC MCU OTP 1KX14 COMP 18SOIC
PIC18LF2410-I/SP IC MCU FLASH 8KX16 28-DIP
DSPIC30F3013-20I/SP IC DSPIC MCU/DSP 24K 28DIP
相关代理商/技术参数
TS80C31X2-LIEB 制造商:TEMIC 制造商全称:TEMIC Semiconductors 功能描述:8-bit CMOS Microcontroller 0-60 MHz
TS80C31X2-LIED 制造商:TEMIC 制造商全称:TEMIC Semiconductors 功能描述:8-bit CMOS Microcontroller 0-60 MHz
TS80C31X2-LIER 制造商:TEMIC 制造商全称:TEMIC Semiconductors 功能描述:8-bit CMOS Microcontroller 0-60 MHz
TS80C31X2-LLAB 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit CMOS Microcontroller ROMless
TS80C31X2-LLAD 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit CMOS Microcontroller ROMless
TS80C31X2-LLAR 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit CMOS Microcontroller ROMless
TS80C31X2-LLBB 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit CMOS Microcontroller ROMless
TS80C31X2-LLBD 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:8-bit CMOS Microcontroller ROMless