Discussion in "Project Doubts" started by    dhanushka888    May 4, 2013.
Tue May 07 2013, 06:42 pm
#11
when press enter in the "transmit" side of the terminal, symbols are appeared in the "receiving" side..
then I connected max232 and nothing displayed in receiving side..

Tue May 07 2013, 11:41 pm
#12
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;

}
Wed May 08 2013, 10:14 am
#13
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, 11:10 am
#14
it works...thanx aloootttt
Wed May 08 2013, 02:17 pm
#15
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...


[ Edited Wed May 08 2013, 02:19 pm ]
Fri May 10 2013, 10:46 am
#16
I am happy it worked for both of you Good luck! and happy learning..
 dhanushka888 like this.
Mon Jul 24 2017, 08:10 pm
#17
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
Wed Nov 08 2017, 10:59 pm
#18
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


[ Edited Wed Feb 21 2018, 10:24 pm ]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Sazrfwh
Mon Oct 07 2024, 10:00 am
Trefbed
Mon Oct 07 2024, 06:26 am
Trefyxx
Mon Oct 07 2024, 06:04 am
Lazrbpm
Mon Oct 07 2024, 04:11 am
Cazrlev
Sun Oct 06 2024, 10:49 pm
Anya75sa
Sun Oct 06 2024, 08:22 pm
Daviddek
Sun Oct 06 2024, 06:50 pm
AlfonsoWef
Sun Oct 06 2024, 05:08 pm