how to make a virtual serial port conection between proteus and serial port emulator
Discussion in "Project Doubts" started by dhanushka888 May 4, 2013.
Tue May 07 2013, 06:42 pm
Tue May 07 2013, 11:41 pm
i am also working on this...but while transmitting the data from 8051 to virtual terminal me getting a garbage value....i have set the baud rate by right clicking on the virtual hyper terminal...Belowe is the coding i m using could anyone help me please....i am transmitting a single letter 'A' but on hyper terminal me getting 'i' and when i right click on hyper terminal and mark the hex display mode it shows 'A1'...pls help me sir
#include <reg51.h>
void delay(unsigned int d)
{
unsigned int i,j;
for(i=0;i<=d;i++)
for(j=0;j<=1000;j++);
}
void main(void)
{
TMOD=0x20;
TH1=0xFD;
SCON=0x50;
TR1=1;
SBUF='A';
while(TI==0);
delay(50);
TI=0;
}
#include <reg51.h>
void delay(unsigned int d)
{
unsigned int i,j;
for(i=0;i<=d;i++)
for(j=0;j<=1000;j++);
}
void main(void)
{
TMOD=0x20;
TH1=0xFD;
SCON=0x50;
TR1=1;
SBUF='A';
while(TI==0);
delay(50);
TI=0;
}
Wed May 08 2013, 10:14 am
probably your controller's frequency is not correct then. In proteus simulator does not take account of external crystal. click on 8051 in schematic go to properties and change crystal frequency to 11.0592Mhz and try again.
Wed May 08 2013, 02:17 pm
thank you ajay sir.. it's solved now.. I didn't see that property value.. I waste your time a lot.. sorry for that
glad to know sushant973 that your problem is also solved...
glad to know sushant973 that your problem is also solved...
[ Edited Wed May 08 2013, 02:19 pm ]
Fri May 10 2013, 10:46 am
I am happy it worked for both of you Good luck! and happy learning..
dhanushka888 like this.
Mon Jul 24 2017, 08:10 pm
Here is a lot information about using virtual COM port - http://www.virtualserialportdriver.com/articles/how-to-use-virtual-serial-port-emulator/
I hope this article can help
I hope this article can help
Wed Nov 08 2017, 10:59 pm
Hi...i am a new user here. I was also facing the same issue so according to my solution you should remove max232 from proteus and connect RXD of controller to RXD of COMPIM and Txd of controller to TXD of COMPIM directly.
automated pcb assembly
automated pcb assembly
[ Edited Wed Feb 21 2018, 10:24 pm ]
Powered by e107 Forum System