This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Special characters for printing in UART using MSP430G2

Hi,

 could anyone suggest where i can find list of characters that can be sent through UART.

 Ex:  i am trying to send MSK followed by a tab space, then Test and then a new line character.

MSK      Test

MSK      Test

etc..

  • Hi Srikanth,

    Here is a list of the special character in C

    https://en.wikipedia.org/wiki/Escape_sequences_in_C

    Let me know if you have other questions.

    Regards,

    Charles O

  • An UART sends bytes.

    These bytes can be interpreted as characters by the program at the other end that displays them, but the details of this interpretation depend on that program, and its configuration.
  • That makes perfect sense if you are using a Teletype as your standard terminal device.

    What is the standard terminal device for a G2LP?
  • In Debian Linux it is /dev/ttyACM0.

    In OS X it is /dev/tty.uart-E7FF469286D04A1E for mine.
  • Thanks for the info.

    I take it that both /dev/ttyACM0 and /dev/tty.uart-E7FF469286D04A1E are Teletype-like terminals

    In my mind, G2LP is a microprocessor on a board. It does not include a Standard Terminal Device at all. But because of using c-compilers, you need to think in terms of PDP-11 and Teletype terminals.

     

  • (%3)(12:16)(are)~> dict tty

    From Jargon File (4.3.1, 29 Jun 2001) [jargon]:

     tty /T-T-Y/, /tit'ee/ n. The latter pronunciation was primarily ITS,

        but some Unix people say it this way as well; this pronunciation is

        _not_ considered to have sexual undertones. 1. A terminal of the

        teletype variety, characterized by a noisy mechanical printer, a very

        limited character set, and poor print quality. Usage: antiquated (like

        the TTYs themselves). See also {bit-paired keyboard}. 2. [especially

        Unix] Any terminal at all; sometimes used to refer to the particular

        terminal controlling a given job. 3. [Unix] Any serial port, whether or

        not the device connected to it is a terminal; so called because under

        Unix such devices have names of the form tty*. Ambiguity between senses

        2 and 3 is common but seldom bothersome.

  • Thank you. It helped.

    Regards

    Srikanth M

**Attention** This is a public forum