EF
EIE
Figure 58.
CSI/O Interrupt Request Generation
CSI/O Operation
The CSI/O is operated using status polling or interrupt driven algorithms.
•
Transmit–Polling
a. Poll the TE bit in CNTR until TE =
b. Write the transmit data into TRDR.
c. Set the TE bit in CNTR to
d. Repeat steps 1 to 3 for each transmit data byte.
•
Transmit–Interrupts
a. Poll the TE bit in CNTR until TE =
b. Write the first transmit data byte into TRDR.
c. Set the TE and EIE bits in CNTR to
d. When the transmit interrupt occurs, write the next transmit data
byte into TRDR.
e. Set the TE bit in CNTR to
f.
Repeat steps 4 and 5 for each transmit data byte.
•
Receive –Polling
a. Poll the RE bit in CNTR until RE =
b. Set the RE bit in CNTR to
Family MPU User Manual
IEF1
.
0
.
1
.
0
.
1
.
1
.
0
.
1
Z8018x
CSI/O
Interrupt Request
UM005004-0918
151
Need help?
Do you have a question about the Z8018 Series and is the answer not in the manual?