caramoan tour package

caramoan tour package

Author Topic: why PortA.4 of PIC16f84A wont output?  (Read 1080 times)

Offline mon2jacko

  • CR2032 Battery
  • **
  • Posts: 10
  • Pogi/Ganda Points: 0
  • Gender: Male
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!

Philippine Electronics Forum

why PortA.4 of PIC16f84A wont output?
« on: November 03, 2009, 03:58:21 PM »

Offline 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
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  ;D

Philippine Electronics Forum

Re: why PortA.4 of PIC16f84A wont output?
« Reply #1 on: November 03, 2009, 04:00:06 PM »

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2179
  • Pogi/Ganda Points: 305
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
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.
The Cebuano Geek

Philippine Electronics Forum

Re: why PortA.4 of PIC16f84A wont output?
« Reply #2 on: November 03, 2009, 04:02:46 PM »

Offline Mayalin22

  • Hydroelectric
  • ***
  • Posts: 3389
  • Pogi/Ganda Points: 400
  • Gender: Female
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

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 »

Offline updated

  • Lead Acid Battery
  • *******
  • Posts: 761
  • Pogi/Ganda Points: 22
  • Gender: Female
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?

"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 »

Offline your most RIDICULOUS man :)

  • Diesel Generator
  • *
  • Posts: 1839
  • Pogi/Ganda Points: 53
  • Gender: Male
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?
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]

Offline Mayalin22

  • Hydroelectric
  • ***
  • Posts: 3389
  • Pogi/Ganda Points: 400
  • Gender: Female
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.

Simpler designs are usually better.

Offline 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...

 ;)

Offline Mayalin22

  • Hydroelectric
  • ***
  • Posts: 3389
  • Pogi/Ganda Points: 400
  • Gender: Female
Re: why PortA.4 of PIC16f84A wont output?
« Reply #8 on: November 05, 2009, 06:26:26 PM »
sister la ata analog ang F84
Simpler designs are usually better.

Offline 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 »
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...

Offline Mayalin22

  • Hydroelectric
  • ***
  • Posts: 3389
  • Pogi/Ganda Points: 400
  • Gender: Female
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.
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 »

 

Privacy Policy

Contact Us: elabph@yahoo.com