Page 1 of 1
UART pin choices
Posted: Mon Feb 11, 2013 1:29 am
by YahooArchive
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
Re: UART pin choices
Posted: Mon Feb 11, 2013 1:29 am
by YahooArchive
> 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.
Re: UART pin choices
Posted: Mon Feb 11, 2013 1:30 am
by YahooArchive
thats great thank you
