Atmega128

C for Atmega (GCC) Data Types

Posted by admin on March 30, 2008 at 5:05 pm

Tipuri de date recunoscute de compilatorul GCC pentru microcontrolele de la Atmel Toate Exemplele sunt testate in Avr-Studio & GCC plugin Tipuri Intregi de date 8 bit types typedef signed char        int8_t typedef unsigned char    uint8_t 16 bit types typedef int                       int16_t typedef unsigned            int uint 32 bit types typedef long                    int32_t typedef unsigned long    [...]

Atmega 128 – UART Comunication

Posted by admin on March 30, 2008 at 1:09 pm

Exemplul este valabil pentru Atmega128 + Quartz 8MHz Atmega 128 – UART Comunication   UART0 Initializare                BaudRate 4800 se seteaza registrul UBRR1H = 0 si UBRR1L = 103                BaudRate 9600 se seteaza registrul UBRR1H = 0; UBRR1L = 51;                BaudRate 115200  – UBRR1H = 0; UBRR1L = 3; Activare Linie RX, TX si intreruperea aferenta [...]