qbasic says device time out
it seems that the pic is not recieving
i have set the baud rate with define statement
i don't know what else could be
also i used the close statement QB71
in a seperate program
but bootloader still gives error for com1
my code for both below
-----Pic Basic Pro
' PicBasic Pro program to send and receive from the hardware serial port
DEFINE LOADER_USED 1
char VAR BYTE ' Storage for serial character
DEFINE HSER_BAUD 9600
HSerin 10000, start, [char] ' Get a char from serial port
start: HSerout ["Hello World", 13, 10] ' Send text followed by carriage return and linefeed
loop:
HSerout [char] ' Send char out serial port
GoTo loop ' Do it all over again
End
--------------------qbasic
10 CLS
20 SCREEN 9
30 COLOR 1, 60
35 A$ = "Hello World"
40 OPEN "com1:9600,n,8,1,bin" FOR OUTPUT AS #1
50 PRINT #1, A$
60 Input #1, B$
70 print B$
60 GOTO 50
----------
thanks
Bookmarks