Trying to set up a modem, found that PIC 16F877 hangs for a minute or so when the program executes the Hserout ["ATS0=3",13,10] command. Monitoring the serial port I get:
ATS0=
and then the program freezes for a minute. After that, a string <00> follows!
ATX3
AT&K0
ATS0=<00>
Here is a snippet of the program:
hserout ["ATX3",13,10]
pause 500
hserout ["AT&K0",13,10] 'No Dial tone, no Flow Control
Pause 800
Hserout ["ATS0=3",13,10] 'Auto Answer in 3 rings
pause 500
If anyone has any idea what's going on here, please help!
Ioannis
P.S. I tried to send the commands as one like ATs=0x3&K0 and seems to work. I am just concerned about timing....
Bookmarks