UART GetChar problem

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

cross mob
vica_4467471
Level 1
Level 1
First reply posted 5 questions asked 5 sign-ins

I am using BLE CY8C4248LQI-BL583....

Along with BLE I use 2 nos. of UART ports.

I am unable to read UART_1_GetChar() for controlling my embedded design.

PutChar() is working fine...

When I check for any input char it recognizes. But when I write:

char ch;

ch = UART_1_GetChar(); 

ch does not get the value read by me... I tried all set ups of setting RX and TX in the design module....

Can you help me?

Vittal Candade

info@niviqure.com 

 

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello Vittal,

Please refer to the attached code example in which the proper way to use the UART_UartGetChar() function is demostrated.

If the issue persists kindly attach you project, so that we can recreate the issue at our end. 

Best Regards

Ekta

View solution in original post

0 Likes
1 Reply
lock attach
Attachments are accessible only for community members.
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello Vittal,

Please refer to the attached code example in which the proper way to use the UART_UartGetChar() function is demostrated.

If the issue persists kindly attach you project, so that we can recreate the issue at our end. 

Best Regards

Ekta

0 Likes