Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Serial Data Problem- problem with serial programming

Status
Not open for further replies.

wolverine123

Newbie level 6
Joined
Feb 5, 2009
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,373
Serial Data Problem

Hey guys i'm using proteus 7.4 sp3 and its working fine until i do serial programming, i have connected a virtual terminal to see what the output would be etc... now sometimes when i make a new project and use my code it shows perfectly on the terminal but when i make another project to do the same thing it always shows me garbage... I know the code is correct or else it would have just showed me garbage all the time... does anyone else have the same problem or someone who faced this same problem??? please help
 

Re: Serial Data Problem

The problem is :---

Proteus is a real time simulator so you have to do the practical thing
USE MAX232 IC BETWEEN CONTROLLER AND TERMINAL
then it will work fine
I also faced same problem
 

Re: Serial Data Problem

wolverine123 said:
....
now sometimes when i make a new project and use my code it shows perfectly on the terminal but when i make another project to do the same thing it always shows me garbage...
...
make sure you have the correct settings for the "Virtual Terminal".
aside from the common settings like "Baud Rate",
you should also check the "RX/TX Polarity"..
 

Re: Serial Data Problem

I also did try to use a max232 in between but it just changed the data but it was still garbage. And i know when i burn the same code then it will and it does work fine just the way i want to, meaning that correct data is being sent but in proteus it just shows me garbage. and ya i did check the baud rate and data bits etc. I wanted to check this so i put another controller in the same page the correct one was working and put the same code in that controller too and one of em shows the correct response while the other shows garbage :(

Added after 2 hours 41 minutes:

This is the screenshot of what my problem is, both the controllers have the same code for writing "TEST", now one is fine but other is not and everything is the same
 

Re: Serial Data Problem

can you post the Proteus files and the program
so we can check this interesting problem
 

Re: Serial Data Problem

Look here also about serial communication of PIC microcontroller and PC

**broken link removed**
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top