mc68hc916y3 Freescale Semiconductor, Inc, mc68hc916y3 Datasheet - Page 105

no-image

mc68hc916y3

Manufacturer Part Number
mc68hc916y3
Description
Mc68hc16y3 16 Bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
4.14.5.2 Entering BDM
4.14.5.3 BDM Commands
MC68HC16Y3/916Y3
USER’S MANUAL
When the CPU16 detects a breakpoint or decodes a BGND instruction when BDM is
enabled, it suspends instruction execution and asserts the FREEZE signal. Once
FREEZE has been asserted, the CPU16 enables the BDM serial communication hard-
ware and awaits a command. Assertion of FREEZE causes opcode tracking signals
IPIPE0 and IPIPE1 to change definition and become serial communication signals
DSO and DSI. FREEZE is asserted at the next instruction boundary after the assertion
of BKPT or execution of the BGND instruction. IPIPE0 and IPIPE1 change function be-
fore an exception signal can be generated. The development system must use
FREEZE assertion as an indication that BDM has been entered. When BDM is exited,
FREEZE is negated before initiation of normal bus cycles. IPIPE0 and IPIPE1 are valid
when normal instruction prefetch begins.
Commands consist of one 16-bit operation word and can include one or more 16-bit
extension words. Each incoming word is read as it is assembled by the serial interface.
The microcode routine corresponding to a command is executed as soon as the
command is complete. Result operands are loaded into the output shift register to be
shifted out as the next command is read. This process is repeated for each command
until the CPU returns to normal operating mode. The BDM command set is summa-
rized in Table 4-7. Refer to the CPU16 Reference Manual (CPU16RM/AD) for a BDM
command glossary.
Read Program Memory
Write Program Memory
Execute from Current
Read MAC Registers
Write MAC Registers
Read Data Memory
Write Data Memory
Read PC and SP
Write PC and SP
Read Registers
Write Registers
Null Operation
Command
from Mask
from Mask
PK : PC
Freescale Semiconductor, Inc.
For More Information On This Product,
Table 4-7 Command Summary
Mnemonic
WREGM
WDMEM
WPMEM
WRMAC
RREGM
RDMAC
WPCSP
RDMEM
RPMEM
RPCSP
NOP
GO
Go to: www.freescale.com
Read contents of registers specified by command
word register mask
Write to registers specified by command word
register mask
Read contents of entire multiply and accumulate
register set
Write to entire multiply and accumulate register set
Read contents of program counter and stack pointer
Write to program counter and stack pointer
Read byte from specified 20-bit address in data
space
Write byte to specified 20-bit address in data space
Read word from specified 20-bit address in program
space
Write word to specified 20-bit address in program
space
Instruction pipeline flushed and refilled; instructions
executed from current PC – $0006
Null command performs no operation
Description
MOTOROLA
4-43

Related parts for mc68hc916y3