Software Reset; Brown-Out Reset - CMOSTEK CMT2380F17 Manual

Ultra low power sub-1ghz wireless mcu
Table of Contents

Advertisement

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
Name
ISPEN
R/W
R/W
Reset V alue
0
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
Name
SWRF
R/W
R/W
Reset V alue
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
Name
SWRF
R/W
R/W
Reset V alue
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.
6
5
SWBS
SWRST
R/W
R/W
0
0
6
5
EXRF
--
R/W
R/W
0
0
6
5
EXRF
MCDF
R/W
R/W
0
0
Rev0.1 | 84/347
4
3
CFAIL
--
R/W
W
0
X
4
3
RTCF
--
R/W
W
0
X
4
3
RTCF
--
R/W
W
0
X
CMT2380F17
2
1
--
--
W
W
X
X
2
1
BOF1
BOF0
R/W
R/W
0
0
2
1
BOF1
BOF0
R/W
R/W
0
0
www.cmostek.com
0
--
W
X
0
WDTF
R/W
0
0
WDTF
R/W
0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CMT2380F17 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents