Panasonic MN101L Series User Manual page 432

Lsi
Table of Contents

Advertisement

Chapter 13
Serial Interface
Data Reception (1-byte Communication Mode)
Step
Empty confirmation of transmis-
1
sion buffer
Dummy data write to TXBUFnTX-
2
BUFn
Wait for communication comple-
tion
3
Reception data read from
4
RXBUFn
Confirmation of overrun error
5
Reception end
6
Data Transmission/Reception (Consecutive Communication Mode)
Step
Empty confirmation of transmis-
1
sion buffer
Data write to TXBUFn
2
(The first data transmission)
Empty confirmation of transmis-
3
sion buffer
Data write to TXBUFn
4
(The second and subsequent
data transmission)
Wait for communication comple-
tion
5
Reception data read from
6
RXBUFn
Confirmation of overrun error
7
Consecutive communication or
8
not
Transmission/reception end
9
XIII - 44
Clock-Synchronous Communication
Setting
Register name
SCnSTR.SCnTEMP
TXBUFn
<SCIFn (n = 0, 1)>
SCnSTR.SCnRBSY
<SCIFn (n = 2, 3)>
SCnSTR.SCnTBSY
RXBUFn
<SCIFn (n = 0, 1)>
SCnSTR.SCnORE
SCnSTR.SCnERE
<SCIFn (n = 2, 3)>
SCnSTR.SCnORE
-
Setting
Register name
SCnSTR.SCnTEMP
TXBUFn
SCnSTR.SCnTEMP
TXBUFn
SCnSTR.SCnREMP
RXBUFn
<SCIFn (n = 0, 1)>
SCnSTR.SCnORE
SCnSTR.SCnERE
<SCIFn (n = 2, 3)>
SCnSTR.SCnORE
-
-
Description
Confirm that SCnSTR1.SCnTEMP is 0.
Set dummy data in TXBUFn.
<SCIFn (n = 0, 1)>
When the communication has been completed, SCnRBSY
becomes 0.
When an interrupt is enabled, a communication complete
interrupt (SCnTIRQ) occurs.
<SCIFn (n = 2, 3)>
When the communication has been completed, SCnTBSY
becomes 0.
When an interrupt is enabled, a communication complete
interrupt (SCnTIRQ) occurs.
Read out the reception data from RXBUFn.
If SCnORE/SCnERE(*) is 1, it indicates an overrun error has
occurred. When an overrun error has occurred, take mea-
sures, such as data retransmission, since reception data may
be destroyed.
(*) SCnERE is only for SCIFn (n = 0, 1).
Repeat these procedures from step 1 to execute the next
communication.
Description
Confirm that SCnSTR1.SCnTEMP is 0.
Set transmission data in TXBUFn.
Confirm that SCnSTR.SCnTEMP becomes 0 since communica-
tion starts.
Set the next transmission data in TXBUFn.
When reception data are stored in RXBUFn,
SCnSTR.SCnREMP is set to 1.
When an interrupt is enabled, a communication complete inter-
rupt (SCnTIRQ) occurs.
Read out the reception data from RXBUFn.
If SCnORE/SCnERE(*) is 1, it indicates an overrun error has
occurred. When an overrun error has occurred, take measures,
such as data retransmission, since reception data may be
destroyed.
(*) SCnERE is only for SCIFn (n = 0, 1).
When continuing data transmission, repeat procedures from
step 3.
When completing data transmission, go to step 9.
After the operations from step 5 to step7 are executed, the com-
munication is completed since data reception to be set in step 4
has not been completed.
Repeat these procedures from step 1 to execute the next com-
munication

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101lr05dMn101lr04dMn101lr03dMn101lr02d

Table of Contents