Home arrow Support arrow Forums

Luminary Micro Forums

yyang

Senior Boarder

2008/11/03 10:23

LM3S6965 UART with IrDA for infrared?

Hi, I wonder if any one on this forum knows how to implement the IrDA SIR on a UART port. I have a problem to implement the infrared device (Sharp GP2W3270XP0F)connected to a UART + IrDA. I also talked with the support from Luminary, and they told me just add to enable the SIR, but I got no resolving regarding the UART +IrDA with no signaling output. Below is the initial config code. However, I got no signal output from the UART Port D on pin 2/3 (a oscilloscope probe used). Any help will be appreciated.
====================================================
SysCtlPeripheralEnable(SYSCTL_PERIPH_UART1);
GPIOPinTypeUART(GPIO_PORTD_BASE, GPIO_PIN_2 | GPIO_PIN_3);
UARTConfigSet( UART1_BASE, 115200, UART_CONFIG_WLEN_8 | UART_CONFIG_PAR_NONE | UART_CONFIG_STOP_ONE );
UARTEnable(UART1_BASE);
UARTEnableSIR(UART1_BASE, (tBoolean) false);
/* No FIFO */
HWREG( UART0_BASE + UART_O_LCR_H ) &= ~mainFIFO_SET;
HWREG( UART1_BASE + UART_O_IM ) |= ( UART_INT_TX |UART_INT_RX );
IntEnable( INT_UART1 );
=====================================================
Thanks,
Bill

login or register to reply

LMI Joe

Expert Boarder

2008/11/05 11:03

Re:LM3S6965 UART with IrDA for infrared?

Two things I can suggest to help troubleshoot:
1) try it without enabling the SIR first and verify you get a normal looking serial signal on the output.
2) try starting with a lower data rate

I looked at your init code and I dont see where you are enabling the GPIO block like this:

SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);

login or register to reply