CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

What code/value to use to represent keyboard 'ENTER' COMMAND

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ernest



Joined: 11 Feb 2004
Posts: 51

View user's profile Send private message

What code/value to use to represent keyboard 'ENTER' COMMAND
PostPosted: Wed Apr 07, 2004 8:33 pm     Reply with quote

Hi,

I am using PIC 16F877A to acquire a string of ASCII data from Hyperterminal.

To send numerical values from 0-9, we just TYPE in the key for the respective number on the KEYBOARD such as 0 to represent 0 and 7 to represent 7.

But what ASCII value is used to represent the ENTER command on the Keyboad?

What shall I type in the HYPERTERMINAL to send an ENTER command to the PIC? I mean what is EXACTLY being sent by Hyperterminal to PIC to represent the ENTER command?

Thanks a lot in advance.
dyeatman



Joined: 06 Sep 2003
Posts: 1912
Location: Norman, OK

View user's profile Send private message

PostPosted: Wed Apr 07, 2004 9:15 pm     Reply with quote

The ascii character for zero is hex 30 and dec 048. Seven is hex 37 and decimal 55. The ENTER key is an ascii CR (hex 0D Decimal 13)

The ascii code table is here:
http://www.asciitable.com/
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group