Information

43.3.2 DSPI Transfer Count Register (SPIx_TCR)
TCR contains a counter that indicates the number of SPI transfers made. The transfer
counter is intended to assist in queue management. Do not write the TCR when the DSPI
is in the Running state.
Addresses: SPI0_TCR is 4002_C000h base + 8h offset = 4002_C008h
Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
R
SPI_TCNT
0
W
Reset
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
SPIx_TCR field descriptions
Field Description
31–16
SPI_TCNT
SPI Transfer Counter
Counts the number of SPI transfers the DSPI makes. The SPI_TCNT field increments every time the last
bit of an SPI frame is transmitted. A value written to SPI_TCNT presets the counter to that value.
SPI_TCNT is reset to zero at the beginning of the frame when the CTCNT field is set in the executing SPI
command. The Transfer Counter wraps around; incrementing the counter past 65535 resets the counter
to zero.
15–0
Reserved
This read-only field is reserved and always has the value zero.
43.3.3 DSPI Clock and Transfer Attributes Register (In Master Mode)
(SPIx_CTARn)
CTARs are used to define different transfer attributes. The number of the CTARs is
parameterized in the RTL and can be from two to eight registers. Do not write to the
CTARs while the DSPI is in the Running state.
In Master mode, the CTARs define combinations of transfer attributes such as frame size,
clock phase and polarity, data bit ordering, baud rate, and various delays. In Slave mode,
a subset of the fields in CTAR0 are used to set the slave transfer attributes.
When the DSPI is configured as an SPI master, the CTAS field in the command portion
of the TX FIFO entry selects which of the CTAR register is used. When the DSPI is
configured as an SPI bus slave, the CTAR0 is used.
Memory Map/Register Definition
K20 Sub-Family Reference Manual, Rev. 2, Feb 2012
968 Freescale Semiconductor, Inc.