mc68hc908ld64 Freescale Semiconductor, Inc, mc68hc908ld64 Datasheet - Page 135

no-image

mc68hc908ld64

Manufacturer Part Number
mc68hc908ld64
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
9.8.2 SIM Reset Status Register (SRSR)
MC68HC908LD64
Freescale Semiconductor
;
;
;
;
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
Rev. 3.0
5
6
SBSW,SBSR, RETURN
LOBYTE,SP
DOLO
HIBYTE,SP
LOBYTE,SP
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.
POR — Power-On Reset Bit
PIN — External Reset Bit
Read:
Write:
POR:
1 = Last reset caused by POR circuit
0 = Read of SRSR
1 = Last reset caused by external reset pin (RST)
0 = POR or read of SRSR
$FE01
POR
Bit 7
1
Figure 9-20. SIM Reset Status Register (SRSR)
System Integration Module (SIM)
= 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.
See if wait mode or stop mode was exited by
break.
COP
5
0
ILOP
4
0
ILAD
3
0
System Integration Module (SIM)
USB
2
0
1
0
0
SIM Registers
Data Sheet
Bit 0
0
0
135

Related parts for mc68hc908ld64