Anybody tried PBP Code for SERIN2 with Proteus VSM? I have been trying to simulate the code in Proteus but no success yet.
uuq
Anybody tried PBP Code for SERIN2 with Proteus VSM? I have been trying to simulate the code in Proteus but no success yet.
uuq
here is the code and shematic..
..
http://www.picbasic.co.uk/forum/showthread.php?t=1806
I am using the following code for 16F877:
serialInput var PORTB.1
RX VAR BYTE[8]
TRISB=%01000000 'Make PORTB Pin 1 as input
start:
pause 200
PORTB=%11111111 'Just an indicator that the program has started
pause 200
serin2 serialInput, 396,[wait("+"),RX[0]]
PORTB=%00000000
pause 200
goto start
you don't need to connect xtal and C to drawing. use attachment file..
Thanks alot uludere72.
Is it necessary to use MAX232 with Virtual Terminal.
You are right that we donot need to connect the crystal and capacitors in Proteus. But the question is : why do the crystal and capacitors used in the Proteus sample design files?
Bookmarks