Operation - NEC UPD703116 User Manual

32-bit single-chip microcontrollers
Table of Contents

Advertisement

10.4.4 Operation

(1) Single transfer mode
(a) Usage
In the receive-only mode (TRMDn bit of CSIMn register = 0), transfer is started by reading
data buffer register (SIRBn/SIRBLn) (n = 0, 1).
In the transmission/reception mode (TRMDn bit of CSIMn register = 1), transfer is started by writing
to the transmit data buffer register (SOTBn/SOTBLn).
In the slave mode, the operation must be enabled beforehand (CSICAEn bit of CSIMn register = 1).
When transfer is started, the value of the CSOTn bit of the CSIMn register becomes 1 (transmission
execution status).
Upon transfer completion, the transmission/reception completion interrupt (INTCSIn) is set (1), and the
CSOTn bit is cleared (0). The next data transfer request is then waited for.
Notes 1.
When the 16-bit data length (CCL bit of CSIMn register = 1) has been set, read the SIRBn
register. When the 8-bit data length (CCL bit of CSIMn register = 0) has been set, read the
SIRBLn register.
2.
When the 16-bit data length (CCL bit of CSIMn register = 1) has been set, write to the SOTBn
register. When the 8-bit data length (CCL bit of CSIMn register = 0) has been set, write to the
SOTBLn register.
Caution When the CSOTn bit of the CSIMn register = 1, do not manipulate the CSIn register.
CHAPTER 10 SERIAL INTERFACE FUNCTION
User's Manual U14492EJ5V0UD
Note 1
the receive
Note 2
493

Advertisement

Table of Contents
loading

Table of Contents