UART pin choices

Questions on UARTs, and serial communication
Post Reply
YahooArchive
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am

UART pin choices

Post by YahooArchive » Mon Feb 11, 2013 1:29 am

is this accessible using the TX1, RX1 commands?, I read some where only UART0
was linked in the code (im using c library not basic)

I also noticed on the schematic you can also use pins 47/48 for another UART1
could i use this as my UART1 instead of the 59,60 one

Thanks



YahooArchive
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am

Re: UART pin choices

Post by YahooArchive » Mon Feb 11, 2013 1:29 am

> is this accessible using the TX1, RX1 commands?, I read some where only UART0
was linked in the code (im using c library not basic)

The new uart.h/c library configures all available UARTs. They are not turned on
until UART_init(UARTnumber, baudrate) is called. Then access to them is via
getc(UARTnumber) and putc(ch, UARTnumber)

>
> I also noticed on the schematic you can also use pins 47/48 for another UART1
could i use this as my UART1 instead of the 59,60 one

Yes, change the source in uart.c PINSEL programming.

This all assumes you are using the latest setupC.exe from the Support page. Yes
its still a work in progress, but all the above are working, and I'm testing the
bit banged I2C, SPI, and SHIFT routines today.

YahooArchive
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am

Re: UART pin choices

Post by YahooArchive » Mon Feb 11, 2013 1:30 am

thats great thank you :)

Post Reply