Manasu24
Newbie level 3
- Joined
- Jan 7, 2015
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Location
- Banglore-27
- Activity points
- 28
here i am using TSOP ir receiver directly to the USCI UART port rxd pin.and it is producing the output as FF continuously for all commands.
link to data sheet
www.vishay.com/docs/82491/tsop382.pdf
link to microcontroller
www.ti.com/lit/ds/symlink/msp430f5438.pdf
code i am using:
the concept i am using here is:
-> Configuring the UART into IrDA mode.
-> Uart in IrDA mode have capability to decode the IR signals and fed decoded data in RX Buffer of UART.
but here in my case it is giving FF for all commands and signals whatever i am sending.
so please clarify me how to use this Ir receiver and Msp430 to get particular data i am sending.
Thanks in Advance
link to data sheet
www.vishay.com/docs/82491/tsop382.pdf
link to microcontroller
www.ti.com/lit/ds/symlink/msp430f5438.pdf
code i am using:
Code:
void irda_init(void)
{
UCA1CTL1 |= UCSWRST;
UCA1CTL0 |= 0x00;
UCA1CTL1 |= UCSSEL__SMCLK + UCSWRST;
UCA1MCTL |= UCBRF_0 + UCBRS_7 + UCOS16;
UCA1STAT &= ~UCLISTEN;
UCA1IRTCTL |= UCIRTXPL5 + UCIRTXCLK + UCIREN ;
UCA1IRRCTL |= UCIRRXFL5 + UCIRRXPL;// + UCIRRXFE;
UCA1CTL1 &= ~UCSWRST;
UCA1IE |= UCRXIE;
}
void hwi_irda(void)
{
_DINT();
System_printf("IRDATA = %d\t %x\t %c\n",UCA1RXBUF,UCA1RXBUF,UCA1RXBUF);
System_flush();
_EINT();
}
the concept i am using here is:
-> Configuring the UART into IrDA mode.
-> Uart in IrDA mode have capability to decode the IR signals and fed decoded data in RX Buffer of UART.
but here in my case it is giving FF for all commands and signals whatever i am sending.
so please clarify me how to use this Ir receiver and Msp430 to get particular data i am sending.
Thanks in Advance
Last edited by a moderator: