CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Simulation RA4

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kamillas



Joined: 24 Oct 2011
Posts: 50

View user's profile Send private message

Simulation RA4
PostPosted: Wed Feb 29, 2012 4:00 am     Reply with quote

Hi,
I want to know why in the simulation if I sent:

output_A(0b111111);


Proteus simulation gives me high impedance in the pin RA4.
RF_Developer



Joined: 07 Feb 2011
Posts: 839

View user's profile Send private message

Re: Simulation RA4
PostPosted: Wed Feb 29, 2012 4:22 am     Reply with quote

kamillas wrote:
Hi,
I want to know why in the simulation if I sent:

output_A(0b111111);


Proteus simulation gives me high impedance in the pin RA4


Pin RA4 is an open drain output on some (maybe many PICs). It cannot force the pin to high, you have to have a pull-up. Check this on the data sheet for your PIC.

RF Developer
kamillas



Joined: 24 Oct 2011
Posts: 50

View user's profile Send private message

PostPosted: Wed Feb 29, 2012 4:50 am     Reply with quote

thank's Rf developer
temtronic



Joined: 01 Jul 2010
Posts: 9232
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Feb 29, 2012 6:29 am     Reply with quote

WOW !!! Proteus got something RIGHT???????
RF_Developer



Joined: 07 Feb 2011
Posts: 839

View user's profile Send private message

PostPosted: Wed Feb 29, 2012 7:12 am     Reply with quote

temtronic wrote:
WOW !!! Proteus got something RIGHT???????


Maybe not. I might be standing by a lamppost in a frozen forest....

RF Developer
Ttelmah



Joined: 11 Mar 2010
Posts: 19529

View user's profile Send private message

PostPosted: Wed Feb 29, 2012 7:45 am     Reply with quote

The silly thing is that the basic analog simulator on Proteus is very good. Where is has problems is in complex digital parts. Simple things like a transistor output, it'll usually get right.

There is a separate issue, down to how you use it, that it will automatically make connections to things like power pins, and then not show these. If you look at their examples, they deliberately put labelled pins showing these connections, while 'casual' users tend to omit these. Hence people following the circuit that results then omit these connections.

For what most people want a simulator for, it's digital handling of parts like the PIC's, is 'inadequate'. MPLAB is far more accurate, but harder to use.

I hate it, and believe it causes more problems than it ever solves, but don't expect basic things like this to not work.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group