Data Transmission and Reception
11-49
Multichannel Buffered Serial Ports
11.3.8 Receive Data Justification and Sign Extension: RJUST
RJUST in the SPCR selects whether data in the RBR is right- or left-justified
(with respect to the MSB) in the DRR. If right justification is selected, RJUST
further selects whether the data is sign-extended or zero-filled. Table 11–12
summarizes the effect that various values of RJUST have on an example
12-bit receive data value ABCh.
Table 11–12. Effect of RJUST Values With 12-Bit Example Data ABCh
RJUST value
Justification
Extension
Value in DRR
00
Right
Zero-fill MSBs
0000 0ABCh
01
Right
Sign-extend MSBs
FFFF FABCh
10
Left
Zero-fill LSBs
ABC0 0000h
11
Reserved
Reserved
Reserved
11.3.9 32-Bit Bit Reversal: (R/X)WDREVRS
The 32-bit bit reversal feature is only available for the ’C6211/C6711 device.
Normally all transfers are sent and received with the MSB first. However, if you
set the RWDREVRS field to 1 in the RCR, or the XWDREVRS field to 1 in the
XCR, the bit ordering of the 32-bit elements is reversed (LSB first) before being
received by or sent from the serial port. The (R/X)WDLEN(1/2) fields in the
(R/X)CR should be set to 101b to indicate 32-bit elements. Otherwise the
operation is undefined.