Transfer Clock Selection Function; Single Mode - NEC V850E/PH2 User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

17.5.8 Transfer clock selection function

In the master mode (CKS3n2 to CKS3n0 bits of the CSIC3n register other than 111B), the bit transfer
rate can be selected by setting the CKS3n2 to CKS3n0 and MDLn2 to MDLn0 bits of the CSIC3n
register (ref. to 17.3 (2) Clocked serial interface clock select register 3n (CSIC30, CSIC31)).

17.5.9 Single mode

The single mode is set when the TRMDn bit of the CSIM3n register is 0 (μPD70F3187: n = 0, 1,
μPD70F3447: n = 0).
In this mode, transfer is started when the CTXEn bit or CRXEn bit is set to 1 and when data is in the
CSIBUFn register (SFEMPn bit = 0 in the SFA3n register).
If no data is in the CSIBUFn register (SFEMPn bit = 1), transfer is kept waiting until a given start
condition is satisfied.
When data is written to the CSIBUFn register while the CTXEn or CRXEn bit is 1, the CSOTn bit of the
SFA3n register (transfer status flag) is set to 1, and the chip select data (CS data) corresponding to
SIO3n load CSIBUFn pointer is transferred to the chip select output buffer. However, in slave mode
(CKS3n2 to CKS3n0 bits of the CSIC3n register = 111B) the chip select outputs (SCS3n0 to SCS3n3)
keep always the inactive level.
If transfer is not in the wait status, the transfer data indicated by the SIO3n load CSIBUFn pointer is
loaded from the CSIBUFn register to the SIO3n register, and transfer processing is started.
If the SIRB3n register is empty when one data has been transferred in the reception mode or
transmission/reception mode, the received data is stored from the SIO3n register to the SIRB3n
register, the transmission/reception completion interrupt (INTC3n) is output, and the SIO3n load
CSIBUFn pointer is incremented. If the SIRB3n register is not empty, the next transfer processing is
started. However, storing the receive data in the SIRB3n register, outputting the INTC3n interrupt, and
incrementing the SIO3n load CSIBUFn pointer are held pending, until the previously received data is
read from the SIRB3n register and the SIRB3n register becomes empty.
In the transmission mode, the INTC3n interrupt is output and the SIO3n load pointer is incremented
when transfer processing of one data has been completed (the SIRB3n register is always empty
because no data is stored from the SIO3n register to the SIRB3n register).
In all modes (transmission, reception, and transmission/reception modes), if the CSIBUFn register is
empty (write CSIBUFn pointer value = SIO3n load CSIBUFn pointer value) when transfer processing of
one data has been completed, the CSOTn bit is cleared to 0. The value of the "number of remaining
data in the CSIBUFn register (write CSIBUFn pointer – SIO3n load pointer)" can always be read from
the SFPn3 to SFPn0 bits of the SFA3n register.
Caution:
When writing data to the SFDB3n register, be sure to confirm that the SFFULn bit of
the SFA3n register is 0. Even if data is written to this register when SFFULn bit is 1,
the CSIBUFn overflow interrupt (INTC3nOVF) is output, and the written data is
ignored.
Chapter 17 Clocked Serial Interface 3 (CSI3)
User's Manual U16580EE3V1UD00
703

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mupd70f3187

Table of Contents