I have a current board and am using the HSEROUT command. The settings are:
DEFINE HSER_RCSTA 90h ' Serial Input Enabled
DEFINE HSER_TXSTA 24h ' Serial Output Enabled (High Speed)
DEFINE HSER_BAUD 9600 ' Serial Baud Rate (9600 BPS)
and the output commands are
HSEROUT [dec2 RID, " "] ' Decimal 2 Characters, Space
HSEROUT [dec2 RUD, " "] ' Decimal 2 Characters, Space
Now I want to output do a different device that operates at 2400 buad and follows the the following protocol: Cntrl-A "p" "+" "01" Cntrl-C
I have hooked the new device to my computer and via hyperterminal I can send this and it receives and performs its function. Now I'm tying to get my board to do the same. So I changed the settings to:
DEFINE HSER_RCSTA 90h ' Serial Input Enabled
DEFINE HSER_TXSTA 24h ' Serial Output Enabled (High Speed)
DEFINE HSER_BAUD 2400 ' Serial Baud Rate (2400 BPS)
and I tried several outputs including:
HSEROUT [1] ' Decimal character 1 for SOH "Cntrl-a"
HSEROUT ["p"] ' ASCII letter p
HSEROUT ["+"] ' ASCII character +
HSEROUT ["01"] ' ASCII number "01"
HSEROUT[3] ' Decimal character 3 for EOH "Cntrl-c"
I'm trying to hard code what I can type into my keyboard and output the same thing from my board and am missing something.
Please help me out.
Thank you,
Hylan
Bookmarks