Yes, I drew bad the buttons, sorry.
I tried with 300ohm resistors, but It works the same.
Yes, I drew bad the buttons, sorry.
I tried with 300ohm resistors, but It works the same.
Last edited by servo260; - 26th January 2005 at 01:48.
Hi, it's been a long time. I'm now donig the test with a 16f627. Up to now I am geting the same results, so it must be a soft problem. Any more ideas?
I changed the pins used by the buttons. Now the used porta.6 and porta.7, because I'm using internal osscilator. But the result it's the same (it takes less time with the 627 than 84a, around 10 sec).
I just remember that when I drive the 4511 with portb the subrutine works fine, then when I began to use porta all the problems started, but now I can't change it (at least I don't know how).
Is there any difference betwen both ports?
difference...
- RA4 is always an open drain output
- CMCON=7 ' to disable analog comparator on PORTA.. but i think you already do this
- RA5 is an input only
i'll review previous post and place it on a board... i'll let you know if i found something.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
a few, perhaps irrelevant, comments:
why store the value of circunferencia as 1 (data @0,1) and the use Read 0, circunferencia at power up to read it? why not set the variable to 1 (circunferencia=1) at start up and not worry about EEPROM?
why use Pause 1 three times for turning on the display when you could use Pause 3?
It is nice to have an End statement somewhere.
PIC MCU has output drive limitations - that's why Steve commented on using 300ohms to keep it within spec. Besides, the transistors have quite large hFE so you don't need to drive the base that hard to turn on the 7segments!
SENSOR? what kind of output? since there is no pull up (or pull down) on this line make sure logic 1 and 0 are true and the line doesn't float as you have disabled the internal port B pullups.
-warrier
Bookmarks