SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
RJUST in SPCR1 selects whether data in RBR[1,2] is right- or left-justified (with respect to the MSB) in DRR[1,2] and whether unused bits in DRR[1,2] are filled with zeros or with sign bits.
Table 34-33 and Table 34-34 show the effects of various RJUST values. The first table shows the effect on an example 12-bit receive-data value ABCh. The second table shows the effect on an example 20-bit receive-data value ABCDEh.
RJUST | Justification | Extension | Value in DRR2 | Value in DRR1 |
---|---|---|---|---|
00b | Right | Zero fill MSBs | 0000h | 0ABCh |
01b | Right | Sign extend data into MSBs | FFFFh | FABCh |
10b | Left | Zero fill LSBs | 0000h | ABC0h |
11b | Reserved | Reserved | Reserved | Reserved |
RJUST | Justification | Extension | Value in DRR2 | Value in DRR1 |
---|---|---|---|---|
00b | Right | Zero fill MSBs | 000Ah | BCDEh |
01b | Right | Sign extend data into MSBs | FFFAh | BCDEh |
10b | Left | Zero fill LSBs | ABCDh | E000h |
11b | Reserved | Reserved | Reserved | Reserved |