RX13T Group
23.8.4
Relationship between Clock and Transmit/Receive Data
The CKPOL and CKPH bits in the SPMR can be used to set up the clock for use in transmission and reception in four
different ways. The relation between the clock signal and the transmission and reception of data is shown in Figure
23.57 . The relation is the same for both master and slave operation.
(1) When CKPH = 0
SSn# pin
(slave)
SCKn pin
(CKPOL = 0)
SCKn pin
(CKPOL = 1)
SMOSIn pin
SMISOn pin
(2) When CKPH = 1
SSn# pin
(slave)
SCKn pin
(CKPOL = 0)
SCKn pin
(CKPOL = 1)
SMOSIn pin
SMISOn pin
Figure 23.57
Relation between Clock Signal and Transmit/Receive Data in Simple SPI Mode
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
One unit of transfer data (character or frame)
Bit 0
Bit 1
Bit 2
Bit 0
Bit 1
Bit 2
Bit 0
Bit 1
Bit 2
Bit 0
Bit 1
Bit 2
23. Serial Communications Interface (SCIg, SCIh)
Bit 3
Bit 4
Bit 5
Bit 3
Bit 4
Bit 5
Bit 3
Bit 4
Bit 5
Bit 3
Bit 4
Bit 5
Bit 6
Bit 7
Bit 6
Bit 7
Bit 6
Bit 7
Bit 6
Bit 7
Page 692 of 1041