[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] defining a different output pin

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] defining a different output pin
Date: Tue, 2 Dec 2003 15:23:42 +0100 (MET)

As Blake <address@hidden> wrote:

>My problem is that the way the board is set up pin D5 is unavailable.  
>Pin D4 is available.

You cannot do that using the very simple demo application, because it
simply relies on the hardware features, so the LED must be connected
to the corresponding hardware `output compare' pin.

You could use an output compare interrupt, and toggle your desired
(arbitrary) output pin within that interrupt routine.  I'd suggest to
somehow get it running with the hardware PWM output first (maybe by
using ``flying wires'' to connect your LED), and then extend it to use
the interrupt-triggered pin change.
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]