mcf51jf128 Freescale Semiconductor, Inc, mcf51jf128 Datasheet - Page 1321

no-image

mcf51jf128

Manufacturer Part Number
mcf51jf128
Description
Mcf51jf128 Reference Manual
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mcf51jf128VLH
Manufacturer:
MITSUBISHI
Quantity:
321
Part Number:
mcf51jf128VLH
Manufacturer:
FREESCALE
Quantity:
5 097
Part Number:
mcf51jf128VLH
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mcf51jf128VLH
Manufacturer:
FREESCALE
Quantity:
5 097
50.4.3.2 PST Trace Buffer (PSTB) Entry Format
As PST and DDATA values are captured and loaded in the trace buffer, each entry is six
bits in size therefore, the type of the entry can easily be determined when post-processing
the PSTB.
50.4.3.3 PST/DDATA Example
In this section, an example showing the behavior of the PST/DDATA functionality is
detailed. Consider the following interrupt service routine that counts the interrupt,
negates the IRQ, performs a software IACK, and then exits. This example is presented
here because it exercises a considerable set of the PST/DDATA capabilities.
01074: 46fc 2700
01078: 2f08
0107a: 2f00
0107c: 302f 0008
01080: e488
01082: 0280 0000 00ff
01088: 207c 0080 1400
0108e: 52b0 0c00
01092: 11c0 a021
01096: 1038 a020
0109a: 4e71
0109c: 71b8 ffe0
010a0: 0c80 0000 0041
010a6: 6f08
010a8: 52b9 0080 145c
010ae: 60de
010b0: 201f
010b2: 205f
010b4: 4e73
Freescale Semiconductor, Inc.
1
PSTB[DDATA]
PSTB[DDATA]
(least-to-most-significant nibble order) displays four bits of the real CPU address [16:1] or [24:1].
PSTB[PST]
Address
Reset:
Data
Figure 50-12. V1 PST/DDATA Trace Buffer Entry Format
_isr:
_isr_entry1:
_isr_exit:
Depending on which nibble is displayed (as determined by SDR[9:8]), Address [3:0] sequentially
mov.w
mov.l
mov.l
mov.w
lsr.l
andi.l
mov.l
addq.l
mov.b
mov.b
nop
mvz.b
cmpi.l
ble.b
addq.l
bra.b
mov.l
mov.l
rte
0
1
1
MCF51JF128 Reference Manual, Rev. 2, 03/2011
5
&0x2700,%sr
%a0,-(%sp)
%d0,-(%sp)
(8,%sp),%d0
&2,%d0
&0xff,%d0
&int_count,%a0
&1,(0,%a0,%d0.l*4) # count the interrupt
%d0,IGCR0+1.w
IGCR0.w,%d0
SWIACK.w,%d0
%d0,&0x41
_isr_exit
&1,swiack_count
_isr_entry1
(%sp)+,%d0
(%sp)+,%a0
R/W
4
0
Preliminary
3
# disable interrupts
# save a0
# save d0
# load format/vector word
# align vector number
# isolate vector number
# base of interrupt counters
# negate the irq
# force the write to complete
# synchronize the pipelines
# software iack: pending irq?
# level 7 or none pending?
# yes, then exit
# increment the swiack count
# continue at entry1
# restore d0
# restore a0
# exit
PST[4:0]
2
Address[3:0]
Data[3:0]
1
1
0
Chapter 50 Debug
1321

Related parts for mcf51jf128