What are the settings for the serial port with hyper-terminal? 9600, 8, N, 1?
If so the 84 should work. If "E"ven then try 8276.
The code you posted has the wrong baud. But lets start over, sort of.
With the VDIP connected to the PC as you had it just sen a couple simple commands to the VDIP with the PIC and see if the PC will display the return.
The below should cause the VDIP to diplay on the terminal a
D:\>
every 1.5 seconds..
At least it is here...
Code:VinRXD VAR PORTD.7 'DATA TO VDIP PIN #8 OM VDIP1 FLOWIN VAR PORTD.6 'FLOW CONTROL FROM VDIP PIN #9 ON VDIP1 START: HIGH PORTD.2 'LED PAUSE 250 LOW PORTD.2 PAUSE 250 SEROUT2 VinRXD,84,["ECS",13] '9600 TRUE HIGH VinRXD PAUSEUS 10 SEROUT2 VinRXD,84,["IPA",13] HIGH VinRXD PAUSEUS 10 WAIT111: IF FLOWIN = 1 THEN WAIT111 PAUSE 1000 GOTO START





Bookmarks