I have connected the inverter between max232 and db9 since the output from max232 is inverted one.
Compim already has max232 lavel taken care of? I didn't know that.
However, i have found the problem is behind. Its from the output of pic.
Look at the pic. Logic conflict from the output of pic. I am newbie in serial communication. Please help. View attachment 65947
source code:
#include <p18f4520.inc>
org 0h
movlw b'00100000'
movwf txsta
movlw d'15'
movwf spbrg
bcf trisc, tx
bsf rcsta, spen
over movlw a'y'
call trans
movlw a'e'
call trans
movlw a's'
call trans
movlw 0x0
call trans
bra over
trans
s1 btfss pir1, txif
bra s1
movwf txreg
return
end
My bad. i have to connect TX from mcu to RX of virtual port. Now it works. can see yes in virtual terminal.
heres the picture. View attachment 65948
Now i have another problem. After giving connection to DB9 (compim in proteus) i want to see the output in RealTerm (win7) with Virtual Serial Port. But i can't see the output there. View attachment 65949
Can anyone help me in this part?
I have com0com overriding com4 and com5 ( You have to override com4 as it say's its already a port )
I set the DB9 model to com4, then set hyper terminal to com5..
But I don't know why you are doing this, because the terminal window in Proteus is doing pretty much the same..
I only use it with VB6 and C#, to model an input from a serial device.
Connecting through a virtual port behaves EXACTLY the same as using the term in Proteus.. So I don't know why you are having issues.