real port interfacing with compim & virtual terminal

Discussion on both general simulation and Proteus VSM microcontroller simulation.
Post Reply
Roshan
Professional User
Posts: 27
Joined: Thu 2006-03-09 15:07

real port interfacing with compim & virtual terminal

Post by Roshan »

Hi,

I want to send serial data (usart) with pic16f877 to com port & i want to see all data ( send & receive). How can i set this circuit.

my diagram.

pic16f877-->max232-->virtual terminal

in this way my program is working. program send data on terminal & then i send back some text.

How can i send this data to com port & also want to see all data.

Regards

Roshan
Roshan
Professional User
Posts: 27
Joined: Thu 2006-03-09 15:07

real com port interfacing with compim

Post by Roshan »

not replyed by any one. I see here is many user of compim, no one can give idea or help.


Regards
Richard_Reeves
Expert User
Posts: 417
Joined: Thu 2006-03-09 14:05
Location: Aston University, Birmingham, England
Contact:

Re: real com port interfacing with compim

Post by Richard_Reeves »

Roshan wrote:not replyed by any one. I see here is many user of compim, no one can give idea or help.


Regards
But you posted your first message on a Sunday (yesterday) afternoon, and your follow-up early today.
Today is also national holiday in Britain.



Richard
The difference between theory and practice: Equations don't explode.
Жао ми је - не ради ми мозак...
Roshan
Professional User
Posts: 27
Joined: Thu 2006-03-09 15:07

Post by Roshan »

when i simulate compim I find pin no.-2 colour(logic state of pin) goes yellow. Can some one guide me what is this ?

Regards

Roshan
Richard_Reeves
Expert User
Posts: 417
Joined: Thu 2006-03-09 14:05
Location: Aston University, Birmingham, England
Contact:

Post by Richard_Reeves »

Roshan wrote:when i simulate compim I find pin no.-2 colour(logic state of pin) goes yellow. Can some one guide me what is this ?

Regards

Roshan
A yellow pin is contention, that is you are probably connecting two outputs together (see picture below.)
Could you have pins 2 and 3 the wrong way round?



Richard
Attachments
compim.jpg
compim.jpg (46.62 KiB) Viewed 634 times
The difference between theory and practice: Equations don't explode.
Жао ми је - не ради ми мозак...
Roshan
Professional User
Posts: 27
Joined: Thu 2006-03-09 15:07

Post by Roshan »

Dear Sir,

I am attaching picture, which i have picked at simulation time.

Regards

Roshan
Attachments
compim.JPG
compim.JPG (30.03 KiB) Viewed 623 times
Roshan
Roshan
Professional User
Posts: 27
Joined: Thu 2006-03-09 15:07

Post by Roshan »

Dear Sir,

My circuit is same as you mentioned in your picture.

Pin14 is max 232 output & it connects with pin 2.


If it is my mistake then what is soluation ?

txpin of pic-->max232 in-->max232 out-->compim pin2

this is my config which i am using.

Regards

Roshan
Roshan
Richard_Reeves
Expert User
Posts: 417
Joined: Thu 2006-03-09 14:05
Location: Aston University, Birmingham, England
Contact:

Post by Richard_Reeves »

Roshan,
You are getting the RXD and TXD pins of COMPIM the wrong way round. The RXD pin is data comming in to the serial port, not out.
Swap the RXD and TXD pins on your COMPIM and it should be okay.



Richard
The difference between theory and practice: Equations don't explode.
Жао ми је - не ради ми мозак...
Roshan
Professional User
Posts: 27
Joined: Thu 2006-03-09 15:07

Post by Roshan »

Dear Sir,

Thanks for reply. As per your instruction i have swaped pins 2 & 3.

Now it does not go yellow.

Pls. inform me if i want to add virtual terminal how can i connect this.

Regards

Roshan
Roshan
Roshan
Professional User
Posts: 27
Joined: Thu 2006-03-09 15:07

Post by Roshan »

Dear Mr. Richard,

Thanks for your support.

With your help i have completed my project.

It send at commands to modem for sms.

Regards

Roshan
Roshan
Post Reply