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
MultiUart in XMOS Topic is solved
-
- Junior Member
- Posts: 5
- Joined: Tue Jul 26, 2016 7:34 am
-
- XCore Addict
- Posts: 185
- Joined: Tue Mar 26, 2013 12:10 pm
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
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
-
- Junior Member
- Posts: 5
- Joined: Tue Jul 26, 2016 7:34 am
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?
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?
-
- XCore Addict
- Posts: 185
- Joined: Tue Mar 26, 2013 12:10 pm
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
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
-
- Junior Member
- Posts: 5
- Joined: Tue Jul 26, 2016 7:34 am
Thank you for your help.