Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem with handling open drain output of PIC 16f84a

Status
Not open for further replies.

gonewiththewind

Newbie level 4
Joined
Jun 21, 2005
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,320
Hi!
I'd like to output RA4 as 0 and 1 alternatively 0.5sec each time,not constant.But I am not successful.I can't handle open drain output.
Loop: Poke PortA,16
Pause 500
Pause PortA,0
Pause 500
Goto Loop
In my program, what's wrong?or something else?Pls......
 

Re: pic 16f84a

Hi gonewiththewind,

You should try to connect a pull up resistor between RA4 and +5V, its value 10K.

regrads,
 

pic 16f84a

RA4 is open drain so if you want to output ra4 of value 1,you have to pull up it to vdd through a resistor with value of 10k typically
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top