This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to integrate the TI RTOS UART driver in IrDA mode

Other Parts Discussed in Thread: MSP430F5438

Hi TI people,

I now have a working msp430f5438 uart configuration for using USCI UART in Irda mode.

but,i want to integrate this code into TI RTOS and Currently the TI RTOS doesn't have any specific inbuilt API's for configuring the USCI UART into IrDA mode.

here i am using IrDA mode to receive the data from IR receiver (TSOP38438).

i repeat i have the code for normal msp430 and i want to integrate this into TI RTOS which doesn't have inbuilt library for this IrDA mode configuration.

msp430 code:

void irda_init(void)
{
UCA1CTL1 |= UCSWRST;
UCA1CTL0 |= UCMSB;
UCA1CTL1 |= UCSSEL__SMCLK + UCSWRST;
UCA1MCTL |= UCBRF_0 + UCBRS_7 + UCOS16;
UCA1IRTCTL |= UCIRTXPL5 + UCIRTXCLK + UCIREN ;
UCA1IRRCTL |= UCIRRXFL5 ;// + UCIRRXFE;
UCA1CTL1 &= ~UCSWRST;
UCA1IE |= UCRXIE;
}
void hwi_irda(void)
{
System_printf("=> %d\n",UCA1RXBUF);
System_flush();
__delay_cycles(10000);
}

please suggest me on how to integrate this code into TI RTOS.

Thanks in Advance.

  • Are you saying you'd like this driver to be integrated into and included in subsequent TI-RTOS releases?

    Alan
  • That would better.

    what i am saying is that i donot have the Particular API for IrDA mode initialization.

    so what is my alternative to do IrDA initialization with respect to TI RTOS.

    THANK YOU

  • It appears that if you call your irda_init() function AFTER the UART_open() call, your register modifications will be preserved through UART_read() and UART_write() calls.

    Alan
  • Sunil Kumar33 said:

    I now have a working msp430f5438 uart configuration for using USCI UART in Irda mode. ...

    here i am using IrDA mode to receive the data from IR receiver (TSOP38438). ...

    i want to integrate this into TI RTOS ...

    There may be a very fundamental problem. Connecting a TSOP38438 IR receiver to  an UART in irda mode simply cannot serve any useful purpose that I can think of. This has nothing to do with your driver or TI RTOS.

    Could you tell us what do you mean by a working configuration? What can you do under that configuration?  Can you receive any IR signal that is meaningful?  Who/what generated that IR signal? 

    I think TSOP38438 is designed to receive 38 kHz modulated IR commonly use in IR remote controller. It will demodulated the received signal and produce an active low on-off-keyed envelope. This is incompatible with IrDA standard.

  • Thank you very much for clarifying my doubt Mr.Old cow yellow