English
Language : 

MC68HC908LJ24 Datasheet, PDF (176/464 Pages) Motorola, Inc – Microcontrollers
Freescale Semiconductor, Inc.
Monitor ROM (MON)
Table 10-9. RUN (Run User Program) Command
Description Executes PULH and RTI instructions
Operand None
Data
Returned
None
Opcode $28
Command Sequence
FROM
HOST
RUN
RUN
ECHO
The MCU executes the SWI and PSHH instructions when it enters
monitor mode. The RUN command tells the MCU to execute the PULH
and RTI instructions. Before sending the RUN command, the host can
modify the stacked CPU registers to prepare to run the host program.
The READSP command returns the incremented stack pointer value,
SP + 1. The high and low bytes of the program counter are at addresses
SP + 5 and SP + 6.
SP
HIGH BYTE OF INDEX REGISTER SP + 1
CONDITION CODE REGISTER
SP + 2
ACCUMULATOR
SP + 3
LOW BYTE OF INDEX REGISTER SP + 4
HIGH BYTE OF PROGRAM COUNTER SP + 5
LOW BYTE OF PROGRAM COUNTER SP + 6
SP + 7
Figure 10-7. Stack Pointer at Monitor Mode Entry
Data Sheet
176
MC68HC908LJ24/LK24 — Rev. 2
Monitor ROM (MON)
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA