ATmega16U2 registers
All 92 registers by peripheral, at their data-space address (the I/O address IN and OUT use is shown beside it), with their reset value and every bit.
PORTB I/O Port
PINBPort B Input Pins
- Address
0x23 I/O 0x03
- Reset
0x00
- Access
- read/write
- 7PINB7
- 6PINB6
- 5PINB5
- 4PINB4
- 3PINB3
- 2PINB2
- 1PINB1
- 0PINB0
DDRBPort B Data Direction Register
- Address
0x24 I/O 0x04
- Reset
0x00
- Access
- read/write
- 7DDB7
- 6DDB6
- 5DDB5
- 4DDB4
- 3DDB3
- 2DDB2
- 1DDB1
- 0DDB0
PORTBPort B Data Register
- Address
0x25 I/O 0x05
- Reset
0x00
- Access
- read/write
- 7PORTB7
- 6PORTB6
- 5PORTB5
- 4PORTB4
- 3PORTB3
- 2PORTB2
- 1PORTB1
- 0PORTB0
PORTC I/O Port
PINCPort C Input Pins
- Address
0x26 I/O 0x06
- Reset
0x00
- Access
- read/write
- 7PINC3
- 6PINC2
- 5PINC1
- 4PINC0
- 3–
- 2PINC2
- 1PINC1
- 0PINC0
2 fields
| Field | Bits | What it does |
|---|
| PINC | 7:4 | Port C Input Pins bits |
| PINC | 2:0 | Port C Input Pins bits |
DDRCPort C Data Direction Register
- Address
0x27 I/O 0x07
- Reset
0x00
- Access
- read/write
- 7DDC3
- 6DDC2
- 5DDC1
- 4DDC0
- 3–
- 2DDC2
- 1DDC1
- 0DDC0
2 fields
| Field | Bits | What it does |
|---|
| DDC | 7:4 | Port C Data Direction Register bits |
| DDC | 2:0 | Port C Data Direction Register bits |
PORTCPort C Data Register
- Address
0x28 I/O 0x08
- Reset
0x00
- Access
- read/write
- 7PORTC3
- 6PORTC2
- 5PORTC1
- 4PORTC0
- 3–
- 2PORTC2
- 1PORTC1
- 0PORTC0
2 fields
| Field | Bits | What it does |
|---|
| PORTC | 7:4 | Port C Data Register bits |
| PORTC | 2:0 | Port C Data Register bits |
PORTD I/O Port
PINDPort D Input Pins
- Address
0x29 I/O 0x09
- Reset
0x00
- Access
- read/write
- 7PIND7
- 6PIND6
- 5PIND5
- 4PIND4
- 3PIND3
- 2PIND2
- 1PIND1
- 0PIND0
DDRDPort D Data Direction Register
- Address
0x2A I/O 0x0A
- Reset
0x00
- Access
- read/write
- 7DDD7
- 6DDD6
- 5DDD5
- 4DDD4
- 3DDD3
- 2DDD2
- 1DDD1
- 0DDD0
PORTDPort D Data Register
- Address
0x2B I/O 0x0B
- Reset
0x00
- Access
- read/write
- 7PORTD7
- 6PORTD6
- 5PORTD5
- 4PORTD4
- 3PORTD3
- 2PORTD2
- 1PORTD1
- 0PORTD0
TC0 Timer/Counter, 8-bit
TIFR0Timer/Counter0 Interrupt Flag register
- Address
0x35 I/O 0x15
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2OCF0B
- 1OCF0A
- 0TOV0
3 fields
| Field | Bits | What it does |
|---|
| OCF0B | 2 | Timer/Counter0 Output Compare Flag 0B |
| OCF0A | 1 | Timer/Counter0 Output Compare Flag 0A |
| TOV0 | 0 | Timer/Counter0 Overflow Flag |
GTCCRGeneral Timer/Counter Control Register
- Address
0x43 I/O 0x23
- Reset
0x00
- Access
- read/write
- 7TSM
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0PSRSYNC
2 fields
| Field | Bits | What it does |
|---|
| TSM | 7 | Timer/Counter Synchronization Mode |
| PSRSYNC | 0 | Prescaler Reset Timer/Counter1 and Timer/Counter0 |
TCCR0ATimer/Counter Control Register A
- Address
0x44 I/O 0x24
- Reset
0x00
- Access
- read/write
- 7COM0A1
- 6COM0A0
- 5COM0B1
- 4COM0B0
- 3–
- 2–
- 1WGM01
- 0WGM00
3 fields
| Field | Bits | What it does |
|---|
| COM0A | 7:6 | Compare Output Mode, Phase Correct PWM Mode |
| COM0B | 5:4 | Compare Output Mode, Fast PWm |
| WGM0 | 1:0 | Waveform Generation Mode |
TCCR0BTimer/Counter Control Register B
- Address
0x45 I/O 0x25
- Reset
0x00
- Access
- read/write
- 7FOC0A
- 6FOC0B
- 5–
- 4–
- 3WGM02
- 2CS02
- 1CS01
- 0CS00
4 fields
| Field | Bits | What it does |
|---|
| FOC0A | 7 | Force Output Compare A |
| FOC0B | 6 | Force Output Compare B |
| WGM02 | 3 | |
| CS0 | 2:0 | Clock Select0 No Clock Source (Stopped)1 Running, No Prescaling2 Running, CLK/83 Running, CLK/644 Running, CLK/2565 Running, CLK/10246 Running, ExtClk Tn Falling Edge7 Running, ExtClk Tn Rising Edge
|
TCNT0Timer/Counter0
- Address
0x46 I/O 0x26
- Reset
0x00
- Access
- read/write
- 7TCNT07
- 6TCNT06
- 5TCNT05
- 4TCNT04
- 3TCNT03
- 2TCNT02
- 1TCNT01
- 0TCNT00
1 field
| Field | Bits | What it does |
|---|
| TCNT0 | 7:0 | Timer/Counter0 bits |
OCR0ATimer/Counter0 Output Compare Register
- Address
0x47 I/O 0x27
- Reset
0x00
- Access
- read/write
- 7OCR0A7
- 6OCR0A6
- 5OCR0A5
- 4OCR0A4
- 3OCR0A3
- 2OCR0A2
- 1OCR0A1
- 0OCR0A0
1 field
| Field | Bits | What it does |
|---|
| OCR0A | 7:0 | Timer/Counter0 Output Compare A bits |
OCR0BTimer/Counter0 Output Compare Register
- Address
0x48 I/O 0x28
- Reset
0x00
- Access
- read/write
- 7OCR0B7
- 6OCR0B6
- 5OCR0B5
- 4OCR0B4
- 3OCR0B3
- 2OCR0B2
- 1OCR0B1
- 0OCR0B0
1 field
| Field | Bits | What it does |
|---|
| OCR0B | 7:0 | Timer/Counter0 Output Compare B bits |
TIMSK0Timer/Counter0 Interrupt Mask Register
- Address
0x6E
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2OCIE0B
- 1OCIE0A
- 0TOIE0
3 fields
| Field | Bits | What it does |
|---|
| OCIE0B | 2 | Timer/Counter0 Output Compare Match B Interrupt Enable |
| OCIE0A | 1 | Timer/Counter0 Output Compare Match A Interrupt Enable |
| TOIE0 | 0 | Timer/Counter0 Overflow Interrupt Enable |
TC1 Timer/Counter, 16-bit
TIFR1Timer/Counter1 Interrupt Flag register
- Address
0x36 I/O 0x16
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5ICF1
- 4–
- 3OCF1C
- 2OCF1B
- 1OCF1A
- 0TOV1
5 fields
| Field | Bits | What it does |
|---|
| ICF1 | 5 | Input Capture Flag 1 |
| OCF1C | 3 | Output Compare Flag 1C |
| OCF1B | 2 | Output Compare Flag 1B |
| OCF1A | 1 | Output Compare Flag 1A |
| TOV1 | 0 | Timer/Counter1 Overflow Flag |
TIMSK1Timer/Counter1 Interrupt Mask Register
- Address
0x6F
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5ICIE1
- 4–
- 3OCIE1C
- 2OCIE1B
- 1OCIE1A
- 0TOIE1
5 fields
| Field | Bits | What it does |
|---|
| ICIE1 | 5 | Timer/Counter1 Input Capture Interrupt Enable |
| OCIE1C | 3 | Timer/Counter1 Output Compare C Match Interrupt Enable |
| OCIE1B | 2 | Timer/Counter1 Output Compare B Match Interrupt Enable |
| OCIE1A | 1 | Timer/Counter1 Output Compare A Match Interrupt Enable |
| TOIE1 | 0 | Timer/Counter1 Overflow Interrupt Enable |
TCCR1ATimer/Counter1 Control Register A
- Address
0x80
- Reset
0x00
- Access
- read/write
- 7COM1A1
- 6COM1A0
- 5COM1B1
- 4COM1B0
- 3COM1C1
- 2COM1C0
- 1WGM11
- 0WGM10
4 fields
| Field | Bits | What it does |
|---|
| COM1A | 7:6 | Compare Output Mode 1A, bits |
| COM1B | 5:4 | Compare Output Mode 1B, bits |
| COM1C | 3:2 | Compare Output Mode 1C, bits |
| WGM1 | 1:0 | Waveform Generation Mode |
TCCR1BTimer/Counter1 Control Register B
- Address
0x81
- Reset
0x00
- Access
- read/write
- 7ICNC1
- 6ICES1
- 5–
- 4WGM11
- 3WGM10
- 2CS12
- 1CS11
- 0CS10
4 fields
| Field | Bits | What it does |
|---|
| ICNC1 | 7 | Input Capture 1 Noise Canceler |
| ICES1 | 6 | Input Capture 1 Edge Select |
| WGM1 | 4:3 | Waveform Generation Mode |
| CS1 | 2:0 | Prescaler source of Timer/Counter 10 No Clock Source (Stopped)1 Running, No Prescaling2 Running, CLK/83 Running, CLK/644 Running, CLK/2565 Running, CLK/10246 Running, ExtClk Tn Falling Edge7 Running, ExtClk Tn Rising Edge
|
TCCR1CTimer/Counter 1 Control Register C
- Address
0x82
- Reset
0x00
- Access
- read/write
- 7FOC1A
- 6FOC1B
- 5FOC1C
- 4–
- 3–
- 2–
- 1–
- 0–
3 fields
| Field | Bits | What it does |
|---|
| FOC1A | 7 | Force Output Compare 1A |
| FOC1B | 6 | Force Output Compare 1B |
| FOC1C | 5 | Force Output Compare 1C |
TCNT1Timer/Counter1 Bytes
- Address
0x84
- Reset
0x0000
- Access
- read/write
- Size
- 16-bit
1 field
| Field | Bits | What it does |
|---|
| TCNT1 | 15:0 | Timer/Counter1 bits |
ICR1Timer/Counter1 Input Capture Register Bytes
- Address
0x86
- Reset
0x0000
- Access
- read/write
- Size
- 16-bit
1 field
| Field | Bits | What it does |
|---|
| ICR1 | 15:0 | Timer/Counter1 Input Capture bits |
OCR1ATimer/Counter1 Output Compare Register A Bytes
- Address
0x88
- Reset
0x0000
- Access
- read/write
- Size
- 16-bit
1 field
| Field | Bits | What it does |
|---|
| OCR1A | 15:0 | Timer/Counter1 Output Compare A bits |
OCR1BTimer/Counter1 Output Compare Register B Bytes
- Address
0x8A
- Reset
0x0000
- Access
- read/write
- Size
- 16-bit
1 field
| Field | Bits | What it does |
|---|
| OCR1B | 15:0 | Timer/Counter1 Output Compare B bits |
OCR1CTimer/Counter1 Output Compare Register C Bytes
- Address
0x8C
- Reset
0x0000
- Access
- read/write
- Size
- 16-bit
1 field
| Field | Bits | What it does |
|---|
| OCR1C | 15:0 | Timer/Counter1 Output Compare C bits |
EXINT External Interrupts
PCIFRPin Change Interrupt Flag Register
- Address
0x3B I/O 0x1B
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1PCIF1
- 0PCIF0
1 field
| Field | Bits | What it does |
|---|
| PCIF | 1:0 | Pin Change Interrupt Flags |
EIFRExternal Interrupt Flag Register
- Address
0x3C I/O 0x1C
- Reset
0x00
- Access
- read/write
- 7INTF7
- 6INTF6
- 5INTF5
- 4INTF4
- 3INTF3
- 2INTF2
- 1INTF1
- 0INTF0
1 field
| Field | Bits | What it does |
|---|
| INTF | 7:0 | External Interrupt Flags |
EIMSKExternal Interrupt Mask Register
- Address
0x3D I/O 0x1D
- Reset
0x00
- Access
- read/write
- 7INT7
- 6INT6
- 5INT5
- 4INT4
- 3INT3
- 2INT2
- 1INT1
- 0INT0
1 field
| Field | Bits | What it does |
|---|
| INT | 7:0 | External Interrupt Request 7 Enable |
PCICRPin Change Interrupt Control Register
- Address
0x68
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1PCIE1
- 0PCIE0
1 field
| Field | Bits | What it does |
|---|
| PCIE | 1:0 | Pin Change Interrupt Enables |
EICRAExternal Interrupt Control Register A
- Address
0x69
- Reset
0x00
- Access
- read/write
- 7ISC31
- 6ISC30
- 5ISC21
- 4ISC20
- 3ISC11
- 2ISC10
- 1ISC01
- 0ISC00
4 fields
| Field | Bits | What it does |
|---|
| ISC3 | 7:6 | External Interrupt Sense Control Bit |
| ISC2 | 5:4 | External Interrupt Sense Control Bit |
| ISC1 | 3:2 | External Interrupt Sense Control Bit |
| ISC0 | 1:0 | External Interrupt Sense Control Bit |
EICRBExternal Interrupt Control Register B
- Address
0x6A
- Reset
0x00
- Access
- read/write
- 7ISC71
- 6ISC70
- 5ISC61
- 4ISC60
- 3ISC51
- 2ISC50
- 1ISC41
- 0ISC40
4 fields
| Field | Bits | What it does |
|---|
| ISC7 | 7:6 | External Interrupt 7-4 Sense Control Bit |
| ISC6 | 5:4 | External Interrupt 7-4 Sense Control Bit |
| ISC5 | 3:2 | External Interrupt 7-4 Sense Control Bit |
| ISC4 | 1:0 | External Interrupt 7-4 Sense Control Bit |
PCMSK0Pin Change Mask Register 0
- Address
0x6B
- Reset
0x00
- Access
- read/write
- 7PCINT7
- 6PCINT6
- 5PCINT5
- 4PCINT4
- 3PCINT3
- 2PCINT2
- 1PCINT1
- 0PCINT0
1 field
| Field | Bits | What it does |
|---|
| PCINT | 7:0 | Pin Change Enable Masks |
PCMSK1Pin Change Mask Register 1
- Address
0x6C
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4PCINT4
- 3PCINT3
- 2PCINT2
- 1PCINT1
- 0PCINT0
1 field
| Field | Bits | What it does |
|---|
| PCINT | 4:0 | |
CPU CPU Registers
GPIOR0General Purpose IO Register 0
- Address
0x3E I/O 0x1E
- Reset
0x00
- Access
- read/write
- 7GPIOR07
- 6GPIOR06
- 5GPIOR05
- 4GPIOR04
- 3GPIOR03
- 2GPIOR02
- 1GPIOR01
- 0GPIOR00
8 fields
| Field | Bits | What it does |
|---|
| GPIOR07 | 7 | General Purpose IO Register 0 bit 7 |
| GPIOR06 | 6 | General Purpose IO Register 0 bit 6 |
| GPIOR05 | 5 | General Purpose IO Register 0 bit 5 |
| GPIOR04 | 4 | General Purpose IO Register 0 bit 4 |
| GPIOR03 | 3 | General Purpose IO Register 0 bit 3 |
| GPIOR02 | 2 | General Purpose IO Register 0 bit 2 |
| GPIOR01 | 1 | General Purpose IO Register 0 bit 1 |
| GPIOR00 | 0 | General Purpose IO Register 0 bit 0 |
GPIOR1General Purpose IO Register 1
- Address
0x4A I/O 0x2A
- Reset
0x00
- Access
- read/write
- 7GPIOR7
- 6GPIOR6
- 5GPIOR5
- 4GPIOR4
- 3GPIOR3
- 2GPIOR2
- 1GPIOR1
- 0GPIOR0
1 field
| Field | Bits | What it does |
|---|
| GPIOR | 7:0 | General Purpose IO Register 1 bis |
GPIOR2General Purpose IO Register 2
- Address
0x4B I/O 0x2B
- Reset
0x00
- Access
- read/write
- 7GPIOR7
- 6GPIOR6
- 5GPIOR5
- 4GPIOR4
- 3GPIOR3
- 2GPIOR2
- 1GPIOR1
- 0GPIOR0
1 field
| Field | Bits | What it does |
|---|
| GPIOR | 7:0 | General Purpose IO Register 2 bis |
DWDRdebugWire communication register
- Address
0x51 I/O 0x31
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
SMCRSleep Mode Control Register
- Address
0x53 I/O 0x33
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3SM2
- 2SM1
- 1SM0
- 0SE
2 fields
| Field | Bits | What it does |
|---|
| SM | 3:1 | Sleep Mode Select bits0 Idle1 Reserved2 Power Down3 Power Save4 Reserved5 Reserved6 Standby7 Extended Standby
|
| SE | 0 | Sleep Enable |
MCUSRMCU Status Register
- Address
0x54 I/O 0x34
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5USBRF
- 4–
- 3WDRF
- 2BORF
- 1EXTRF
- 0PORF
5 fields
| Field | Bits | What it does |
|---|
| USBRF | 5 | USB reset flag |
| WDRF | 3 | Watchdog Reset Flag |
| BORF | 2 | Brown-out Reset Flag |
| EXTRF | 1 | External Reset Flag |
| PORF | 0 | Power-on reset flag |
MCUCRMCU Control Register
- Address
0x55 I/O 0x35
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4PUD
- 3–
- 2–
- 1IVSEL
- 0IVCE
3 fields
| Field | Bits | What it does |
|---|
| PUD | 4 | Pull-up disable |
| IVSEL | 1 | Interrupt Vector Select |
| IVCE | 0 | Interrupt Vector Change Enable |
EINDExtended Indirect Register
- Address
0x5C I/O 0x3C
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
SPStack Pointer
- Address
0x5D I/O 0x3D
- Reset
0x02FF
- Access
- read/write
- Size
- 16-bit
SREGStatus Register
- Address
0x5F I/O 0x3F
- Reset
0x00
- Access
- read/write
- 7I
- 6T
- 5H
- 4S
- 3V
- 2N
- 1Z
- 0C
8 fields
| Field | Bits | What it does |
|---|
| I | 7 | Global Interrupt Enable |
| T | 6 | Bit Copy Storage |
| H | 5 | Half Carry Flag |
| S | 4 | Sign Bit |
| V | 3 | Two's Complement Overflow Flag |
| N | 2 | Negative Flag |
| Z | 1 | Zero Flag |
| C | 0 | Carry Flag |
CLKPR
- Address
0x61
- Reset
0x00
- Access
- read/write
- 7CLKPCE
- 6–
- 5–
- 4–
- 3CLKPS3
- 2CLKPS2
- 1CLKPS1
- 0CLKPS0
2 fields
| Field | Bits | What it does |
|---|
| CLKPCE | 7 | |
| CLKPS | 3:0 | |
PRR0Power Reduction Register0
- Address
0x64
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5PRTIM0
- 4–
- 3PRTIM1
- 2PRSPI
- 1–
- 0–
3 fields
| Field | Bits | What it does |
|---|
| PRTIM0 | 5 | Power Reduction Timer/Counter0 |
| PRTIM1 | 3 | Power Reduction Timer/Counter1 |
| PRSPI | 2 | Power Reduction Serial Peripheral Interface |
PRR1Power Reduction Register1
- Address
0x65
- Reset
0x00
- Access
- read/write
- 7PRUSB
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0PRUSART1
2 fields
| Field | Bits | What it does |
|---|
| PRUSB | 7 | Power Reduction USB |
| PRUSART1 | 0 | Power Reduction USART1 |
OSCCALOscillator Calibration Value
- Address
0x66
- Reset
0x00
- Access
- read/write
- 7OSCCAL7
- 6OSCCAL6
- 5OSCCAL5
- 4OSCCAL4
- 3OSCCAL3
- 2OSCCAL2
- 1OSCCAL1
- 0OSCCAL0
1 field
| Field | Bits | What it does |
|---|
| OSCCAL | 7:0 | Oscillator Calibration |
CLKSEL0
- Address
0xD0
- Reset
0x00
- Access
- read/write
- 7RCSUT1
- 6RCSUT0
- 5EXSUT1
- 4EXSUT0
- 3RCE
- 2EXTE
- 1–
- 0CLKS
5 fields
| Field | Bits | What it does |
|---|
| RCSUT | 7:6 | |
| EXSUT | 5:4 | |
| RCE | 3 | |
| EXTE | 2 | |
| CLKS | 0 | |
CLKSEL1
- Address
0xD1
- Reset
0x00
- Access
- read/write
- 7RCCKSEL3
- 6RCCKSEL2
- 5RCCKSEL1
- 4RCCKSEL0
- 3EXCKSEL3
- 2EXCKSEL2
- 1EXCKSEL1
- 0EXCKSEL0
2 fields
| Field | Bits | What it does |
|---|
| RCCKSEL | 7:4 | |
| EXCKSEL | 3:0 | |
CLKSTA
- Address
0xD2
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1RCON
- 0EXTON
2 fields
| Field | Bits | What it does |
|---|
| RCON | 1 | |
| EXTON | 0 | |
EEPROM EEPROM
EECREEPROM Control Register
- Address
0x3F I/O 0x1F
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5EEPM1
- 4EEPM0
- 3EERIE
- 2EEMPE
- 1EEPE
- 0EERE
5 fields
| Field | Bits | What it does |
|---|
| EEPM | 5:4 | EEPROM Programming Mode Bits0 Erase and Write in one operation1 Erase Only2 Write Only
|
| EERIE | 3 | EEPROM Ready Interrupt Enable |
| EEMPE | 2 | EEPROM Master Write Enable |
| EEPE | 1 | EEPROM Write Enable |
| EERE | 0 | EEPROM Read Enable |
EEDREEPROM Data Register
- Address
0x40 I/O 0x20
- Reset
0x00
- Access
- read/write
- 7EEDR7
- 6EEDR6
- 5EEDR5
- 4EEDR4
- 3EEDR3
- 2EEDR2
- 1EEDR1
- 0EEDR0
1 field
| Field | Bits | What it does |
|---|
| EEDR | 7:0 | EEPROM Data bits |
EEAREEPROM Address Register Low Bytes
- Address
0x41 I/O 0x21
- Reset
0x0000
- Access
- read/write
- Size
- 16-bit
1 field
| Field | Bits | What it does |
|---|
| EEAR | 11:0 | EEPROM Address bits |
PLL Phase Locked Loop
PLLCSRPLL Status and Control register
- Address
0x49 I/O 0x29
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4PLLP2
- 3PLLP1
- 2PLLP0
- 1PLLE
- 0PLOCK
3 fields
| Field | Bits | What it does |
|---|
| PLLP | 4:2 | PLL prescaler Bits |
| PLLE | 1 | PLL Enable Bit |
| PLOCK | 0 | PLL Lock Status Bit |
SPI Serial Peripheral Interface
SPCRSPI Control Register
- Address
0x4C I/O 0x2C
- Reset
0x00
- Access
- read/write
- 7SPIE
- 6SPE
- 5DORD
- 4MSTR
- 3CPOL
- 2CPHA
- 1SPR1
- 0SPR0
7 fields
| Field | Bits | What it does |
|---|
| SPIE | 7 | SPI Interrupt Enable |
| SPE | 6 | SPI Enable |
| DORD | 5 | Data Order |
| MSTR | 4 | Master/Slave Select |
| CPOL | 3 | Clock polarity |
| CPHA | 2 | Clock Phase |
| SPR | 1:0 | SPI Clock Rate Selects0 fosc/41 fosc/162 fosc/643 fosc/1284 fosc/25 fosc/86 fosc/327 fosc/64
|
SPSRSPI Status Register
- Address
0x4D I/O 0x2D
- Reset
0x00
- Access
- read/write
- 7SPIF
- 6WCOL
- 5–
- 4–
- 3–
- 2–
- 1–
- 0SPI2X
3 fields
| Field | Bits | What it does |
|---|
| SPIF | 7 | SPI Interrupt Flag |
| WCOL | 6 | Write Collision Flag |
| SPI2X | 0 | Double SPI Speed Bit |
SPDRSPI Data Register
- Address
0x4E I/O 0x2E
- Reset
0x00
- Access
- read/write
- 7SPDR7
- 6SPDR6
- 5SPDR5
- 4SPDR4
- 3SPDR3
- 2SPDR2
- 1SPDR1
- 0SPDR0
1 field
| Field | Bits | What it does |
|---|
| SPDR | 7:0 | SPI Data bits |
AC Analog Comparator
ACSRAnalog Comparator Control And Status Register
- Address
0x50 I/O 0x30
- Reset
0x00
- Access
- read/write
- 7ACD
- 6ACBG
- 5ACO
- 4ACI
- 3ACIE
- 2ACIC
- 1ACIS1
- 0ACIS0
7 fields
| Field | Bits | What it does |
|---|
| ACD | 7 | Analog Comparator Disable |
| ACBG | 6 | Analog Comparator Bandgap Select |
| ACO | 5 | Analog Compare Output |
| ACI | 4 | Analog Comparator Interrupt Flag |
| ACIE | 3 | Analog Comparator Interrupt Enable |
| ACIC | 2 | Analog Comparator Input Capture Enable |
| ACIS | 1:0 | Analog Comparator Interrupt Mode Select bits0 Interrupt on Toggle1 Reserved2 Interrupt on Falling Edge3 Interrupt on Rising Edge
|
ACMUXAnalog Comparator Input Multiplexer
- Address
0x7D
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2CMUX2
- 1CMUX1
- 0CMUX0
1 field
| Field | Bits | What it does |
|---|
| CMUX | 2:0 | Analog Comparator Selection Bits0 AIN11 AIN22 AIN33 AIN44 AIN55 AIN6
|
DIDR1
- Address
0x7F
- Reset
0x00
- Access
- read/write
- 7AIN7D
- 6AIN6D
- 5AIN5D
- 4AIN4D
- 3AIN3D
- 2AIN2D
- 1AIN1D
- 0AIN0D
8 fields
| Field | Bits | What it does |
|---|
| AIN7D | 7 | AIN7 Digital Input Disable |
| AIN6D | 6 | AIN6 Digital Input Disable |
| AIN5D | 5 | AIN5 Digital Input Disable |
| AIN4D | 4 | AIN4 Digital Input Disable |
| AIN3D | 3 | AIN3 Digital Input Disable |
| AIN2D | 2 | AIN2 Digital Input Disable |
| AIN1D | 1 | AIN1 Digital Input Disable |
| AIN0D | 0 | AIN0 Digital Input Disable |
BOOT_LOAD Bootloader
SPMCSRStore Program Memory Control Register
- Address
0x57 I/O 0x37
- Reset
0x00
- Access
- read/write
- 7SPMIE
- 6RWWSB
- 5SIGRD
- 4RWWSRE
- 3BLBSET
- 2PGWRT
- 1PGERS
- 0SPMEN
8 fields
| Field | Bits | What it does |
|---|
| SPMIE | 7 | SPM Interrupt Enable |
| RWWSB | 6 | Read While Write Section Busy |
| SIGRD | 5 | Signature Row Read |
| RWWSRE | 4 | Read While Write section read enable |
| BLBSET | 3 | Boot Lock Bit Set |
| PGWRT | 2 | Page Write |
| PGERS | 1 | Page Erase |
| SPMEN | 0 | Store Program Memory Enable |
WDT Watchdog Timer
WDTCSRWatchdog Timer Control Register
- Address
0x60
- Reset
0x00
- Access
- read/write
- 7WDIF
- 6WDIE
- 5WDP5
- 4WDCE
- 3WDE
- 2WDP2
- 1WDP1
- 0WDP0
5 fields
| Field | Bits | What it does |
|---|
| WDIF | 7 | Watchdog Timeout Interrupt Flag |
| WDIE | 6 | Watchdog Timeout Interrupt Enable |
| WDP | 5,2,1,0 | Watchdog Timer Prescaler Bits |
| WDCE | 4 | Watchdog Change Enable |
| WDE | 3 | Watch Dog Enable |
WDTCKDWatchdog Timer Clock Divider
- Address
0x62
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3WDEWIF
- 2WDEWIE
- 1WCLKD1
- 0WCLKD0
3 fields
| Field | Bits | What it does |
|---|
| WDEWIF | 3 | Watchdog Early Warning Interrupt Flag |
| WDEWIE | 2 | Watchdog Early Warning Interrupt Enable |
| WCLKD | 1:0 | Watchdog Timer Clock Dividers |
USB_DEVICE USB Device Registers
REGCRRegulator Control Register
- Address
0x63
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0REGDIS
1 field
| Field | Bits | What it does |
|---|
| REGDIS | 0 | Regulator Disable |
USBCONUSB General Control Register
- Address
0xD8
- Reset
0x00
- Access
- read/write
- 7USBE
- 6–
- 5FRZCLK
- 4–
- 3–
- 2–
- 1–
- 0–
2 fields
| Field | Bits | What it does |
|---|
| USBE | 7 | USB macro Enable Bit |
| FRZCLK | 5 | Freeze USB Clock Bit |
UDCONUSB Device Control Registers
- Address
0xE0
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2RSTCPU
- 1RMWKUP
- 0DETACH
3 fields
| Field | Bits | What it does |
|---|
| RSTCPU | 2 | USB Reset CPU Bit |
| RMWKUP | 1 | Remote Wake-up Bit |
| DETACH | 0 | Detach Bit |
UDINTUSB Device Interrupt Register
- Address
0xE1
- Reset
0x00
- Access
- read/write
- 7–
- 6UPRSMI
- 5EORSMI
- 4WAKEUPI
- 3EORSTI
- 2SOFI
- 1–
- 0SUSPI
6 fields
| Field | Bits | What it does |
|---|
| UPRSMI | 6 | Upstream Resume Interrupt Flag |
| EORSMI | 5 | End Of Resume Interrupt Flag |
| WAKEUPI | 4 | Wake-up CPU Interrupt Flag |
| EORSTI | 3 | End Of Reset Interrupt Flag |
| SOFI | 2 | Start Of Frame Interrupt Flag |
| SUSPI | 0 | Suspend Interrupt Flag |
UDIENUSB Device Interrupt Enable Register
- Address
0xE2
- Reset
0x00
- Access
- read/write
- 7–
- 6UPRSME
- 5EORSME
- 4WAKEUPE
- 3EORSTE
- 2SOFE
- 1–
- 0SUSPE
6 fields
| Field | Bits | What it does |
|---|
| UPRSME | 6 | Upstream Resume Interrupt Enable Bit |
| EORSME | 5 | End Of Resume Interrupt Enable Bit |
| WAKEUPE | 4 | Wake-up CPU Interrupt Enable Bit |
| EORSTE | 3 | End Of Reset Interrupt Enable Bit |
| SOFE | 2 | Start Of Frame Interrupt Enable Bit |
| SUSPE | 0 | Suspend Interrupt Enable Bit |
UDADDRUSB Device Address Register
- Address
0xE3
- Reset
0x00
- Access
- read/write
- 7ADDEN
- 6UADD6
- 5UADD5
- 4UADD4
- 3UADD3
- 2UADD2
- 1UADD1
- 0UADD0
2 fields
| Field | Bits | What it does |
|---|
| ADDEN | 7 | Address Enable Bit |
| UADD | 6:0 | USB Address Bits |
UDFNUMUSB Device Frame Number High Register
- Address
0xE4
- Reset
0x0000
- Access
- read/write
- Size
- 16-bit
1 field
| Field | Bits | What it does |
|---|
| FNUM | 10:0 | Frame Number Upper Flag |
UDMFNUSB Device Micro Frame Number
- Address
0xE6
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4FNCERR
- 3–
- 2–
- 1–
- 0–
1 field
| Field | Bits | What it does |
|---|
| FNCERR | 4 | Frame Number CRC Error Flag |
UEINTXUSB Endpoint Interrupt Register
- Address
0xE8
- Reset
0x00
- Access
- read/write
- 7FIFOCON
- 6NAKINI
- 5RWAL
- 4NAKOUTI
- 3RXSTPI
- 2RXOUTI
- 1STALLEDI
- 0TXINI
8 fields
| Field | Bits | What it does |
|---|
| FIFOCON | 7 | FIFO Control Bit |
| NAKINI | 6 | NAK IN Received Interrupt Flag |
| RWAL | 5 | Read/Write Allowed Flag |
| NAKOUTI | 4 | NAK OUT Received Interrupt Flag |
| RXSTPI | 3 | Received SETUP Interrupt Flag |
| RXOUTI | 2 | Received OUT Data Interrupt Flag |
| STALLEDI | 1 | STALLEDI Interrupt Flag |
| TXINI | 0 | Transmitter Ready Interrupt Flag |
UENUMUSB Endpoint Number
- Address
0xE9
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2EPNUM2
- 1EPNUM1
- 0EPNUM0
1 field
| Field | Bits | What it does |
|---|
| EPNUM | 2:0 | Endpoint Number bits |
UERSTUSB Endpoint Reset Register
- Address
0xEA
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4EPRST4
- 3EPRST3
- 2EPRST2
- 1EPRST1
- 0EPRST0
1 field
| Field | Bits | What it does |
|---|
| EPRST | 4:0 | Endpoint FIFO Reset Bits |
UECONXUSB Endpoint Control Register
- Address
0xEB
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5STALLRQ
- 4STALLRQC
- 3RSTDT
- 2–
- 1–
- 0EPEN
4 fields
| Field | Bits | What it does |
|---|
| STALLRQ | 5 | STALL Request Handshake Bit |
| STALLRQC | 4 | STALL Request Clear Handshake Bit |
| RSTDT | 3 | Reset Data Toggle Bit |
| EPEN | 0 | Endpoint Enable Bit |
UECFG0XUSB Endpoint Configuration 0 Register
- Address
0xEC
- Reset
0x00
- Access
- read/write
- 7EPTYPE1
- 6EPTYPE0
- 5–
- 4–
- 3–
- 2–
- 1–
- 0EPDIR
2 fields
| Field | Bits | What it does |
|---|
| EPTYPE | 7:6 | Endpoint Type Bits |
| EPDIR | 0 | Endpoint Direction Bit |
UECFG1XUSB Endpoint Configuration 1 Register
- Address
0xED
- Reset
0x00
- Access
- read/write
- 7–
- 6EPSIZE2
- 5EPSIZE1
- 4EPSIZE0
- 3EPBK1
- 2EPBK0
- 1ALLOC
- 0–
3 fields
| Field | Bits | What it does |
|---|
| EPSIZE | 6:4 | Endpoint Size Bits |
| EPBK | 3:2 | Endpoint Bank Bits |
| ALLOC | 1 | Endpoint Allocation Bit |
UESTA0XUSB Endpoint Status 0 Register
- Address
0xEE
- Reset
0x00
- Access
- read/write
- 7CFGOK
- 6OVERFI
- 5UNDERFI
- 4–
- 3DTSEQ1
- 2DTSEQ0
- 1NBUSYBK1
- 0NBUSYBK0
5 fields
| Field | Bits | What it does |
|---|
| CFGOK | 7 | Configuration Status Flag |
| OVERFI | 6 | Overflow Error Interrupt Flag |
| UNDERFI | 5 | Underflow Error Interrupt Flag |
| DTSEQ | 3:2 | Data Toggle Sequencing Flag |
| NBUSYBK | 1:0 | Busy Bank Flag |
UESTA1XUSB Endpoint Status 1 Register
- Address
0xEF
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2CTRLDIR
- 1CURRBK1
- 0CURRBK0
2 fields
| Field | Bits | What it does |
|---|
| CTRLDIR | 2 | Control Direction |
| CURRBK | 1:0 | Current Bank |
UEIENXUSB Endpoint Interrupt Enable Register
- Address
0xF0
- Reset
0x00
- Access
- read/write
- 7FLERRE
- 6NAKINE
- 5–
- 4NAKOUTE
- 3RXSTPE
- 2RXOUTE
- 1STALLEDE
- 0TXINE
7 fields
| Field | Bits | What it does |
|---|
| FLERRE | 7 | Flow Error Interrupt Enable Flag |
| NAKINE | 6 | NAK IN Interrupt Enable Bit |
| NAKOUTE | 4 | NAK OUT Interrupt Enable Bit |
| RXSTPE | 3 | Received SETUP Interrupt Enable Flag |
| RXOUTE | 2 | Received OUT Data Interrupt Enable Flag |
| STALLEDE | 1 | Stalled Interrupt Enable Flag |
| TXINE | 0 | Transmitter Ready Interrupt Enable Flag |
UEDATXUSB Data Endpoint
- Address
0xF1
- Reset
0x00
- Access
- read/write
- 7DAT7
- 6DAT6
- 5DAT5
- 4DAT4
- 3DAT3
- 2DAT2
- 1DAT1
- 0DAT0
1 field
| Field | Bits | What it does |
|---|
| DAT | 7:0 | Data bits |
UEBCLXUSB Endpoint Byte Count Register
- Address
0xF2
- Reset
0x00
- Access
- read/write
- 7BYCT7
- 6BYCT6
- 5BYCT5
- 4BYCT4
- 3BYCT3
- 2BYCT2
- 1BYCT1
- 0BYCT0
1 field
| Field | Bits | What it does |
|---|
| BYCT | 7:0 | Byte Count bits |
UEINTUSB Endpoint Number Interrupt Register
- Address
0xF4
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4EPINT4
- 3EPINT3
- 2EPINT2
- 1EPINT1
- 0EPINT0
1 field
| Field | Bits | What it does |
|---|
| EPINT | 4:0 | Byte Count bits |
UPOEUSB Software Output Enable register
- Address
0xFB
- Reset
0x00
- Access
- read/write
- 7UPWE1
- 6UPWE0
- 5UPDRV1
- 4UPDRV0
- 3–
- 2–
- 1DPI
- 0DMI
4 fields
| Field | Bits | What it does |
|---|
| UPWE | 7:6 | USB Buffers Direct Drive enable configuration |
| UPDRV | 5:4 | USB direct drive values |
| DPI | 1 | D+ Input value |
| DMI | 0 | D- Input value |
USART1 USART
UCSR1AUSART Control and Status Register A
- Address
0xC8
- Reset
0x00
- Access
- read/write
- 7RXC1
- 6TXC1
- 5UDRE1
- 4FE1
- 3DOR1
- 2UPE1
- 1U2X1
- 0MPCM1
8 fields
| Field | Bits | What it does |
|---|
| RXC1 | 7 | USART Receive Complete |
| TXC1 | 6 | USART Transmit Complete |
| UDRE1 | 5 | USART Data Register Empty |
| FE1 | 4 | Framing Error |
| DOR1 | 3 | Data overRun |
| UPE1 | 2 | Parity Error |
| U2X1 | 1 | Double the USART transmission speed |
| MPCM1 | 0 | Multi-processor Communication Mode |
UCSR1BUSART Control and Status Register B
- Address
0xC9
- Reset
0x00
- Access
- read/write
- 7RXCIE1
- 6TXCIE1
- 5UDRIE1
- 4RXEN1
- 3TXEN1
- 2UCSZ12
- 1RXB81
- 0TXB81
8 fields
| Field | Bits | What it does |
|---|
| RXCIE1 | 7 | RX Complete Interrupt Enable |
| TXCIE1 | 6 | TX Complete Interrupt Enable |
| UDRIE1 | 5 | USART Data register Empty Interrupt Enable |
| RXEN1 | 4 | Receiver Enable |
| TXEN1 | 3 | Transmitter Enable |
| UCSZ12 | 2 | Character Size |
| RXB81 | 1 | Receive Data Bit 8 |
| TXB81 | 0 | Transmit Data Bit 8 |
UCSR1CUSART Control and Status Register C
- Address
0xCA
- Reset
0x00
- Access
- read/write
- 7UMSEL11
- 6UMSEL10
- 5UPM11
- 4UPM10
- 3USBS1
- 2UCSZ11
- 1UCSZ10
- 0UCPOL1
5 fields
| Field | Bits | What it does |
|---|
| UMSEL1 | 7:6 | USART Mode Select |
| UPM1 | 5:4 | Parity Mode Bits |
| USBS1 | 3 | Stop Bit Select |
| UCSZ1 | 2:1 | Character Size |
| UCPOL1 | 0 | Clock Polarity |
UCSR1DUSART Control and Status Register D
- Address
0xCB
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1CTSEN
- 0RTSEN
2 fields
| Field | Bits | What it does |
|---|
| CTSEN | 1 | CTS Enable |
| RTSEN | 0 | RTS Enable |
UBRR1USART Baud Rate Register Bytes
- Address
0xCC
- Reset
0x0000
- Access
- read/write
- Size
- 16-bit
1 field
| Field | Bits | What it does |
|---|
| UBRR1 | 11:0 | USART Baud Rate bits |
UDR1USART I/O Data Register
- Address
0xCE
- Reset
0x00
- Access
- read/write
- 7UDR17
- 6UDR16
- 5UDR15
- 4UDR14
- 3UDR13
- 2UDR12
- 1UDR11
- 0UDR10
1 field
| Field | Bits | What it does |
|---|
| UDR1 | 7:0 | USART I/O Data bits |