Philippine Electronics Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Philippine Electronics Forum
»
Digital Electronics
»
Microcontroller/Microprocessor Unit Projects and Programming
(Moderators:
edaph
,
marcelino
) »
why PortA.4 of PIC16f84A wont output?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: why PortA.4 of PIC16f84A wont output? (Read 1080 times)
mon2jacko
CR2032 Battery
Posts: 10
Pogi/Ganda Points: 0
Gender:
why PortA.4 of PIC16f84A wont output?
«
on:
November 03, 2009, 03:58:21 PM »
im having trouble of having an output on porta.4 of pic16f84a. is it possible to have an output on it? i have an project that needs 8inputs and 5 outputs so i decided to use the portb as my input and porta as an output. MY QUESTION: IS IT POSSIBLE TO HAVE AN OUTPUT ON PORTA.4? PLS HELPPP....
THNX!
Logged
Philippine Electronics Forum
why PortA.4 of PIC16f84A wont output?
«
on:
November 03, 2009, 03:58:21 PM »
0b00000111
Technical People
Solar Power Satellite
Posts: 6129
Pogi/Ganda Points: 398
There is no delight in owning anything unshared.
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #1 on:
November 03, 2009, 04:00:06 PM »
open-drain po siya
Logged
E-Gizmo Mechatronix Central:
www.e-gizmo.com
Tel #: (63)(2) 536-3378
Globe +63915-973-7691
Smart +63921-779-0748
Location Map
YM: julie.egizmo aka Born2BeWired
Philippine Electronics Forum
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #1 on:
November 03, 2009, 04:00:06 PM »
zer0w1ng
Technical People
Gas Turbine
Posts: 2179
Pogi/Ganda Points: 305
Gender:
Enter any 11-digit prime number to continue...
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #2 on:
November 03, 2009, 04:02:46 PM »
RA4 has open-drain output.
Meaning it can only sink current and not source it.
If you want a + output, put a pull-up resistor to the VDD on this PIN.
You could read this info in the PIC16F84A's datasheet.
Logged
The Cebuano Geek
Philippine Electronics Forum
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #2 on:
November 03, 2009, 04:02:46 PM »
Mayalin22
Hydroelectric
Posts: 3389
Pogi/Ganda Points: 400
Gender:
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #3 on:
November 03, 2009, 04:06:00 PM »
o kaya swap ka ng isang pin sa portb.
A4 = input
B? = output
Logged
Simpler designs are usually better.
Philippine Electronics Forum
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #3 on:
November 03, 2009, 04:06:00 PM »
updated
Lead Acid Battery
Posts: 761
Pogi/Ganda Points: 22
Gender:
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #4 on:
November 03, 2009, 04:07:15 PM »
tama si master7 as always
open collector po kasi ang porta,4. so pede m nmn gamitan ng pull-up resistor n 10K. or lagyan m ng led sa output at vcc.
tama ba ako master7?
Logged
"DO YOUR ORDINARY DUTIES EXTRAORDINARILY WELL."
Philippine Electronics Forum
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #4 on:
November 03, 2009, 04:07:15 PM »
your most RIDICULOUS man :)
Diesel Generator
Posts: 1839
Pogi/Ganda Points: 53
Gender:
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #5 on:
November 03, 2009, 05:22:15 PM »
Ano po ibig sabihin ng open drain?
Logged
God give us the grace to accept with serenity the things that cannot be changed, courage to change the things which should be changed and the wisdom to distinguish the one from the other [Reinhold Niebuhr]
Mayalin22
Hydroelectric
Posts: 3389
Pogi/Ganda Points: 400
Gender:
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #6 on:
November 03, 2009, 05:26:32 PM »
open drain or open collector
If the output device is a MOSFET the output is called open drain and it functions in a similar way.
Logged
Simpler designs are usually better.
blastronics
Size AA Battery
Posts: 103
Pogi/Ganda Points: 2
when you see me running, you should better follow.
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #7 on:
November 05, 2009, 05:02:54 PM »
read mo yung data sheet nung PIC reagadin PORTA.
this default nun is an analog input kaya isa din yun sa dahilan bakit di gagana.
may initialization muna yun para maging DIGITAL PORT.
Load ADCON1 with 0x06
in summary, read po ng data sheets...
Logged
Mayalin22
Hydroelectric
Posts: 3389
Pogi/Ganda Points: 400
Gender:
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #8 on:
November 05, 2009, 06:26:26 PM »
sister la ata analog ang F84
Logged
Simpler designs are usually better.
blastronics
Size AA Battery
Posts: 103
Pogi/Ganda Points: 2
when you see me running, you should better follow.
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #9 on:
November 06, 2009, 09:15:51 PM »
Quote from: c0♂Lėt on November 05, 2009, 06:26:26 PM
sister la ata analog ang F84
OOOOOPS!!!
Im reading PIC16F876 data sheet....
But the problem also excist on these device.. PORTA 4 wont have any output...
Logged
Mayalin22
Hydroelectric
Posts: 3389
Pogi/Ganda Points: 400
Gender:
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #10 on:
November 06, 2009, 10:33:05 PM »
me output pa din open drain nga lang... open drain output are good for 1 wire communication specially kung maraming device ang nakakabit.
Logged
Simpler designs are usually better.
Philippine Electronics Forum
Re: why PortA.4 of PIC16f84A wont output?
«
Reply #10 on:
November 06, 2009, 10:33:05 PM »
Print
Pages: [
1
]
Go Up
« previous
next »
Philippine Electronics Forum
»
Digital Electronics
»
Microcontroller/Microprocessor Unit Projects and Programming
(Moderators:
edaph
,
marcelino
) »
why PortA.4 of PIC16f84A wont output?
Privacy Policy
Contact Us: elabph@yahoo.com