
82
CHAPTER 3 MEMORY SPACE, CPU AND CONTROL UNIT
3.11.10 Retaining a Reset Source
The system stores the last generated reset source. All related flags are set to 0 during
a read access.
A source flag that was set remains as long as it is not read.
■
Block diagram of the reset source retention circuit
Figure 3.11-8 "Block diagram of the reset source retention circuit" shows the block diagram of
the reset source retention circuit.
Figure 3.11-8 Block diagram of the reset source retention circuit
■
Setting
No special setting is required to use this function. Set the instruction for reading the reset source
register and the instruction for branching to an appropriate program at the beginning of the
program to be stored at the reset entry address.
[Example]
ERST
PONR
WDOG
SRST
ERST
PONR
WDOG
SRST
watch-dog Timer
reset detect Circuit
SRST
decoder
.or.
Power-on detection
Internal bus
RST pin
Reset input circuit
Status
transition
circuit
RESET-ENTRY
LDI:32 #RSRR,R10
LDI:8 #10000000B,R2
LDUB @R10,R1
; GET RSRR VALUE INTO R1
MOV R1,R10
; R10 USED AS A TEMPORARY REGISTER
AND R2,R10
; WAS PONR RESET?
BNE PONR-RESET
LSR #1,R2
; POINT NEXT BIT
MOV R1,R10
; R10 USED AS A TEMPORARY REGISTER
AND R2,R10
; WAS WATCH DOG RESET?
BNE WDOG-RESET
...
Содержание MB91150 Series
Страница 1: ......
Страница 2: ......
Страница 3: ...FUJITSU LIMITED FR30 32 BIT MICROCONTROLLER MB91150 Series HARDWARE MANUAL ...
Страница 4: ......
Страница 10: ...vi ...
Страница 112: ...96 CHAPTER 3 MEMORY SPACE CPU AND CONTROL UNIT ...
Страница 174: ...158 CHAPTER 5 I O PORTS Note DDRI bit 6 is a test bit Always set the bit to 0 The value read from this bit is always 0 ...
Страница 178: ...162 CHAPTER 5 I O PORTS ...
Страница 214: ...198 CHAPTER 7 16 BIT RELOAD TIMER ...
Страница 240: ...224 CHAPTER 8 PPG TIMER ...
Страница 310: ...294 CHAPTER 13 8 10 BIT A D CONVERTER ...
Страница 318: ...302 CHAPTER 14 8 BIT D A CONVERTER ...
Страница 362: ...346 CHAPTER 15 UART ...
Страница 420: ...404 CHAPTER 19 PERIPHERAL STOP CONTROL ...
Страница 428: ...412 CHAPTER 20 CALENDAR MACROS ...
Страница 503: ...487 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 510: ...494 INDEX ...
Страница 512: ......