avr-chat
[Top][All Lists]
Advanced

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

RE: [avr-chat] SFRs in assembly code


From: Weddington, Eric
Subject: RE: [avr-chat] SFRs in assembly code
Date: Wed, 22 Jul 2009 16:05:34 -0600

 

> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden
>  On Behalf Of Weddington, Eric
> Sent: Wednesday, July 22, 2009 4:01 PM
> To: Daniel Otte; address@hidden
> Subject: RE: [avr-chat] SFRs in assembly code
> 
>  
> > #define UBRR_VALUE ((((F_CPU) + (8UL * (BAUD))) /(16UL * 
> > (BAUD))) -1UL)
> 
> First off, where is this definition of UBRR_VALUE coming 
> from? Somehow -1 and UL should not go together (an *unsigned* 
> long -1??).

Bah, nevermind! I mistook it for a negative of 1, and instead it's a 
subtraction of 1.

Off to go get more caffeine.... :-/




reply via email to

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