SPRUHM8K December 2013 – May 2024 TMS320F28374D , TMS320F28375D , TMS320F28376D , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28378D , TMS320F28379D , TMS320F28379D-Q1
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.