ATmega2560
Hardware definitions
Loading...
Searching...
No Matches
atmega2560::register_map Namespace Reference

Register map definitions. More...

Enumerations

enum  : uint16_t {
  register_file_start = 0x0000 , register_file_end = 0x001F , io_space_start = 0x0020 , io_space_end = 0x005F ,
  extended_io_start = 0x0060 , extended_io_end = 0x01FF , sram_start = 0x0200 , sram_end = 0x21FF ,
  io_offset = 0x20 , sbi_cbi_last_address = 0x003F , in_out_last_address = 0x005F , invalid_io_address = 0xFFFF
}
 Memory-mapped I/O ranges. More...
enum  Register : uint16_t {
  PINA = 0x020 , DDRA = 0x021 , PORTA = 0x022 , PINB = 0x023 ,
  DDRB = 0x024 , PORTB = 0x025 , PINC = 0x026 , DDRC = 0x027 ,
  PORTC = 0x028 , PIND = 0x029 , DDRD = 0x02A , PORTD = 0x02B ,
  PINE = 0x02C , DDRE = 0x02D , PORTE = 0x02E , PINF = 0x02F ,
  DDRF = 0x030 , PORTF = 0x031 , PING = 0x032 , DDRG = 0x033 ,
  PORTG = 0x034 , TIFR0 = 0x035 , TIFR1 = 0x036 , TIFR2 = 0x037 ,
  TIFR3 = 0x038 , TIFR4 = 0x039 , TIFR5 = 0x03A , PCIFR = 0x03B ,
  EIFR = 0x03C , EIMSK = 0x03D , GPIOR0 = 0x03E , EECR = 0x03F ,
  EEDR = 0x040 , EEARL = 0x041 , EEARH = 0x042 , GTCCR = 0x043 ,
  TCCR0A = 0x044 , TCCR0B = 0x045 , TCNT0 = 0x046 , OCR0A = 0x047 ,
  OCR0B = 0x048 , GPIOR1 = 0x04A , GPIOR2 = 0x04B , SPCR = 0x04C ,
  SPSR = 0x04D , SPDR = 0x04E , ACSR = 0x050 , OCDR = 0x051 ,
  SMCR = 0x053 , MCUSR = 0x054 , MCUCR = 0x055 , SPMCSR = 0x057 ,
  RAMPZ = 0x05B , EIND = 0x05C , SPL = 0x05D , SPH = 0x05E ,
  SREG = 0x05F , WDTCSR = 0x060 , CLKPR = 0x061 , PRR0 = 0x064 ,
  PRR1 = 0x065 , OSCCAL = 0x066 , PCICR = 0x068 , EICRA = 0x069 ,
  EICRB = 0x06A , PCMSK0 = 0x06B , PCMSK1 = 0x06C , PCMSK2 = 0x06D ,
  TIMSK0 = 0x06E , TIMSK1 = 0x06F , TIMSK2 = 0x070 , TIMSK3 = 0x071 ,
  TIMSK4 = 0x072 , TIMSK5 = 0x073 , XMCRA = 0x074 , XMCRB = 0x075 ,
  ADCL = 0x078 , ADCH = 0x079 , ADCSRA = 0x07A , ADCSRB = 0x07B ,
  ADMUX = 0x07C , DIDR2 = 0x07D , DIDR0 = 0x07E , DIDR1 = 0x07F ,
  TCCR1A = 0x080 , TCCR1B = 0x081 , TCCR1C = 0x082 , TCNT1L = 0x084 ,
  TCNT1H = 0x085 , ICR1L = 0x086 , ICR1H = 0x087 , OCR1AL = 0x088 ,
  OCR1AH = 0x089 , OCR1BL = 0x08A , OCR1BH = 0x08B , OCR1CL = 0x08C ,
  OCR1CH = 0x08D , TCCR3A = 0x090 , TCCR3B = 0x091 , TCCR3C = 0x092 ,
  TCNT3L = 0x094 , TCNT3H = 0x095 , ICR3L = 0x096 , ICR3H = 0x097 ,
  OCR3AL = 0x098 , OCR3AH = 0x099 , OCR3BL = 0x09A , OCR3BH = 0x09B ,
  OCR3CL = 0x09C , OCR3CH = 0x09D , TCCR4A = 0x0A0 , TCCR4B = 0x0A1 ,
  TCCR4C = 0x0A2 , TCNT4L = 0x0A4 , TCNT4H = 0x0A5 , ICR4L = 0x0A6 ,
  ICR4H = 0x0A7 , OCR4AL = 0x0A8 , OCR4AH = 0x0A9 , OCR4BL = 0x0AA ,
  OCR4BH = 0x0AB , OCR4CL = 0x0AC , OCR4CH = 0x0AD , TCCR2A = 0x0B0 ,
  TCCR2B = 0x0B1 , TCNT2 = 0x0B2 , OCR2A = 0x0B3 , OCR2B = 0x0B4 ,
  ASSR = 0x0B6 , TWBR = 0x0B8 , TWSR = 0x0B9 , TWAR = 0x0BA ,
  TWDR = 0x0BB , TWCR = 0x0BC , TWAMR = 0x0BD , UCSR0A = 0x0C0 ,
  UCSR0B = 0x0C1 , UCSR0C = 0x0C2 , UBRR0L = 0x0C4 , UBRR0H = 0x0C5 ,
  UDR0 = 0x0C6 , UCSR1A = 0x0C8 , UCSR1B = 0x0C9 , UCSR1C = 0x0CA ,
  UBRR1L = 0x0CC , UBRR1H = 0x0CD , UDR1 = 0x0CE , UCSR2A = 0x0D0 ,
  UCSR2B = 0x0D1 , UCSR2C = 0x0D2 , UBRR2L = 0x0D4 , UBRR2H = 0x0D5 ,
  UDR2 = 0x0D6 , PINH = 0x100 , DDRH = 0x101 , PORTH = 0x102 ,
  PINJ = 0x103 , DDRJ = 0x104 , PORTJ = 0x105 , PINK = 0x106 ,
  DDRK = 0x107 , PORTK = 0x108 , PINL = 0x109 , DDRL = 0x10A ,
  PORTL = 0x10B , TCCR5A = 0x120 , TCCR5B = 0x121 , TCCR5C = 0x122 ,
  TCNT5L = 0x124 , TCNT5H = 0x125 , ICR5L = 0x126 , ICR5H = 0x127 ,
  OCR5AL = 0x128 , OCR5AH = 0x129 , OCR5BL = 0x12A , OCR5BH = 0x12B ,
  OCR5CL = 0x12C , OCR5CH = 0x12D , UCSR3A = 0x130 , UCSR3B = 0x131 ,
  UCSR3C = 0x132 , UBRR3L = 0x134 , UBRR3H = 0x135 , UDR3 = 0x136
}
 Peripheral register addresses. More...

