- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
does anyone know if the UART settings can be changed on the fly? I think I found a way to change the baudrate, but I doesn't see a direct way to modify the number of data bits, etc.
Regards,
Ralf
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use UART_WriteControlRegister to control some aspects of the configuration. AFAICS there is no way to control the number of data bits.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use UART_WriteControlRegister to control some aspects of the configuration. AFAICS there is no way to control the number of data bits.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello hli,
thank you for the response. Too bad that there's no way to change the basic settings. I'll check if there's a more flexible solution.
Regards,
Ralf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Provided you have enough UDBs left: create multiple UARTs, each with the appropriate bit length, and switch their pins with a MUX to the output pins.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Hli,
that would be the quick solution for proof of concept. For the end application, I want to use a more flexible UART. So I have to dig into the UART component source code and check if it can be modified.
Regards,
Ralf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Probably not - I would assume that the number of data bits affect how the UART is synthesized into hardware.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That would be worst case 😞
From such basic peripherals like UART, SPI, etc. I'd expect that they are run-time configurable as they are on other MCUs. My problem is that for the current project I don't know at which settings the attached device will communicate, it depends on the customer.
I'll check the UDB capabilities...
Regards,
Ralf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should look at PSoC® 5LP Architecture TRM document
http://www.cypress.com/documentation/technical-reference-manuals/psoc-5lp-architecture-trm