Jul 18, 2014
06:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 18, 2014
06:23 AM
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.,
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.,
- Tags:
- IFX
3 Replies
Jul 20, 2014
07:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 20, 2014
07:33 PM
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.
Jul 20, 2014
09:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 20, 2014
09:19 PM
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
Jul 21, 2014
06:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 21, 2014
06:40 AM
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
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