Skip to main content
OBorr.1
Associate
October 8, 2021
Solved

Send extended ASCII characters HAL UART

  • October 8, 2021
  • 1 reply
  • 1195 views

Hello Community,

I'm trying to send some messages via uart using HAL_UART_Transmit. Those messages contain some extended ASCII Characters. I can´t get those characters and that's why i'm asking if someone could help me to send extended ASCII charcters.

Thanks!

    This topic has been closed for replies.
    Best answer by Peter BENSCH

    The function HAL_UART_Transmit() does not care about character formatting, it just send a bunch of data with 7/8/9 bits each. What you have to do now is to sort the bytes of the character set and send it one after the other so that they can be received by the recipient as your expected Extended ASCII set.

    Of course you have to know what has to be transmitted, i.e. exactly how your character set is structured, because there is not only one definition of Extended ASCII, see here.

    Regards

    /Peter

    1 reply

    Peter BENSCH
    Peter BENSCHBest answer
    Technical Moderator
    October 8, 2021

    The function HAL_UART_Transmit() does not care about character formatting, it just send a bunch of data with 7/8/9 bits each. What you have to do now is to sort the bytes of the character set and send it one after the other so that they can be received by the recipient as your expected Extended ASCII set.

    Of course you have to know what has to be transmitted, i.e. exactly how your character set is structured, because there is not only one definition of Extended ASCII, see here.

    Regards

    /Peter