MultiUart in XMOS Topic is solved

If you have a simple question and just want an answer.
StrandBeast
Junior Member
Posts: 5
Joined: Tue Jul 26, 2016 7:34 am

MultiUart in XMOS

Post by StrandBeast »

Hi Guys,

I am trying to establish uart communication with many devices and since i am in short of 1-bit ports, I want to use multi bit ports for uart communication. But in the example code in Multi-Uart documentation, it was using an external clock. So, I have two question:
1. Is it mandatory to use an external reference clock or I can use internal clock as reference clock?
2. why does it requires a clock? (while using 1-bit ports we don't need a clock)

Thank you


View Solution
User avatar
johned
XCore Addict
Posts: 185
Joined: Tue Mar 26, 2013 12:10 pm

Post by johned »

Hi,

Multibit port use is covered in the UART library :
https://www.xmos.com/support/libraries? ... eripherals
The external clock is required for standard baud rate Rx, for Tx this is optional.

Best regards,
John
StrandBeast
Junior Member
Posts: 5
Joined: Tue Jul 26, 2016 7:34 am

Post by StrandBeast »

Hi John,

Thank you John for your reply. I have referred to the same UART lib. But my question is - Is it mandatory to use an external reference clock or I can use the internal clock as an reference?
User avatar
johned
XCore Addict
Posts: 185
Joined: Tue Mar 26, 2013 12:10 pm

Post by johned »

You're welcome,
It is mandatory to use a multiple of the baud rate. If you can generate a clock internally, that meets your necessary accuracy then this might work but I haven't tested it.
Someone else may have tested this configuration and may be able to advise.
All the best,
John
StrandBeast
Junior Member
Posts: 5
Joined: Tue Jul 26, 2016 7:34 am

Post by StrandBeast »

Thank you for your help.