PORTA.4 is often an open drain type. So you can't drive a positive voltage with... well not directly as the other pins. try the append solution and post your result
PORTA.4 is often an open drain type. So you can't drive a positive voltage with... well not directly as the other pins. try the append solution and post your result
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Crow-Baring the LED to turn it OFF is not very elegant and significantly adds to Global Warming when the LED is OFF.
A better solution would be to connect one end of the Resitor to VDD (as you have it), the other end to the LED Anode, and the LED Kathode to PIC pin RA4. Drive the pin LOW for ON, and HIGH for OFF.
Hi,
This particular PortA.4 is open drain type so you have to take care it at hardware and software level.
Bye
@Melanie,
I agree but some will absolutely prefer using the 'when the pin is high the LED is on' method to make the code more easy to understand if there's no flag that convert 0 to LedIsOn and 1 to LedIsOFF. You know what i mean!
about the warming... (5*5)/300=0.083W ... human skin will produce more heat than this IMHO. But O.K for the unusefull current need.
Last edited by mister_e; - 28th April 2005 at 16:13.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks