13.5.3 Program flow example for IEBus controller
(1) Main routine
(2) Interrupt routine
This routine is executed when start of transmission or end of reception. In interrupt routine, the status code
(ST3-0) in status register STRL is read, then the transmit data can be written or receive data can be read.
Upper 2 bits of ST3-
Y
Master
Master transmit
Note1
routine
Note1: Refer to master transmit routine
Note2: Refer to slave transmit routine
Note3: Refer to master receive routine
MB90580 Series
Begin
IEBus initial setup
Enable IEBus controller
IEBus controller operates
End
Read status register
Categorize the status code
00
N
Master receive
Slave transmit
Note2
routine
routine
Interrupt enable
Begin
01
10
Slave receive
Note3
routine
RETI
End
13.5 Operation
11
Multiaddress
receive routine
Chapter 13: IE Bus
179