MPC555
/
MPC556
DEVELOPMENT SUPPORT
MOTOROLA
USER’S MANUAL
Rev. 15 October 2000
21-41
21.5.6.10 Serial Data Out of Development Port
The encoding of data shifted out of the development port shift register in debug mode
(through the DSDO pin) is the same as for trap enable mode and is shown in
Valid data encoding is used when data has been transferred from the CPU to the de-
velopment port shift register. This is the result of an instruction to move the contents
of a general purpose register to the debug port data register (DPDR). The valid data
encoding has the highest priority of all status outputs and will be reported even if an
interrupt occurs at the same time. Since it is not possible for a sequencing error to oc-
cur and also have valid data there is no priority conflict with the sequencing error sta-
tus. Also, any interrupt that is recognized at the same time that there is valid data is
not related to the execution of an instruction. Therefore, a valid data status will be out-
put and the interrupt status will be saved for the next transmission.
The sequencing error encoding indicates that the inputs from the external develop-
ment tool are not what the development port and/or the CPU was expecting. Two cas-
es could cause this error:
1. The processor was trying to read instructions and there was data shifted into
the development port, or
2. The processor was trying to read data and there was instruction shifted into the
development port. The port will terminate the read cycle with a bus error.
This bus error will cause the CPU to signal that an interrupt (exception) occurred.
Since a status of sequencing error has a higher priority than exception, the port will
report the sequencing error first, and the CPU interrupt on the next transmission. The
development port will ignore the command, instruction, or data shifted in while the se-
quencing error or CPU interrupt is shifted out. The next transmission after all error sta-
tus is reported to the port should be a new instruction, trap enable or command
(possibly the one that was in progress when the sequencing error occurred).
The interrupt-occurred encoding is used to indicate that the CPU encountered an in-
terrupt during the execution of the previous instruction in debug mode. Interrupts may
occur as the result of instruction execution (such as unimplemented opcode or arith-
metic error), because of a memory access fault, or from an unmasked external inter-
rupt. When an interrupt occurs the development port will ignore the command,
instruction, or data shifted in while the interrupt encoding was shifting out. The next
transmission to the port should be a new instruction, trap enable or debug port com-
mand.
Finally, the null encoding is used to indicate that no data has been transferred from the
CPU to the development port shift register.
21.5.6.11 Fast Download Procedure
The download procedure is used to download a block of data from the debug tool into
system memory. This procedure can be accomplished by repeating the following se-
quence of transactions from the development tool to the debug port for the number of
data words to be down loaded:
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..