Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Ra4 not working

Status
Not open for further replies.

i2c2k

New Member
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 said:
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.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top