View previous topic :: View next topic |
Author |
Message |
kamillas
Joined: 24 Oct 2011 Posts: 50
|
Simulation RA4 |
Posted: Wed Feb 29, 2012 4:00 am |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
RF_Developer
Joined: 07 Feb 2011 Posts: 839
|
Re: Simulation RA4 |
Posted: Wed Feb 29, 2012 4:22 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
kamillas
Joined: 24 Oct 2011 Posts: 50
|
|
Posted: Wed Feb 29, 2012 4:50 am |
|
|
thank's Rf developer |
|
![](templates/subSilver/images/spacer.gif) |
temtronic
Joined: 01 Jul 2010 Posts: 9172 Location: Greensville,Ontario
|
|
Posted: Wed Feb 29, 2012 6:29 am |
|
|
WOW !!! Proteus got something RIGHT??????? |
|
![](templates/subSilver/images/spacer.gif) |
RF_Developer
Joined: 07 Feb 2011 Posts: 839
|
|
Posted: Wed Feb 29, 2012 7:12 am |
|
|
temtronic wrote: | WOW !!! Proteus got something RIGHT??????? |
Maybe not. I might be standing by a lamppost in a frozen forest....
RF Developer |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19365
|
|
Posted: Wed Feb 29, 2012 7:45 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
|