XC68HC08KH12 Motorola, XC68HC08KH12 Datasheet - Page 84

no-image

XC68HC08KH12

Manufacturer Part Number
XC68HC08KH12
Description
MICROCONTROLLER
Manufacturer
Motorola
Datasheet
System Integration Module (SIM)
7.8.2 Reset Status Register (RSR)
Advance Information
84
;
;
;
;
This code works if the H register has been pushed onto the stack in the break
service routine software. This code should be executed at the end of the
break service routine software.
HIBYTE
LOBYTE
DOLO
RETURN
EQU
EQU
If not SBSW, do RTI
BRCLR
TST
BNE
DEC
DEC
PULH
RTI
Address:
This register contains six flags that show the source of the last reset.
Clear the SIM reset status register by reading it. A power-on reset sets
the POR bit and clears all other bits in the register.
Read:
Write:
POR:
5
6
SBSW,BSR, RETURN
LOBYTE,SP
DOLO
HIBYTE,SP
LOBYTE,SP
$FE01
POR
Bit 7
1
System Integration Module (SIM)
Figure 7-21. Reset Status Register (RSR)
= Unimplemented
PIN
6
0
;
;
; If RETURNLO is not zero,
; then just decrement low byte.
; Else deal with high byte, too.
; Point to WAIT/STOP opcode.
; Restore H register.
COP
See if wait mode or stop mode was exited
by break
5
0
ILOP
4
0
ILAD
3
0
MC68HC(7)08KH12
USB
2
0
1
0
0
MOTOROLA
Rev. 1.0
Bit 0
0
0

Related parts for XC68HC08KH12