[Top][All Lists]

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

Re: [avr-gcc-list] Bit of code

From: Brandon Tolbert
Subject: Re: [avr-gcc-list] Bit of code
Date: Fri, 14 Jun 2002 17:59:26 -0500

yes it is your code as small as that program was it has helped me quite a
bit.  I am just trying to figure out now what register holds the value that
determines the length of the pulse. thanks for your help

----- Original Message -----
From: "Leon Heller" <address@hidden>
To: "Brandon Tolbert" <address@hidden>; "AVR List"
Sent: Friday, June 14, 2002 4:47 PM
Subject: Re: [avr-gcc-list] Bit of code

> ----- Original Message -----
> From: Brandon Tolbert
> To: AVR List
> Sent: Friday, June 14, 2002 8:44 PM
> Subject: [avr-gcc-list] Bit of code
>         ldi     temp,0x81           ;non-inverting PWM, 8-bit
>         out     TCCR1A,temp
>         ldi     temp,0x02           ;CK/8
>         out     tccr1b,temp
> this little bit of code I believe has an error from what I thought I
> understood of PWM. Isn't it true that the prescaler does not work in PWM?
> Hope someone that is better at pgming can help me out. thanks to all..
> I think that was my code! I've just checked the data sheet, and you are
> correct. In 8-bit mode the frequency is ftck1/510.
> Leon
> --
> Leon Heller, G1HSM address@hidden
> http://www.geocities.com/leon_heller
> Low-cost Altera Flex design kit: http://www.leonheller.com

avr-gcc-list at http://avr1.org

reply via email to

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