TXZ Family
Serial Peripheral Interface
2019-02-28
22 / 67
Rev. 3.0
3.2.2. Data Format with a Parity
If data format is with parity bit, frame length is specified as a data length including a parity bit. For example, when
data length is 10-bit, set "001011" to
[TSPIxFMTR0]
<FL[5:0]>.
If data format is with parity bit, a parity bit is automatically added to data in the transmit FIFO and the data is
copied to shift register. the parity bit is also automatically deleted from receive data in the shift register and the
data is copied to the receive FIFO.
(1) MSB first transfer (31-bit data with parity, 32-bit frame length)
Figure 3.6 shows a 31-bit data length transmit/receive operation (with a parity bit, MSB first, 31-bit data
length). A frame length is 32-bit data length including a parity bit.
In the transmission, data D30 through D0 in the transmit FIFO are copied to D31 through D1 in the shift
register. At the same time, a parity is calculated using data D31 through D1 in the shift register.
The result is stored in the D0 in the shift register.
Subsequently, transmit data in the shift register and parity data are sequentially transferred from D31
through D0 in the shift register on serial clock
In the reception, receive data is stored in D0 of the shift register. Shift operation repeats on serial clock. If
the shift register stores 32-bit reception data, data is copied to the receive FIFO except a parity bit.
Figure 3.6 MSB first (31-bit data with a parity)
[TSPIxDR]
(Data register)
[TSPIxDR]
(Data register)