my name is steve
I have only 1 serial port com1 RS232
and want to interface Qbasic to PBP
I am using QB7.1
it's very great compiles to EXE & downward compatable
is there a way to use both Qbasic
and melabs loader at the same time on 1 port
i am using the Max232 so i would use true not inverted
but what is open & driven?
i am using pins 6 & 7 on Pic16F877
hardware USART,
i would like to use Asynchronous no hand shaking
It would be nice to see some completed programs
from those who dun it
----------------PBP
' PicBasic Pro program to send and receive from the hardware serial port
char VAR BYTE ' Storage for serial character
start: HSerout ["Hello World", 13, 10] ' Send text followed by carriage return and linefeed
loop: HSerin 10000, start, [char] ' Get a char from serial port
HSerout [char] ' Send char out serial port
GoTo loop ' Do it all over again
End
----------------------Qbasic
OPEN "COM1:9600,N,8,1,BIN" FOR OUTPUT AS #1
print #1 A$
----------
Thanks
Bookmarks