cancel
Showing results for 
Search instead for 
Did you mean: 

UART2 and UART0 configuration

satnam2
Associate II
Posted on May 05, 2010 at 16:08

UART2 and UART0 configuration

2 REPLIES 2
Pantuca.Erwin
Associate II
Posted on May 17, 2011 at 10:00

i recheck your settings with the datasheet.  i think your settings for uart0_tx also set GPIO_IPInputConnected to GPIO_IPInputConnected_Enable.  If you look at what the library is doing this will set SCU->GPIOIN register to 1 for this pin.  this will enable the Alternate Input1 for P3.1 which is uart2_rx.

so my guess is when using 3uarts, you initialize uart2 first then uart0, which changes the uart2_rx perpheral connection to a different pin P3.1.  and it also explains why uart0 cannot work with uart2 while other combinations work.

in any case, i think it is proper not to set the GPIOIN register if the pin will be used only as output.  let us know if this is any help.

satnam2
Associate II
Posted on May 17, 2011 at 10:00

Many thanks dear.....

Your suggestions helped me solve the problem. I disabled all the pheripheral connects for the TX pins and configured uart2 before uart0. Now all the three uarts are working fine with there Rx interrupts. 

Thanks a lot..................

Regards,

Satnam Singh