- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am using puart of EVAL-343026(In EZ-serial mode) connected to an external host MCU, So far I can communicate with the EVAL in lower baudrates such as 115200 while with a UART clock frequency of 8MHz. I am getting garbage values when increasing the baudrate close to 1M.
Please help me on how to choose the UART clock frequency in order to achieve a 1M baudrate between the host and EVAL.
Regards,
Se
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you using the EZ-Serial FW? Did you set the UART baudrate with command STU?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I am using STU to set the baudrate. I am Atsamd51 as the host micro controller and would like to know what UART clock frequency needs to be used from the MCU side to achieve reliable communication @1M baudrate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It depends on the UART configuration on your host MCU. You need to check the oversample value of your MCU.
Theoretically, the baudrate error of the UART on your host MCU should be no more than 5%.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using hardware flow control, and success in communicating at a baud rate of 921600. I am using Atmel studio and when I am using the breakpoints to analyse the responses(from the CYBT module) on the Rx buffer of the MCU, sometimes I am getting corrupted values in the middle. The test code executes the 'get name' command every 100ms.
What are the timing characteristics of CYBT-343026 in API mode? I couldn't find relevant information in this manual
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you check the UART communication with a logic analyzer to see if the data is wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Due to working from home, I don't have access to lab until next week. In the mean time, could you provide any information with regards to the timing characteristics during EZ-serial text mode?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The EZ-Serial uses standard UART profile. It should work if the UART baudrate is match.
Besides, the device may enter sleep mode. Could you try to pull the LP_MODE pin (I2C_SDA/P12) to VDD and see if the problem still happens?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have LP_MODE,CYPP pins pulled to VDD already.
Still got corrupted bytes now and then. I think I need to verify the baudrate from the MCU to see whether it's matching.
Currently using the internal clock which is less accurate compared to and external crystal.