avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] AVR Macro Reference


From: df_welch
Subject: Re: [avr-gcc-list] AVR Macro Reference
Date: Fri, 30 Mar 2012 15:19:38 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.23) Gecko/20110920 Thunderbird/3.1.15

John,
   You will find these terms in the Device Datasheet    
On 3/30/2012 2:46 PM, John Krautkramer wrote:
Hi,

Studying the WinAVR & AVR Libc docs, I come across many references like:

#define UDR     UDR0
#define UCSRA   UCSR0A
#define UCSRB   UCSR0B
#define FE      FE0
#define TXEN    TXEN0
#define RXEN    RXEN0
#define RXCIE   RXCIE0
#define UDRE    UDRE0
#define U2X     U2X0
#define UBRRL   UBRR0L

   ADCSRA &= ~_BV(ADIE);/* disable ADC interrupt */
   UCSRA = _BV(U2X);             /* improve baud rate error by using 2x
clk */
   UBRRL = (F_CPU / (16UL * UART_BAUD)) - 1;
   SET(DDR, HD44780_RS);
   ASSIGN(DDR, HD44780_D4, 0x0F);

Where do I find a reference for what all these "constants" mean and how
to use them?

Thanks in advance for the direction! I'm obviously new to this.



_______________________________________________
AVR-GCC-list mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list



No virus found in this message.
Checked by AVG - www.avg.com <http://www.avg.com>
Version: 2012.0.1808 / Virus Database: 2114/4903 - Release Date: 03/29/12




reply via email to

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