Actually, wbounce wrote: > You resistor value seems high. > I use a 300 - 330 ohm resistor because a led needs 15 mAmps. Ie 5V/330 > = .015 amps I regularly use 1K, and figure the current as (5-1.7)/1000 which is about 3.3ma, more than enough for every LED I've ever used. DLC > -----Original Message----- > From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On > Behalf Of acemailone > Sent: Friday, May 13, 2005 11:12 PM > To: AVR-Chat@yahoogroups.com > Subject: [AVR-Chat] Blinking leds on PortA and PortB - ATmega163 > > > I'm trying to blink some leds using an ATmega163. I have one led on > PORTB.0 that goes to GND through a 4k7 resistor. This one works fine. A > second led on PORTA.0 going to GND doesn't blink. If I connect it to > VCC, then is blinking. > I checked the datasheet of ATmega163 and I didn't see any difference for > > ports A and B when they are configured as general I/O. > What could be the explanation? > > Adrian -- --------------------------------------- Dennis Clark TTT Enterprises ---------------------------------------
Message
Re: [AVR-Chat] Blinking leds on PortA and PortB - ATmega163
2005-05-15 by Dennis Clark
Attachments
- No local attachments were found for this message.