mc68hc08az60 Freescale Semiconductor, Inc, mc68hc08az60 Datasheet - Page 102

no-image

mc68hc08az60

Manufacturer Part Number
mc68hc08az60
Description
M68hc08 Family Of 8-bit Microcontroller Units Mcus
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc68hc08az60 1J35D
Manufacturer:
FREESCALE
Quantity:
20 000
System Integration Module (SIM)
SIM Reset Status
Register
MC68HC08AZ60 — Rev 1.0
102
;
;
;
;
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:
following code is an example of this. Writing zero to the SBSW bit
clears it.
This register contains six flags that show the source of the last reset. The
status register will automatically clear after reading it. A power-on reset
sets the POR bit and clears all other bits in the register.
POR — Power-On Reset Bit
Read:
Write:
POR:
Freescale Semiconductor, Inc.
5
6
SBSW,SBSR, RETURN ;
LOBYTE,SP
DOLO
HIBYTE,SP
LOBYTE,SP
For More Information On This Product,
1 = Last reset caused by POR circuit
0 = Read of SRSR
$FE01
POR
Bit 7
1
System Integration Module (SIM)
Figure 18. SIM Reset Status Register (SRSR)
Go to: www.freescale.com
= 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
2
0
0
LVI
1
0
MOTOROLA
Bit 0
20-sim
0
0

Related parts for mc68hc08az60