Sei sulla pagina 1di 5

ATMEGA8

Analog Comparator (AC)


Analog Comparator Interrupt Mode Select Bits (ACRS)
Name Address Value Bits
ACSR 0x28 0x00 7 6 5 4 3 2 1 0
ACD
ACBG
ACO
ACI
ACIE
ACIC
ACIS
SFIOR 0x50
ACME
Analog to Digital Converter (AC)
Reference Selection Bits (ADMUX)
ADC Prescaler Select Bits (ADCSRA)
Name Address Value Bits
ACSR 0x28 0x0000 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
ADCSRA 0x26 0x00
ADEN 0x00
ADSC 0x00
ADFR 0x00
ADIF 0x00
ADIE 0x00
ADPS 0x00
AMUX 0x27 0x00
REFS 0x00
ADLAR 0x00
MUX 0x00
CPU Registers (CPU)
Sleep Mode Select (MCUCR)
Interrup Sense Control 1 bits (MCUCR)
Interrup Sense Control 0 bits (MCUCR)
Name Address Value Bits
SFIOR 0x50 0x00 7 6 5 4 3 2 1 0
ADHSM 0x00
PUD 0x00
PSR10 0x00
OSCCAL 0x51 0x00
OSCCAL 0x00
MCUCSR 0x54 0x00
WDRF 0x00
BORF 0x00
EXTRF 0x00
PORF 0x00
MCUCR 0x55 0x00
SE 0x00
SM 0x00
ISC1 0x00
ISC0 0x00
SPMCR 0x57 0x00
SPIMIE 0x00
RWWSB 0x00
ATMEGA8
RWWSR 0x00
E
BLBSET 0x00
PGWRT 0x00
PGERS 0x00
SPMEN 0x00
SP 0x5D 0x0000 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
SREG 0x5F 0x00
I 0x00
T 0x00
H 0x00
S 0x00
V 0x00
N 0x00
Z 0x00
C 0x00
EEPROM (EEPROM)
Name Address Value Bits
EERIE 0x3C 0x00 7 6 5 4 3 2 1 0
EERIE 0x00
EEMWE 0x00
EEWE 0x00
EERE 0x00
EEDR 0x3D 0x00
EEAR 0x3E 0x00
External Interrupts (EXINT)
Interrupt Sense Control 1 Bits (MCUCR)
Interrupt Sense Control 0 Bits (MCUCR)
Name Address Value Bits
MCUCR 0x55 0x00 7 6 5 4 3 2 1 0
ISC1 0x00
ISC0 0x00
GIFR 0x5A 0x00
INTF 0x00
GICR 0x5B 0x00
INT 0x00
IVSEL 0x00
IVCE 0x00
I/O PORTB
Name Address Value Bits
PINB 0x36 0x00 7 6 5 4 3 2 1 0
DDRB 0x37 0x00
PORTB 0x38 0x00
I/O PORTC
Name Address Value Bits
PINC 0x33 0x00 7 6 5 4 3 2 1 0
DDRC 0x34 0x00
PORTC 0x35 0x00
I/O PORTD
Name Address Value Bits
PIND 0x30 0x00 7 6 5 4 3 2 1 0
ATMEGA8
DDRD 0x31 0x00
PORTD 0x32 0x00
Serial Peripheral Interface SPI
SPI Clock Rate Selects (SPCR)
Name Address Value Bits
SPCR 0x2D 0x00 7 6 5 4 3 2 1 0
SPIE 0x00
SPE 0x00
DORD 0x00
MSTR 0x00
CPOL 0x00
CDHA 0x00
SPR 0x00
SPSR 0x2E 0x00
SPIF 0x00
WCOL 0x00
SPI2X 0x00
SPDR 0x27 0x00
Timer/Counter, 16-bit (TC1)
Prescaler source of timer/Counter 1 (TCCR1B)
Name Address Value Bits
ICR1 0x46 0x0000 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
OCR1B 0x48 0x0000
OCR1A 0x4A 0x0000
TCNT1 0x4C 0x0000
TCCR1B 0x4E 0x00
ICNC1 0x00
ICES1 0x00
WGM1 0x00
CS1 0x00
TCCR1A 0x4F 0x00
COM1A 0x00
COM1B 0x00
FOC1A 0x00
FOC1B 0x00
FOC1A 0x00
WGM1 0x00
TIFR 0x58 0x00
ICF1 0x00
OCF1A 0x00
OCF1B 0x00
TOV1 0x00
T1MSK 0x59 0x00
T1CIE1 0x00
OCIE1A 0x00
OCIE1B 0x00
TOIE1 0x00
Time/Counter, 8-bit (TCO)
Clock Select Bit 0 (TCCRO)
Name Address Value Bits
TCNT0 0x52 0x00 7 6 5 4 3 2 1 0
ATMEGA8
TCCRO 0x53 0x00
CS02 0x00
CS01 0x00
CS00 0x00
TIFR 0x58 0x00
TOV0 0x00
TIMSK 0x59 0x00
TOIE0 0x00
Timer/Counter, 8-Bits HSYNC (TC2)
Waveform Genration Mode (TCCR2)
Clock Select bit (TCCR2)
Name Address Value Bits
ASSR 0x42 0x00 7 6 5 4 3 2 1 0
A2 0x00
TCN2UB 0x00
OCR2UB 0x00
TCR2UB 0x00
OCR2 0x43 0x00
TCNT2 0x44 0x00
TCCR2 0x45 0x00
FOC2 0x00
WGM2O 0x00
COM2 0x00
WGM21 0x00
SFIOR 0x50 0x00
PSRF2 0x00
TIFR 0x58 0x00
OCF2 0x00
TOV2 0x00
TIMSK 0x59 0x00
OCIF2 0x00
TOIE2 0x00
Two wire Serial Interface (TWI)
TWI Prescaler (TWSR)
Name Address Value Bits
TWBR 0x20 0x00 7 6 5 4 3 2 1 0
TWSR 0x21 0x00
TWS 0x00
TWPS 0x00
TWAR 0x22 0x00
TWA 0x00
TWGCE 0x00
TWDR 0x23 0x00
TWCR 0x56 0x00
TWINT 0x00
TWEA 0x00
TWSTA 0x00
TWSTO 0x00
TWWC 0x00
TWEN 0x00
TWIE 0x00
ATMEGA8

USART(USART)
USART Mode Select (UCSR)
Parity Mode Bits (UCSRC)
Stop Bit Select (UCSRC)
Name Address Value Bits
UBRRL 0x29 0x00 7 6 5 4 3 2 1 0
UCSRB 0x2A 0x00
RXCIE 0x00
TXCIE 0x00
UDRIE 0x00
RXEN 0x00
TXEN 0x00
UCSZ2 0x00
RXB8 0x00
TXB8 0x00
UCSRA 0x2B 0x00
RXC 0x00
TXC 0x00
UDRE 0x00
FE 0x00
DOR 0x00
UPE 0x00
U2X 0x00
UDR 0x2C 0x00
UCSRC 0x40 0x00
URSEL 0x00
UMSEL 0x00
UPM 0x00
USBS 0x00
UCSZ 0x00
UCPOL 0x00
UBRRH 0x40 0x00
TWIE 0x00
Watcdog Timer (WDT)
Watcdog Timer Prescaler bits (WDTCR)
Name Address Value Bits
WDTCR 0x41 0x00 7 6 5 4 3 2 1 0
WDCE 0x00
WDE 0x00
WDP 0x00