I need a second UART receive section in my design. I am trying to utilize the method in EE-191 to use the SPORT in an asynchronous manner.
Here is my init code. This is with SPORT 3 and the input data on DAI 16.
// Init the serial port as a uart.
// Route the USB UART RX lines to SPORT 3 (DAI pin to data in and FS)
SRU (LOW, PBEN16_I);
SRU (DAI_PB16_O, SPORT3_FS_I);
SRU (DAI_PB16_O, SPORT3_DB_I);
// Configure SPORT 3 for output to USB midi RX
*pSPCTL3 = 0 ;
*pDIV3 = 0x2BF;
*pSPCTL3 = ( LAFS | LFS | FSR | ICLK | SLEN29 | SPEN_B | CKRE ) ;