Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Whats the equivalent string for the enter key for a micro?

Status
Not open for further replies.

chardbiggie

Junior Member level 1
Joined
Dec 19, 2004
Messages
15
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
206
how to send enter key

i am using a ds89c420 microcontroller to answer a cal via modem, the at command for answering a call is ATA, so i burn the command print "ATA" to my microcontroller( i am using Basic language) , the problem is that for the modem to execute the command an enter key or carriage return must be executed how will i burn this to a microcontroller...

in short the enter key what is its equivalent string or how would i burn it on a microcontroller

hope u guys could help
 

checkmate

Advanced Member level 3
Joined
Feb 25, 2004
Messages
833
Helped
178
Reputation
356
Reaction score
125
Trophy points
1,323
Location
Toilet Seat
Activity points
7,815
Re: how to send enter key

In most cases, the <Enter> key is normally associated with the carriage return, which is denoted by ASCII character 13.
 

pisoiu

Advanced Member level 3
Joined
Dec 31, 2002
Messages
750
Helped
43
Reputation
86
Reaction score
17
Trophy points
1,298
Location
Romania
Activity points
7,883
how to send enter key

The equivalent hexadecimal sequence of <cr><lf> is 0x0D 0x0A, or if you want in decimal, 13,10. Just send this using SBUF and it will work.
 

chardbiggie

Junior Member level 1
Joined
Dec 19, 2004
Messages
15
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
206
how to send enter key

yeah i already read that how would i execute it using BASIC language?
would
print "ATA"
print "13"

do the trick?

how????
please help thanks!!!!
 

checkmate

Advanced Member level 3
Joined
Feb 25, 2004
Messages
833
Helped
178
Reputation
356
Reaction score
125
Trophy points
1,323
Location
Toilet Seat
Activity points
7,815
Re: how to send enter key

The last time I coded in BASIC is at least a decade ago. Anyway, I remember BASIC uses the chr$(13) function. Not too sure about PICBASIC. According to **broken link removed**, they did mention a chr() function. Probably it's the same.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top