Re: PIC 16F84A Problems

From: Tim Wescott (tim_at_wescottnospamdesign.com)
Date: 07/08/04


Date: Thu, 08 Jul 2004 09:06:27 -0700

Cason wrote:

> Thats a good question....I was wondering that myself. Does anyone know the
> answer to this? I just saw in some other guys schematic that he didnt use
> resistors....Seemed a little strange, but it seems to work, or not in my
> case...=) The LED's dont seem like they get the color they do when you hook
> them staight up to a battery without limiting the current.
>
> What kind of output do the pins of the 16F84A have as far as Voltage and
> Current when they are high/low? I use 4.5 Volts to run my circuit.
>
> Another question: is low(logical 0) differentiable from no voltage?
>
>
> "Andrew Holme" <ajholme@hotmail.com> wrote in message
> news:966757eb.0407080559.272efa15@posting.google.com...
>
>>"Cason" <casonclagg@cox.net> wrote in message
>
> news:<1v7Hc.59801$rn1.22303@okepread07>...
>
>>>...LEDS connected directly to PORTB....
>>>...the count will not go past the third LED (the number 7)....
>>>...It just starts the program over again or so it seems....
>>
>>I don't know the processor but -
>>
>>Do you need current limiting resistors (e.g. 1K) in series with the
>>LEDs?
>>
>>Even if the outputs are current limited i.e. able to drive an LED
>>without a series resistor, the addwf PORTB instruction might not read
>>the correct value if the I/O pin is held too low by the LED.
>
>
>
_Always_ use current limiting resistors, if not for the $0.10 LEDs then
for the $2.00 processor.

Externally a logic low is not reliably differentiable from 0 volts,
particularly on CMOS. Internally (i.e. reading back the port) depends
on the processor -- some companies read back what you've commanded, some
read back the physical port (so if you yank it around with short
circuits and the like it messes it up). I don't know what Microchip does.

-- 
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com


Relevant Pages

  • Re: Keyboard LED
    ... > www.maplin.co.uk My multimeter was knackered, so I just ordered the first ... What output drives your LEDs? ... Then I guess you'll have a series resistor of 180-220Ohm. ... Beyond 15 mA you will almost certainly blow the output of the chip. ...
    (sci.electronics.components)
  • Re: voltage divider or series current resistor
    ... An LED MUST have a series resistor to limit the current or it will burn out ... It's not a question of lowering the voltage, ... On a simple circuit, like 2 LEDs with a 12v supply, which would be better, ... a voltage divider to lower the voltage or a series resistor to restrict ...
    (sci.electronics.basics)
  • Re: Building lighting
    ... Various people have mentioned model-railway-oriented suppliers who ... and a series resistor and perhaps even a bridge rectifier. ... But if you prefer to DIY, electronics suppliers will have various ... `warm white' LEDs. ...
    (rec.models.railroad)
  • Re: Controlling hundreds of LEDs
    ... But to control 38, I'll need another 5, right? ... be driven directly, source or sink, with only one series resistor per LED)" ... I'm currently running the LEDs directly from 5V on my ...
    (sci.electronics.design)
  • Re: Newbie Circuit Design Help
    ... The circuit should not use a PIC, ... I also need the "countdown" displayed on 3 seven segment leds. ... Since this problem has "homework" written all over it you should make that clear, point out what part of the assignment that you don't understand, and perhaps give a short, one-sentence explanation of why you can't go to your professor/tutor/grad student and ask their help. ... Wescott Design Services ...
    (sci.electronics.design)