??? 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 |
Topic | Author | Date |
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 |