Re: AVR and dim LEDs.



artswan wrote:

Oh, one final note that I forgot to mention (silly me!), I connected
the LED, both with a series 220 ohm resistor and without, from Vdd to
the output pin, so as to have the AVR chip sink current rather than
source it, and there was no longer any visible blinking of the LED.

You are risking damage to the LED and/or the chip by connecting it
without a resistor.

Anyway, it looks like your problem is that you haven't set the pin to
output mode.

for example if it was pin 0 on port C you would use:

sbi DDRC,0

When the data direction bit is low the port bit just switches on or off
a pull-up resistor. That would explain the symptoms you are getting.

--
Mike
.



Relevant Pages

  • Re: Has my PIC blown?
    ... and off via pin 17 and I am keeping a green LED turned on, ... So both the anodes of the LED goes to the output pin of the voltage ... I put a 270 ohms resistor in series and the red LED flickers ... pin of voltage regulator and this clears up the flickering. ...
    (sci.electronics.basics)
  • Re: build circuit
    ... 1Meg Ohm resistor ... Solder the 0.33uF capacitor between these leads. ... If it does not heat up, measure the voltage between the left and center pin ... Take the electret microphone, and look at it. ...
    (sci.electronics.basics)
  • Re: Op amp distortion
    ... In either case, you decrease the distortion by adding a load resistor from the negative rail to the output pin, to maintain a small DC bias current through the output stage. ... R12 is not fitted and the output on pin 7 connects through a 10uF capacitor to the 'top' of a 10K pot in the mixer stage which is grounded at the other end. ...
    (sci.electronics.design)
  • Re: Q: Transistor as a switch with pull down ?
    ... The relay is connected between +12v and collector. ... digital output pin the base will be floating if the PIC failes to ... pulldown resistor at 10k and replace the IO pin to base with say a 1k ... And if I were sending this line to a connector, ...
    (sci.electronics.basics)
  • Re: Problem with National NC-57
    ... National NC-57. ... measurements at all tube sockets and every measurement ... can't see how pin 6 should be 380K ohms. ... resistor are soldered to pin 6 (the other end of the .1uf ...
    (rec.radio.amateur.boatanchors)