Detailed Description

Register map definitions.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : uint16_t

Memory-mapped I/O ranges.

Enumerator
register_file_start 

register file start.

register_file_end 

register file end.

io_space_start 

io space start.

io_space_end 

io space end.

extended_io_start 

extended io start.

extended_io_end 

extended io end.

sram_start 

sram start.

sram_end 

sram end.

io_offset 

io offset.

sbi_cbi_last_address 

sbi cbi last address.

in_out_last_address 

in out last address.

invalid_io_address 

invalid io address.

◆ Register

Peripheral register addresses.

Enumerator
PINA 

Input pin states.

DDRA 

Data direction register.

PORTA 

Output latch and pull-up control.

PINB 

Input pin states.

DDRB 

Data direction.

PORTB 

Output latch / pull-up.

PINC 

Input pin states.

DDRC 

Data direction.

PORTC 

Output latch / pull-up.

PIND 

Input pin states.

DDRD 

Data direction.

PORTD 

Output latch / pull-up.

PINE 

Input pin states.

DDRE 

Data direction register.

PORTE 

Output latch and pull-up control.

PINF 

Input pin states.

DDRF 

Data direction register.

PORTF 

Output latch and pull-up control.

PING 

Input pin states.

DDRG 

Data direction register.

PORTG 

Output latch and pull-up control.

TIFR0 

Timer interrupt flags.

TIFR1 

Timer interrupt flags.

TIFR2 

Timer interrupt flags.

TIFR3 

Timer interrupt flags.

TIFR4 

Timer interrupt flags.

TIFR5 

Timer interrupt flags.

PCIFR 

Pin-change interrupt flags.

EIFR 

External interrupt flags.

EIMSK 

External interrupt mask.

GPIOR0 

General-purpose I/O register.

EECR 

EEPROM control.

EEDR 

EEPROM data.

EEARL 

EEPROM address.

EEARH 

EEPROM address.

GTCCR 

General timer control.

TCCR0A 

Timer control.

TCCR0B 

Timer control.

TCNT0 

Timer counter.

OCR0A 

Output compare register.

OCR0B 

Output compare register.

GPIOR1 

General-purpose I/O register.

GPIOR2 

General-purpose I/O register.

SPCR 

SPI control.

SPSR 

SPI status.

SPDR 

SPI data.

ACSR 

Analog comparator control/status.

OCDR 

Register at data-space address 0x051.

SMCR 

Sleep-mode control.

MCUSR 

MCU status / reset flags.

MCUCR 

MCU control.

SPMCSR 

Flash self-programming control.

RAMPZ 

Register at data-space address 0x05B.

EIND 

Register at data-space address 0x05C.

SPL 

Stack pointer low byte.

SPH 

Stack pointer high byte.

SREG 

CPU status register.

WDTCSR 

Watchdog control/status.

