SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
SPCR1 = 0001h SPCR2 = 0030h ;
The receiver is running with the receive interrupt (RINT) triggered by the receiver ready bit (RRDY).;
The transmitter is in its reset state.;
The transmit interrupt (XINT) will be triggered by the transmit frame-sync error bit (XSYNCERR).;
PCR = 0900h ;
Transmit frame synchronization is generated internally according to the FSGM bit of SRGR2.;
The transmit clock is driven by an external source. ;
The receive clock continues to be driven by sample rate generator. The input clock ;
of the sample rate generator is supplied by the CPU clock. ;
SRGR1 = 0001h SRGR2 = 2000h ;
The CPU clock is the input clock for the sample rate generator. The sample ;
rate generator divides the CPU clock by 2 to generate its output clock (CLKG). ;
Transmit frame synchronization is tied to the automatic copying of data from ;
the DXR(s) to the XSR(s). ;
XCR1 = 0740h XCR2 = 8321h ;
The transmit frame has two phases. Phase 1 has eight 16-bit words. ;
Phase 2 has four 12-bit words. There is 1-bit data delay between the start of a ;
frame-sync pulse and the first data bit transmitted. ;
SPCR2 = 0031h ;
The transmitter is taken out of reset.