Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 4th June 2004, 11:06 PM   (permalink)
Default Ra4 not working

Hi!

I use the pin RA4 of a PIC16F876A to drive a LED, but the LED never flashes although I didn't forget anything (set TRIS register etc., I tried several chips).
By the way I use RA0/AN0 as an analog input.
Has anybody experienced the problem already and can tell me, how I can solve it?

cya
i2c2k[/code]
i2c2k is offline  
Old 5th June 2004, 12:00 AM   (permalink)
Default Re: Ra4 not working

Quote:
Originally Posted by i2c2k
Hi!

I use the pin RA4 of a PIC16F876A to drive a LED, but the LED never flashes although I didn't forget anything (set TRIS register etc., I tried several chips).
By the way I use RA0/AN0 as an analog input.
Has anybody experienced the problem already and can tell me, how I can solve it?
[/code]
RA4 is usually an open-collector output (see the datasheets), so you can only sink current, not source it.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 7th June 2004, 04:01 AM   (permalink)
Default

Put a pullup resistor on it and you'll be set.

Ron
RonH is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 05:00 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker