English
Language : 

PXD20RM Datasheet, PDF (296/1628 Pages) Freescale Semiconductor, Inc – PXD20 Microcontroller
10.8.2.2 DSPI Transfer Count Register (DSPIx_TCR)
The DSPIx_TCR contains a counter that indicates the number of SPI transfers made. The transfer counter
is intended to assist in queue management. The user must not write to the DSPIx_TCR while the DSPI is
running.
Address: Base + 0x0008
Access: R/W
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
SPI_TCNT
W
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
R0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
W
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Figure 10-4. DSPI Transfer Count Register (DSPIx_TCR)
Table 10-4 describes the field in the DSPI transfer count register.
Table 10-4. DSPIx_TCR Field Descriptions
Field
Description
0–15 SPI transfer counter. Counts the number of SPI transfers the DSPI makes. The SPI_TCNT field is incremented
SPI_TCNT every time the last bit of an SPI frame is transmitted. A value written to SPI_TCNT presets the counter to that value.
[0:15] 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.
16–31 Reserved.
10.8.2.3 DSPI Clock and Transfer Attributes Registers 0–7 (DSPIx_CTARn)
The DSPI modules each contain eight clock and transfer attribute registers (DSPIx_CTARn) which are
used to define different transfer attribute configurations. Each DSPIx_CTAR controls:
• Frame size
• Baud rate and transfer delay values
• Clock phase
• Clock polarity
• MSB or LSB first
At the initiation of an SPI transfer, control logic selects the DSPIx_CTAR that contains the transfer’s
attributes.Do not write to the DSPIx_CTARs while the DSPI is running.
In master mode, the DSPIx_CTARn registers 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 bit
10-10
PXD20 Microcontroller Reference Manual, Rev. 1
Preliminary—Subject to Change Without Notice
Freescale Semiconductor