mt8920bs1 Zarlink Semiconductor, mt8920bs1 Datasheet - Page 10

no-image

mt8920bs1

Manufacturer Part Number
mt8920bs1
Description
32 Channels Tdm St-bus To Parallel Bus Access Circuit
Manufacturer
Zarlink Semiconductor
Datasheet
MT8920B
10
Interrupt Modes and Servicing
Static Interrupt Mode
A static interrupt is caused when an incoming byte
matches a predefined byte. The incoming byte from
a selected channel is stored in Interrupt Image
Register (1/2) where it is compared with the contents
of the corresponding Match Byte Register.
result of the comparison of individual bits is masked
by the contents of the Mask Register (1/2) before it
is used to generate an IRQ. After a static interrupt
occurs, information in the Interrupt Image Register is
frozen until the µP performs a read operation on this
register.
When servicing static interrupts assertion of IACK
will cause the contents of the Vector Register, with
the IRQ1 or IRQ2 bit set, to be output on the data
bus. The service routine can subsequently clear IRQ
by
Alternatively, the IRQRST bit in Control Register 1
can be set to clear the associated interrupt registers.
Static Interrupts are selected using IRQ1MODE and
IRQ2MODE bits in Control Register 1. Interrupts are
then enabled to the IRQ pin with IRQ1EN and
IRQ2EN bits of the same register.
Dynamic Interrupt Mode
A dynamic interrupt is generated by a change of
state of bits in a selected channel. A 0 to 1 transition
or a 1 to 0 transition or a simple change of state from
the previous state (toggle) can be detected.
type of transition to be detected is selected using two
bits, one from the Match Byte Register (1/2) and one
from the Interrupt Mask Register (1/2), in the
corresponding bit positions. Table 5 shows how the
two registers are programmed.
For example, the following steps are required to
generate an interrupt when bit D
changes state from 0 to 1 (all other bits are masked):
Register
Match
bit D
Byte
0
0
1
1
reading
X
Table 5 - Dynamic Interrupt Types
Register
bit D
Mask
Byte
the
0
1
0
1
X
Interrupt
Transition Type Detected
on Incoming bit D
0 to 1 transition
1 to 0 transition
Mask Bit D
(x = 0 ....7)
Image
Toggle
3
of channel 4
X
Register.
X
The
The
Dynamic interrupts from interrupt path 1 would then
be enabled using the Control Register 1.
This would cause interrupt 1 path to be enabled
while interrupt 2 path is disabled.
As with static interrupts, upon serving a dynamic
interrupt, assertion of IACK will cause the contents
of the Vector Register, with the appropriate path bit
set, to be output on the data bus. The information
contained in the channel is frozen in the Interrupt
Image Register.
however, the µP must read the Interrupt Flag
Register of the path responsible for the interrupt to
determine which bit caused the interrupt. The bit in
the corresponding position will be set to 1 and
reading this register will clear its contents.
Alternatively, as with static interrupts, the IRQRST bit
in Control Register 1 can be set to clear the Image
Interrupt Register, Flag Register and path bits in the
Vector Register.
Dynamic Interrupts are selected using IRQ1MODE
and IRQ2MODE bits in Control Register 1 and are
enabled using IRQ1EN and IRQ2EN in the same
register.
MMS Pin Reset
The STPA can be RESET in Mode 1 using the MMS
pin (27). Applying a low pulse (0V) to MMS after
power is applied to the device will reset all control
and interrupt registers to 00
accomplished on power up with a simple R-C circuit
as shown in Figure 8.
Channel Address Register 1 =
Match Byte Register 1 =
Interrupt Mask Register 1 =
Control Register 1 =
Figure 8 - MMS Reset Function
(When bit D
(channel 4 of STi0 selected)
C
To clear a dynamic interrupt,
V
DD
R
D
3
0
0 0
0 0
0 0
MMS
7
toggles 0 to 1)
27
D
0
6
D
0 0
0
0
0
16
5
STPA
.
D
0
0
0
4
Data Sheet
This can be
D
0
0 0
1 0
0 1
3
D
1
2
D
0
0
0
0
1
D
0
0
0
1
0

Related parts for mt8920bs1