Send special characters via UART

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

cross mob
mibac_1334991
Level 1
Level 1

Hello,

I am using a thermal printer via UART, and I need to send ASCII extended characters to printer. The function that I used to send is UART_PutChar. Is there any way to send characters like Ç, Ã or Ê? PSoC marks these characters as a warning and the printer prints wrong characters.

Thanks in advance

0 Likes
1 Reply
jepaz
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked

Did you try sending the equivalent hex code in the putchar() function? Like putchar(0x64),

Another way is using the studio.h library you can write the message with the sprintf(variable,"messaged format", values) and later using put(variable) you can include cr and lf

0 Likes