Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/30/05 17:16
Modified:
  10/30/05 18:48

Read: times


 
#103139 - How to send ASCII character in C?
Hi, All

I'm trying to send ASC character in C language. I setup the serial communication and it works well. I use the printf command to send the character.
I need to send two ASCII characters "SOH" and "0". The corresonding hex values are 0x01 and 0x30 respectively.
I remember I can send the ASCII character "D" by the following code
printf{"D"};
Can I use the same way to send the two characters above? I can send "0" but not"SOH" directly. "SOH" is Ctrl+A. Thank you for your help.

Best regards
Steve Lee

List of 4 messages in thread
TopicAuthorDate
How to send ASCII character in C?            01/01/70 00:00      
   putch            01/01/70 00:00      
      Thank you.            01/01/70 00:00      
         putchar() may perform some translation            01/01/70 00:00      

Back to Subject List