Hello all,
I am currently trying to get IrDA working on our MSP430FR2111 Microcontroller.
Here is what I am currently doing to setup the UART and IrDA
SYSCFG1 |= IREN_1 | IRPSEL_0 | IRMSEL_0 | IRDSSEL_0;
UCA0IRCTL |= UCIREN_1 | UCIRTXCLK_1 | UCIRRXPL_1 | UCIRTXPL2 | UCIRTXPL0;
// Configure eUSCI_A UART module
UCA0CTLW0 = UCSWRST | UCSSEL__SMCLK; // Reset eUSCI
// Set SMCLK as BRCLK source
UCA0BRW = 0x0009; // UCABR1 = 0, UCABR0 = 1
UCA0MCTLW = 0xF701; // UCBRSx = 0x4A, UCBRFx = 1, UCOS16 = 1
UCA0CTLW0 &= ~UCSWRST; // Release eUSCI_A UART module for operation
UCA0IE = UCRXIE; // Enable eUSCI_A RX interrupt
TB0CTL |= TBSSEL__SMCLK | MC__UP | ID__1; // SMCLK, up mode, Input divide by 1
This from what I understand should enable the IrDA Encoder/Decoder and setup the uart to just under 115200 Baud. But when we run the code, we get nothing transmitting out the UART pins.
I cannot find any examples on how the IrDA is supposed to be used/setup.
Any help to get this IrDA mode operational with teh MSP430, that would be awesome.