CLKPR 

Clock prescaler.

PRR0 

Peripheral power reduction.

PRR1 

Peripheral power reduction.

OSCCAL 

Internal oscillator calibration.

PCICR 

Pin-change interrupt control.

EICRA 

External interrupt control A.

EICRB 

External interrupt control.

PCMSK0 

Pin-change interrupt mask.

PCMSK1 

Pin-change interrupt mask.

PCMSK2 

Pin-change interrupt mask.

TIMSK0 

Timer interrupt mask.

TIMSK1 

Timer interrupt mask.

TIMSK2 

Timer interrupt mask.

TIMSK3 

Timer interrupt mask.

TIMSK4 

Timer interrupt mask.

TIMSK5 

Timer interrupt mask.

XMCRA 

External memory control.

XMCRB 

External memory control.

ADCL 

ADC result low byte.

ADCH 

ADC result high byte.

ADCSRA 

ADC control/status A.

ADCSRB 

ADC control/status B.

ADMUX 

ADC multiplexer selection.

DIDR2 

Digital input disable.

DIDR0 

Digital-input disable.

DIDR1 

Digital-input disable.

TCCR1A 

Timer control.

TCCR1B 

Timer control.

TCCR1C 

Timer control.

TCNT1L 

Timer counter.

TCNT1H 

Timer counter.

ICR1L 

Input capture register.

ICR1H 

Input capture register.

OCR1AL 

Output compare register.

OCR1AH 

Output compare register.

OCR1BL 

Output compare register.

OCR1BH 

Output compare register.

OCR1CL 

Output compare register.

OCR1CH 

Output compare register.

TCCR3A 

Timer control register.

TCCR3B 

Timer control register.

TCCR3C 

Timer control register.

TCNT3L 

Timer counter register.

TCNT3H 

Timer counter register.

ICR3L 

Input capture register.

ICR3H 

Input capture register.

OCR3AL 

Output compare register.

OCR3AH 

Output compare register.

OCR3BL 

Output compare register.

OCR3BH 

Output compare register.

OCR3CL 

Output compare register.

OCR3CH 

Output compare register.

TCCR4A 

Timer control register.

TCCR4B 

Timer control register.

TCCR4C 

Timer control register.

TCNT4L 

Timer counter register.

TCNT4H 

Timer counter register.

ICR4L 

Input capture register.

ICR4H 

Input capture register.

OCR4AL 

Output compare register.

OCR4AH 

Output compare register.

OCR4BL 

Output compare register.

OCR4BH 

Output compare register.

OCR4CL 

Output compare register.

OCR4CH 

Output compare register.

TCCR2A 

Timer control.

TCCR2B 

Timer control.

TCNT2 

Timer counter.

OCR2A 

Output compare register.

OCR2B 

Output compare register.

ASSR 

Asynchronous timer status.

TWBR 

TWI bit-rate.

TWSR 

TWI status.

TWAR 

TWI address.

TWDR 

TWI data.

TWCR 

TWI control.

TWAMR 

TWI address mask.

UCSR0A 

USART control/status.

UCSR0B 

USART control/status.

UCSR0C 

USART control/status.

UBRR0L 

USART baud-rate.

UBRR0H 

USART baud-rate.

UDR0 

USART data.

UCSR1A 

USART control and status.

UCSR1B 

USART control and status.

UCSR1C 

USART control and status.

UBRR1L 

USART baud-rate register.

UBRR1H 

USART baud-rate register.

UDR1 

USART data register.

UCSR2A 

USART control and status.

UCSR2B 

USART control and status.

UCSR2C 

USART control and status.

UBRR2L 

USART baud-rate register.

UBRR2H 

USART baud-rate register.

UDR2 

USART data register.

PINH 

Input pin states.

DDRH 

Data direction register.

PORTH 

Output latch and pull-up control.

PINJ 

Input pin states.

DDRJ 

Data direction register.

PORTJ 

Output latch and pull-up control.

PINK 

Input pin states.

DDRK 

Data direction register.

PORTK 

Output latch and pull-up control.

PINL 

Input pin states.

DDRL 

Data direction register.

PORTL 

Output latch and pull-up control.

TCCR5A 

Timer control register.

TCCR5B 

Timer control register.

TCCR5C 

Timer control register.

TCNT5L 

Timer counter register.

TCNT5H 

Timer counter register.

ICR5L 

Input capture register.

ICR5H 

Input capture register.

OCR5AL 

Output compare register.

OCR5AH 

Output compare register.

OCR5BL 

Output compare register.

OCR5BH 

Output compare register.

OCR5CL 

Output compare register.

OCR5CH 

Output compare register.

UCSR3A 

USART control and status.

UCSR3B 

USART control and status.

UCSR3C 

USART control and status.

UBRR3L 

USART baud-rate register.

UBRR3H 

USART baud-rate register.

UDR3 

USART data register.