Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

XMC™ Forum Discussions

Yehudit
Level 1
Level 1
First question asked Welcome!

hello,

I use an XMC4500 processor
I have a UART configured to 9 bit with 1382400 baud rate. 


When I receive a certain command, I go to update firmware for other card that is connected to my card (remote burning using BSL mode), For this process I need an 8 bit UART with a different baud rate.


For that, I want to change during runtime the UART to 8 bit with a different baud rate, and when I finish the burning process  return back to 9 bit.


Is there a way to do this?

Thanks  Yehudit

0 Likes
1 Solution
LinglingG_46
Moderator
Moderator
Moderator
10 questions asked 5 questions asked 250 sign-ins

Hello,

you can call the below APIs to setting:

API "XMC_USIC_CH_SetBaudrate(XMC_UART0_CH0,9600,16);" to set baud rate.

API: XMC_USIC_CH_SetWordLength(XMC_UART0_CH0,7); to set data width.

 

View solution in original post

0 Likes
1 Reply
LinglingG_46
Moderator
Moderator
Moderator
10 questions asked 5 questions asked 250 sign-ins

Hello,

you can call the below APIs to setting:

API "XMC_USIC_CH_SetBaudrate(XMC_UART0_CH0,9600,16);" to set baud rate.

API: XMC_USIC_CH_SetWordLength(XMC_UART0_CH0,7); to set data width.

 

0 Likes