Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Blinking leds on PortA and PortB - ATmega163

2005-05-15 by Dennis Clark

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

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.