XMC1100 UART question

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

cross mob
User7489
Level 1
Level 1
Distributor - Avnet(GC)
10 sign-ins 5 sign-ins Welcome!
Hi :

Good day .

I used the XMC1100 UART sample code to test UART function and it work .
I try to change the UART Tx/Rx pin from USIC0_CH1(P1.2/P1.3) to USIC0_CH0(P2.0/P2.1) , but it don't work .
Please kindly guide me how to modify the sample code , thanks .

Best regards.,
0 Likes
3 Replies
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Terry_Su wrote:
Hi :

Good day .

I used the XMC1100 UART sample code to test UART function and it work .
I try to change the UART Tx/Rx pin from USIC0_CH1(P1.2/P1.3) to USIC0_CH0(P2.0/P2.1) , but it don't work .
Please kindly guide me how to modify the sample code , thanks .

Best regards.,


Look for manual pin configuration at DAVE3, which you can change the UART pins in XMC1100.
0 Likes
User7489
Level 1
Level 1
Distributor - Avnet(GC)
10 sign-ins 5 sign-ins Welcome!
Travis wrote:
Look for manual pin configuration at DAVE3, which you can change the UART pins in XMC1100.


Hi Travis :

Thanks for your reply .

But the example code has created without the Apps .
And I can't find the pin configuration in the source code .

Thanks .

Best regards.,

Terry
0 Likes
User7489
Level 1
Level 1
Distributor - Avnet(GC)
10 sign-ins 5 sign-ins Welcome!
Hi Travis :

I has solved this problem already .

1. Change all "USIC0_CH1" to "USIC0_CH0"
2. Add "P2_0_enable_digital();" into main() , because P2.0 is analog pin at default .
3. Change "P1_2_set_mode(OUTPUT_OD_AF7);" to "P2_0_set_mode(OUTPUT_OD_AF6);" , change "P1_3_set_mode(INPUT);" to "P2_1_set_mode(INPUT);"

Thanks .

Best regards.,

Terry
0 Likes