CMT2380F17
Rev0.1 | 84/347
www.cmostek.com
12.4
Software Reset
Software can trigger the CPU to restart by software reset, writing “1” on SWRST (ISPCR.5), and set the
SWRF flag (PCON1.7). SWBS decides the CPU is boot from ISP or AP region after the reset action
。
ISPCR: ISP Control Register
SFR Page
= 0~F
SFR Address = 0xE7
Bit
7
6
5
4
3
2
1
0
Name
ISPEN
SWBS
SWRST
CFAIL
--
--
--
--
R/W
R/W
R/W
R/W
R/W
W
W
W
W
Reset Value
0
0
0
0
X
X
X
X
Bit 6: SWBS, software boot selection control.
0: Boot from AP-memory after reset.
1: Boot from ISP memory after reset.
Bit 5: SWRST, software reset trigger control.
0: Write “0” is no operation
1: Write “1” to generate software system reset. It will be cleared by hardware automatically.
。
PCON1: Power Control Register 1
SFR Page
= 0~F & P
SFR Address = 0x97
Bit
7
6
5
4
3
2
1
0
Name
SWRF
EXRF
--
RTCF
--
BOF1
BOF0
WDTF
R/W
R/W
R/W
R/W
R/W
W
R/W
R/W
R/W
Reset Value
0
0
0
0
X
0
0
0
Bit 7: SWRF, Software Reset Flag.
0: This bit must be cleared by software writing “1” on it. Software writing “0” is no operation.
1: This bit is only set by hardware if a Software Reset occurs. Writing “1” on this bit will clear SWRF.
12.5
Brown-Out Reset
In CMT2380F17, there are two Brown-Out Detectors (BOD0 & BOD1) to monitor VDD power. BOD0
services the fixed detection level at VDD=1.7V. BOD1 detects the VDD level by software selecting 4.2V, 3.7V,
2.4V or 2.0V. If VDD power drops below BOD0 or BOD1 monitor level. Associated flag, BOF0 and BOF1, is
set. If BO0RE (PCON2.1) is enabled, BOF0 indicates a BOD0 Reset occurred. If BO1RE (PCON2.3) is
enabled, BOF1 indicates a BOD1 Reset occurred.
PCON1
: Power Control Register 1
SFR Page
= 0~F & P
SFR Address = 0x97
Bit
7
6
5
4
3
2
1
0
Name
SWRF
EXRF
MCDF
RTCF
--
BOF1
BOF0
WDTF
R/W
R/W
R/W
R/W
R/W
W
R/W
R/W
R/W
Reset Value
0
0
0
0
X
0
0
0
Bit 2: BOF1, BOF1 (Reset) Flag.
0: This bit must be cleared by software writing “1” on it. Software writing “0” is no operation.
1: This bit is
only set by hardware when VDD meets BOD1 monitored level. Writing “1” on this bit will clear
BOF1. If BO1RE (PCON2.3) is enabled, BOF1 indicates a BOD1 Reset occurred.
Summary of Contents for CMT2380F17
Page 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Page 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Page 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...