705
Chapter 17
Clocked Serial Interface 3 (CSI3)
User’s Manual U16580EE3V1UD00
17.5.10 Consecutive
mode
The consecutive mode is set when the TRMDn bit of the CSIM3n register is 1 (
μ
PD70F3187: n = 0, 1,
μ
PD70F3447: n = 0).
In this mode, transfer is started when the CTXEn bit or CRXEn bit is 1 and when data is in the CSIBUFn
register (SFEMPn bit of the SFA3n register = 0). At this time, set the number of transfer data in advance
by using the SFNn3 to SFNn0 bits of the SFN3n register. Seventeen or more transfer data cannot be
set. If 17 or more transfer data are written to the CSIBUFn register, the excess data are ignored and not
transferred. Do not write data exceeding the number of transfer data specified by the SFNn3 to SFNn0
bits of the SFN3n register to the CSIBUFn register.
If no data is in the CSIBUFn register (SFEMPn bit = 1), transfer is kept waiting until a given start
condition is satisfied.
If data is written to the CSIBUFn register when the CTXEn or CRXEn bit is 1, the CSOTn bit (transfer
status flag) of the SFA3n register is set to 1 and the chip select data (CS data) according to the SIO3n
load/store 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/store CSIBUFn pointer
is loaded from the CSIBUFn register to SIO3n register. Then transfer processing is started.
When transfer processing of one data is completed in the reception mode or transmission/reception
mode, the received data is overwritten from the SIO3n register to the transfer data in the CSIBUFn
register indicated by the SIO3n load/store CSIBUFn pointer, and then the pointer is incremented. By
consecutively reading the transfer data from the SIRB3n register after all data in the CSIBUFn register
have been transferred (when the INTC3n interrupt has occurred), the receive data can be sequentially
read while the read CSIBUFn pointer is incremented.
In the transmission mode, the SIO3n load/store CSIBUFn pointer is incremented when transfer
processing of one data has been completed.
In all modes (transmission, reception, and transmission/reception modes), when data has been
transferred by the value set by the SFNn3 to SFNn0 bits of the SFN3n register, the CSOTn bit is cleared
to 0 and the transmission/reception completion interrupt (INTC3n) is output.
To transfer the next data, be sure to write 1 to the FPCLRn bit of the SFA3n register and clear all the
CSIBUFn pointers to 0.
The “number of transferred data (SIO3n load/store CSIBUFn pointer value)” can always be read from
the SFPn3 to SFPn0 bits of the SFA3n register.
Caution:
The SFA3n register is in the same status when transfer data is written (before start of
transfer) after the CSIBUFn pointer is cleared (FPCLRn bit of the SFA3n register = 1)
and when 16 data have been transferred (SFFULn bit = 0, SFEMPn bit = 1, SFPn3 to
SFPn0 bits = 0000B).
Summary of Contents for MuPD70F3187
Page 6: ...6 Preface User s Manual U16580EE3V1UD00 ...
Page 16: ...16 User s Manual U16580EE3V1UD00 ...
Page 28: ...28 User s Manual U16580EE3V1UD00 ...
Page 32: ...32 User s Manual U16580EE3V1UD00 ...
Page 84: ...84 Chapter 2 Pin Functions User s Manual U16580EE3V1UD00 MEMO ...
Page 144: ...144 Chapter 3 CPU Functions User s Manual U16580EE3V1UD00 MEMO ...
Page 312: ...312 Chapter 9 16 Bit Timer Event Counter P User s Manual U16580EE3V1UD00 MEMO ...
Page 534: ...534 Chapter 11 16 bit Timer Event Counter T User s Manual U16580EE3V1UD00 ...
Page 969: ...969 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 MEMO ...
Page 970: ...970 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 ...
Page 976: ...976 Chapter 22 Internal RAM Parity Check Function User s Manual U16580EE3V1UD00 MEMO ...
Page 984: ...984 Chapter 23 On Chip Debug Function OCD User s Manual U16580EE3V1UD00 MEMO ...
Page 1006: ...1006 Chapter 24 Flash Memory User s Manual U16580EE3V1UD00 MEMO ...
Page 1036: ...1036 Chapter 27 Recommended Soldering Conditions User s Manual U16580EE3V1UD00 MEMO ...
Page 1046: ...1046 Appendix A Index User s Manual U16580EE3V1UD00 MEMO ...
Page 1052: ...1052 User s Manual U16580EE3V1UD00 ...
Page 1053: ......