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

cross mob
arp4022
Level 1
Level 1
First reply posted First question asked Welcome!

Hi
We are using XMC4700 with LQFP-100 chip format. Our board had tree uarts where one them must use hw controlled flow control becuse paired unit has high priority interrupt that disturbs its UART RX interrupt. Our plan is to use the CTS signal to hold back the transmission of the XMC until the receiver is free to receive more data. Our XMC uses following pins this UART
RX  P5.1
TX  P5.0
CTS P5.7
RTS P5.2
My question is. Is it possible to use P5.7 as CTS because I can not find this pin defined inside the file xmc4_usic_map.h?
#if (UC_DEVICE == XMC4700) && (UC_PACKAGE == LQFP100)

Thanks in advance
Stefan

 

 

 

0 Likes
1 Solution
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @arp4022 ,

Here is the way you can implement CTS and RTS for UART i.e. ASC which you can try on your end -

For CTS implementation, you can use DX2 for hardware trigger as shown in this image taken from the XMC 4700 reference manual-

Aashita_Raj_0-1649655510543.png

For RTS implementation, we need to use GPIO to act as RTS and a software workaround solution.

  1. Configure RTS as GPIO Output
  2. Software prepare UART for receiving mode
  3. Software output HIGH to indicate ready to send

Please follow above and check at your end and also, let us know in case of any further query!

Best Regards,

Aashita

 

 

 

View solution in original post

0 Likes
3 Replies
arp4022
Level 1
Level 1
First reply posted First question asked Welcome!

Hi again

I found in the reference manual that "Data Inputs (DX4)" has a input to P5.7 namely USIC2_CH0.HWIN2. I will test and see.

0 Likes
arp4022
Level 1
Level 1
First reply posted First question asked Welcome!

In section 18.2.3.1, inorder to use P5.7 (USIC2_CH0.HWIN2) you must enable CCR.HPCEN to 0x3. To enable HWIN on DX4. Is this neccessary to use HW flow control on a uart? Because in the description of HPCEN it says:

"The hardware port control feature is useful only
for SSC protocols in half-duplex configurations,
such as dual- and quad-SSC. For all other
protocols HPCEN must always be written with
00B."

0 Likes
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @arp4022 ,

Here is the way you can implement CTS and RTS for UART i.e. ASC which you can try on your end -

For CTS implementation, you can use DX2 for hardware trigger as shown in this image taken from the XMC 4700 reference manual-

Aashita_Raj_0-1649655510543.png

For RTS implementation, we need to use GPIO to act as RTS and a software workaround solution.

  1. Configure RTS as GPIO Output
  2. Software prepare UART for receiving mode
  3. Software output HIGH to indicate ready to send

Please follow above and check at your end and also, let us know in case of any further query!

Best Regards,

Aashita

 

 

 

0 Likes