SYSTEM INTEGRATION MODULE
M68HC16 Z SERIES
5-44
USER’S MANUAL
5.6.5.1 Bus Errors
The CPU16 treats bus errors as a type of exception. Bus error exception processing
begins when the CPU16 detects assertion of the IMB BERR signal.
BERR assertions do not force immediate exception processing. The signal is synchro-
nized with normal bus cycles and is latched into the CPU16 at the end of the bus cycle
in which it was asserted. Because bus cycles can overlap instruction boundaries, bus
error exception processing may not occur at the end of the instruction in which the bus
cycle begins. Timing of BERR detection/acknowledge is dependent upon several
factors:
• Which bus cycle of an instruction is terminated by assertion of BERR.
• The number of bus cycles in the instruction during which BERR is asserted.
• The number of bus cycles in the instruction following the instruction in which
BERR is asserted.
• Whether BERR is asserted during a program space access or a data space
access.
Because of these factors, it is impossible to predict precisely how long after occur-
rence of a bus error the bus error exception is processed.
Table 5-17 DSACK, BERR, and HALT Assertion Results
Type of
Termination
Control
Signal
Asserted on Rising
Edge of State
Description
of Result
S
1
NOTES:
1. S = The number of current even bus state (for example, S2, S4, etc.)
S + 2
NORMAL
DSACK
BERR
HALT
A
2
NA
3
NA
2. A = Signal is asserted in this bus state.
3. NA = Signal is not asserted in this state.
RA
4
NA
X
5
4. RA = Signal was asserted in previous state and remains asserted in this state.
5. X = Don’t care
Normal cycle terminate and continue.
HALT
DSACK
BERR
HALT
A
NA
A/RA
RA
NA
RA
Normal cycle terminate and halt.
Continue when HALT is negated.
BUS ERROR
1
DSACK
BERR
HALT
NA/A
A
NA
X
RA
X
Terminate and take bus error exception.
BUS ERROR
2
DSACK
BERR
HALT
A
A
NA
X
RA
NA
Terminate and take bus error exception.
BUS ERROR
3
DSACK
BERR
HALT
NA/A
A
A/S
X
RA
RA
Terminate and take bus error exception.
BUS ERROR
4
DSACK
BERR
HALT
A
NA
NA
X
A
A
Terminate and take bus error exception.
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
.
..