C8051F340/1/2/3/4/5/6/7
11.2. Power-Fail Reset / VDD Monitor
When a
Important Note: The VDD monitor must be enabled before it is selected as a reset source. Selecting the VDD monitor as a reset source before it is enabled and stabilized will cause a system reset. The procedure for configuring the VDD monitor as a reset source is shown below:
Step 1. Enable the VDD monitor (VDM0CN.7 = ‘1’).
Step 2. Wait for the VDD monitor to stabilize (see Table 11.1 for the VDD Monitor
See Figure 11.2 for VDD monitor timing. See Table 11.1 for complete electrical characteristics of the VDD monitor.
SFR Definition 11.1. VDM0CN: VDD Monitor Control
R/W | R | R | R | R | R | R | R | Reset Value |
VDMEN
VDDSTAT Reserved Reserved Reserved Reserved Reserved Reserved
Variable
Bit7 | Bit6 | Bit5 | Bit4 | Bit3 | Bit2 | Bit1 | Bit0 | SFR Address: |
|
|
|
|
|
|
|
| 0xFF |
Bit7: | VDMEN: VDD Monitor Enable. |
|
|
|
|
| ||
| This bit turns the VDD monitor circuit on/off. The VDD Monitor cannot generate system resets | |||||||
| until it is also selected as a reset source in register RSTSRC (SFR Definition 11.2). The VDD | |||||||
| Monitor must be allowed to stabilize before it is selected as a reset source. Selecting the | |||||||
| VDD monitor as a reset source before it has stabilized will generate a system reset. | |||||||
| See Table 11.1 for the minimum VDD Monitor | |||||||
| lowing all POR resets. |
|
|
|
|
|
| |
| 0: VDD Monitor Disabled. |
|
|
|
|
|
| |
| 1: VDD Monitor Enabled. |
|
|
|
|
|
| |
Bit6: | VDDSTAT: VDD Status. |
|
|
|
|
|
| |
| This bit indicates the current power supply status (VDD Monitor output). |
|
|
0:VDD is at or below the VDD monitor threshold.
1:VDD is above the VDD monitor threshold.
Rev. 0.5 | 103 |