Page 1 of 2
Remapping existing serial channels, and additional channels
Posted: Sun Mar 24, 2013 3:05 am
by Lachlanp
I have a nano54415 and according to the runtime library documentation it only supports serial 0,1,2 which map to UARTs 0,1,2. I need to use both the SD card that has exclusive use of SPI1, so I was planning to use SPI3 for my own SPI peripherals.
Is it possible to remap Serial 1 (which uses UaRT1 and the same pins as SPI3) so that is uses UART8 or UART9?. Also, as I need a total of 4 serial ports, can I expand the Serial module to support a 4th channel (again mapped to UART8 or 9)? For these extra two serial channels I don't need handshaking.
Thanks
Lachlan
Re: Remapping existing serial channels, and additional chann
Posted: Sun Mar 24, 2013 7:38 am
by seulater
Take a look at the "Nano54415 Pin Sharing Tool" from versamodule. it can help you figure all that out.
http://www.versamodule.com/tools.html
Re: Remapping existing serial channels, and additional chann
Posted: Sun Mar 24, 2013 9:43 am
by rnixon
The data sheet says you can have up to 8 ttl uart ports. I think some of those pins are shared with spi, so that would reduce the count. I'm not sure what you are referring to as mapping. Why not just use 4 of the 8 ports for the uarts you want?
Re: Remapping existing serial channels, and additional chann
Posted: Sun Mar 24, 2013 10:34 am
by Lachlanp
The netburner run time library manual indicates under section 19.2 than only serial ports 0, 1, & 2 are supported.
I gather from the above discussion that this is not true and that serial ports 8 & 9 (uarts 8 & 9) are also supported. Is that correct?
Lachlan
Re: Remapping existing serial channels, and additional chann
Posted: Sun Mar 24, 2013 10:51 am
by seulater
You can use 8 & 9, they are supported.
int fds8=SimpleOpenSerial(8,115200);
int fds9=SimpleOpenSerial(9,115200);
Try that pin usage tool link. It will show you what combinations you can use.
Re: Remapping existing serial channels, and additional chann
Posted: Sun Mar 24, 2013 1:05 pm
by Lachlanp
Thanks for your help
Re: Remapping existing serial channels, and additional chann
Posted: Mon Mar 25, 2013 9:54 am
by dciliske
Ahh, the fun that is updating documentation; sometimes you miss things because you simply didn't know it was there. I'll take a look at updating the runtime docs to reflect the available uarts.
That said, I should point out that the pins for UART8 are tied directly to the CAN transceiver and thus will not be usable for normal TTL serial without removing the transceiver/cutting the traces/building your own prototype. The CAN transceiver is the SOIC8 labeled U7 near the DB9. If you need more information with regards to the dev board, please submit a support ticket.
One final note, I understand that it's annoying at best when a dev/eval board makes it difficult to use a feature of the actual part you're trying to use (my dev board has had its CAN transceiver removed...). However, keep in mind that the goal of the board is to make it as simple and as foolproof as possible for the user to evaluate and prototype everything that the product is capable of. This does mean there will be circumstances where it falls short it allowing the user to prototype an application as the board does not allow for some configurations.
-Dan
Re: Remapping existing serial channels, and additional chann
Posted: Mon Mar 25, 2013 1:14 pm
by Lachlanp
No problem. This is a great product, you don't need to justify. It's easy for me to remove the CAN chip. It's great how you have a lot of jumpers so I don't have to remove the rs232 chip to use the Extra SPI port, so that I can use the rs232 for a Peter test?
Lachlan
Re: Remapping existing serial channels, and additional chann
Posted: Mon Mar 25, 2013 2:28 pm
by dciliske
What's a peter test?
Re: Remapping existing serial channels, and additional chann
Posted: Tue Mar 26, 2013 8:47 am
by Lachlanp
Typo. Should be 'another'.