ATtiny861A registers
All 63 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.
TC1 Timer/Counter, 16-bit
TCCR1ETimer/Counter1 Control Register E
- Address
0x20 I/O 0x00
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5OC1OE5
- 4OC1OE4
- 3OC1OE3
- 2OC1OE2
- 1OC1OE1
- 0OC1OE0
1 field
| Field | Bits | What it does |
|---|
| OC1OE | 5:0 | Output Compare Override Enable Bits |
DT1Timer/Counter 1 Dead Time Value
- Address
0x44 I/O 0x24
- Reset
0x00
- Access
- read/write
- 7DT1H3
- 6DT1H2
- 5DT1H1
- 4DT1H0
- 3DT1L3
- 2DT1L2
- 1DT1L1
- 0DT1L0
2 fields
| Field | Bits | What it does |
|---|
| DT1H | 7:4 | |
| DT1L | 3:0 | |
TC1HTimer/Counter 1 Register High
- Address
0x45 I/O 0x25
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
TCCR1DTimer/Counter Control Register D
- Address
0x46 I/O 0x26
- Reset
0x00
- Access
- read/write
- 7FPIE1
- 6FPEN1
- 5FPNC1
- 4FPES1
- 3FPAC1
- 2FPF1
- 1WGM11
- 0WGM10
7 fields
| Field | Bits | What it does |
|---|
| FPIE1 | 7 | Fault Protection Interrupt Enable |
| FPEN1 | 6 | Fault Protection Mode Enable |
| FPNC1 | 5 | Fault Protection Noise Canceler |
| FPES1 | 4 | Fault Protection Edge Select |
| FPAC1 | 3 | Fault Protection Analog Comparator Enable |
| FPF1 | 2 | Fault Protection Interrupt Flag |
| WGM1 | 1:0 | Waveform Generation Mode Bit0 Fast PWM (NB! PWMx must be set!)1 Phase and Frequency Correct PWM2 PWM6/Single-slope3 PWM6/Dual-slope
|
TCCR1CTimer/Counter Control Register C
- Address
0x47 I/O 0x27
- Reset
0x00
- Access
- read/write
- 7COM1A1S
- 6COM1A0S
- 5COM1B1S
- 4COM1B0S
- 3COM1D1
- 2COM1D0
- 1FOC1D
- 0PWM1D
7 fields
| Field | Bits | What it does |
|---|
| COM1A1S | 7 | COM1A1 Shadow Bit |
| COM1A0S | 6 | COM1A0 Shadow Bit |
| COM1B1S | 5 | COM1B1 Shadow Bit |
| COM1B0S | 4 | COM1B0 Shadow Bit |
| COM1D | 3:2 | Comparator D output mode |
| FOC1D | 1 | Force Output Compare Match 1D |
| PWM1D | 0 | Pulse Width Modulator D Enable |
OCR1DOutput compare register
- Address
0x4A I/O 0x2A
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
OCR1COutput compare register
- Address
0x4B I/O 0x2B
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
OCR1BOutput Compare Register
- Address
0x4C I/O 0x2C
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
OCR1AOutput Compare Register
- Address
0x4D I/O 0x2D
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
TCNT1Timer/Counter Register
- Address
0x4E I/O 0x2E
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
TCCR1BTimer/Counter Control Register B
- Address
0x4F I/O 0x2F
- Reset
0x00
- Access
- read/write
- 7PWM1X
- 6PSR1
- 5DTPS11
- 4DTPS10
- 3CS13
- 2CS12
- 1CS11
- 0CS10
4 fields
| Field | Bits | What it does |
|---|
| PWM1X | 7 | PWM Inversion Mode |
| PSR1 | 6 | Timer/Counter 1 Prescaler reset |
| DTPS1 | 5:4 | Dead Time Prescaler |
| CS1 | 3:0 | Clock Select Bits0 No Clock Source (Stopped)1 Running, No Prescaling2 Running, CLK/23 Running, CLK/44 Running, CLK/85 Running, CLK/166 Running, CLK/327 Running, CLK/648 Running, CLK/1289 Running, CLK/25610 Running, CLK/51211 Running, CLK/102412 Running, CLK/204813 Running, CLK/409614 Running, CLK/819215 Running, CLK/16384
|
TCCR1ATimer/Counter Control Register A
- Address
0x50 I/O 0x30
- Reset
0x00
- Access
- read/write
- 7COM1A1
- 6COM1A0
- 5COM1B1
- 4COM1B0
- 3FOC1A
- 2FOC1B
- 1PWM1A
- 0PWM1B
6 fields
| Field | Bits | What it does |
|---|
| COM1A | 7:6 | Compare Output Mode, Bits |
| COM1B | 5:4 | Compare Output Mode, Bits |
| FOC1A | 3 | Force Output Compare Match 1A |
| FOC1B | 2 | Force Output Compare Match 1B |
| PWM1A | 1 | Pulse Width Modulator Enable |
| PWM1B | 0 | Pulse Width Modulator Enable |
TIFRTimer/Counter Interrupt Flag Register
- Address
0x58 I/O 0x38
- Reset
0x00
- Access
- read/write
- 7OCF1D
- 6OCF1A
- 5OCF1B
- 4–
- 3–
- 2TOV1
- 1–
- 0–
4 fields
| Field | Bits | What it does |
|---|
| OCF1D | 7 | Timer/Counter1 Output Compare Flag 1D |
| OCF1A | 6 | Timer/Counter1 Output Compare Flag 1A |
| OCF1B | 5 | Timer/Counter1 Output Compare Flag 1B |
| TOV1 | 2 | Timer/Counter1 Overflow Flag |
TIMSKTimer/Counter Interrupt Mask Register
- Address
0x59 I/O 0x39
- Reset
0x00
- Access
- read/write
- 7OCIE1D
- 6OCIE1A
- 5OCIE1B
- 4–
- 3–
- 2TOIE1
- 1–
- 0–
4 fields
| Field | Bits | What it does |
|---|
| OCIE1D | 7 | OCIE1D: Timer/Counter1 Output Compare Interrupt Enable |
| OCIE1A | 6 | OCIE1A: Timer/Counter1 Output Compare Interrupt Enable |
| OCIE1B | 5 | OCIE1A: Timer/Counter1 Output Compare B Interrupt Enable |
| TOIE1 | 2 | Timer/Counter1 Overflow Interrupt Enable |
ADC Analog-to-Digital Converter
DIDR0Digital Input Disable Register 0
- Address
0x21 I/O 0x01
- Reset
0x00
- Access
- read/write
- 7ADC6D
- 6ADC5D
- 5ADC4D
- 4ADC3D
- 3AREFD
- 2ADC2D
- 1ADC1D
- 0ADC0D
8 fields
| Field | Bits | What it does |
|---|
| ADC6D | 7 | ADC6 Digital input Disable |
| ADC5D | 6 | ADC5 Digital input Disable |
| ADC4D | 5 | ADC4 Digital input Disable |
| ADC3D | 4 | ADC3 Digital input Disable |
| AREFD | 3 | AREF Digital Input Disable |
| ADC2D | 2 | ADC2 Digital input Disable |
| ADC1D | 1 | ADC1 Digital input Disable |
| ADC0D | 0 | ADC0 Digital input Disable |
DIDR1Digital Input Disable Register 1
- Address
0x22 I/O 0x02
- Reset
0x00
- Access
- read/write
- 7ADC10D
- 6ADC9D
- 5ADC8D
- 4ADC7D
- 3–
- 2–
- 1–
- 0–
4 fields
| Field | Bits | What it does |
|---|
| ADC10D | 7 | ADC10 Digital input Disable |
| ADC9D | 6 | ADC9 Digital input Disable |
| ADC8D | 5 | ADC8 Digital input Disable |
| ADC7D | 4 | ADC7 Digital input Disable |
ADCSRBADC Control and Status Register B
- Address
0x23 I/O 0x03
- Reset
0x00
- Access
- read/write
- 7BIN
- 6GSEL
- 5IPR
- 4REFS2
- 3MUX5
- 2ADTS2
- 1ADTS1
- 0ADTS0
6 fields
| Field | Bits | What it does |
|---|
| BIN | 7 | Bipolar Input Mode |
| GSEL | 6 | Gain Select |
| IPR | 5 | Input Polarity Mode |
| REFS2 | 4 | |
| MUX5 | 3 | |
| ADTS | 2:0 | ADC Auto Trigger Sources0 Free Running mode1 Analog Comparator2 External Interrupt Request 03 Timer/Counter0 Compare Match A4 Timer/Counter0 Overflow5 Timer/Counter1 Compare Match B6 Timer/Counter1 Overflow7 Watchdog Interrupt Request
|
ADCADC Data Register Bytes
- Address
0x24 I/O 0x04
- Reset
0x0000
- Access
- read/write
- Size
- 16-bit
ADCSRAThe ADC Control and Status register
- Address
0x26 I/O 0x06
- Reset
0x00
- Access
- read/write
- 7ADEN
- 6ADSC
- 5ADATE
- 4ADIF
- 3ADIE
- 2ADPS2
- 1ADPS1
- 0ADPS0
6 fields
| Field | Bits | What it does |
|---|
| ADEN | 7 | ADC Enable |
| ADSC | 6 | ADC Start Conversion |
| ADATE | 5 | ADC Auto Trigger Enable |
| ADIF | 4 | ADC Interrupt Flag |
| ADIE | 3 | ADC Interrupt Enable |
| ADPS | 2:0 | ADC Prescaler Select Bits0 21 22 43 84 165 326 647 128
|
ADMUXThe ADC multiplexer Selection Register
- Address
0x27 I/O 0x07
- Reset
0x00
- Access
- read/write
- 7REFS1
- 6REFS0
- 5ADLAR
- 4MUX4
- 3MUX3
- 2MUX2
- 1MUX1
- 0MUX0
3 fields
| Field | Bits | What it does |
|---|
| REFS | 7:6 | Reference Selection Bits |
| ADLAR | 5 | Left Adjust Result |
| MUX | 4:0 | Analog Channel and Gain Selection Bits |
AC Analog Comparator
ACSRAAnalog Comparator Control And Status Register A
- Address
0x28 I/O 0x08
- Reset
0x00
- Access
- read/write
- 7ACD
- 6ACBG
- 5ACO
- 4ACI
- 3ACIE
- 2ACME
- 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 |
| ACME | 2 | Analog Comparator Multiplexer Enable |
| ACIS | 1:0 | Analog Comparator Interrupt Mode Select bits0 Interrupt on Toggle1 Reserved2 Interrupt on Falling Edge3 Interrupt on Rising Edge
|
ACSRBAnalog Comparator Control And Status Register B
- Address
0x29 I/O 0x09
- Reset
0x00
- Access
- read/write
- 7HSEL
- 6HLEV
- 5–
- 4–
- 3–
- 2ACM2
- 1ACM1
- 0ACM0
3 fields
| Field | Bits | What it does |
|---|
| HSEL | 7 | Hysteresis Select |
| HLEV | 6 | Hysteresis Level |
| ACM | 2:0 | Analog Comparator Multiplexer |
CPU CPU Registers
GPIOR0General purpose register 0
- Address
0x2A I/O 0x0A
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
GPIOR1General Purpose register 1
- Address
0x2B I/O 0x0B
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
GPIOR2General Purpose IO register 2
- Address
0x2C I/O 0x0C
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
DWDRdebugWire data register
- Address
0x40 I/O 0x20
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
CLKPRClock Prescale Register
- Address
0x48 I/O 0x28
- Reset
0x00
- Access
- read/write
- 7CLKPCE
- 6–
- 5–
- 4–
- 3CLKPS3
- 2CLKPS2
- 1CLKPS1
- 0CLKPS0
2 fields
| Field | Bits | What it does |
|---|
| CLKPCE | 7 | Clock Prescaler Change Enable |
| CLKPS | 3:0 | Clock Prescaler Select Bits0 11 22 43 84 165 326 647 1288 256
|
PLLCSRPLL Control and status register
- Address
0x49 I/O 0x29
- Reset
0x00
- Access
- read/write
- 7LSM
- 6–
- 5–
- 4–
- 3–
- 2PCKE
- 1PLLE
- 0PLOCK
4 fields
| Field | Bits | What it does |
|---|
| LSM | 7 | Low speed mode |
| PCKE | 2 | PCK Enable |
| PLLE | 1 | PLL Enable |
| PLOCK | 0 | PLL Lock detector |
OSCCALOscillator Calibration Register
- Address
0x51 I/O 0x31
- 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 |
MCUSRMCU Status register
- Address
0x54 I/O 0x34
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3WDRF
- 2BORF
- 1EXTRF
- 0PORF
4 fields
| Field | Bits | What it does |
|---|
| 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
- 7BODS
- 6PUD
- 5SE
- 4SM1
- 3SM0
- 2BODSE
- 1ISC01
- 0ISC00
6 fields
| Field | Bits | What it does |
|---|
| BODS | 7 | BOD Sleep |
| PUD | 6 | Pull-up Disable |
| SE | 5 | Sleep Enable |
| SM | 4:3 | Sleep Mode Select Bits0 Idle1 ADC Noise Reduction (If Available)2 Power Down3 Standby
|
| BODSE | 2 | BOD Sleep Enable |
| ISC0 | 1:0 | Interrupt Sense Control 0 bits0 Low Level of INTX1 Any Logical Change in INTX2 Falling Edge of INTX3 Rising Edge of INTX
|
PRRPower Reduction Register
- Address
0x56 I/O 0x36
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3PRTIM1
- 2PRTIM0
- 1PRUSI
- 0PRADC
4 fields
| Field | Bits | What it does |
|---|
| PRTIM1 | 3 | Power Reduction Timer/Counter1 |
| PRTIM0 | 2 | Power Reduction Timer/Counter0 |
| PRUSI | 1 | Power Reduction USI |
| PRADC | 0 | Power Reduction ADC |
SPStack Pointer Bytes
- Address
0x5D I/O 0x3D
- Reset
0x025F
- 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 |
USI Universal Serial Interface
USICRUSI Control Register
- Address
0x2D I/O 0x0D
- Reset
0x00
- Access
- read/write
- 7USISIE
- 6USIOIE
- 5USIWM1
- 4USIWM0
- 3USICS1
- 2USICS0
- 1USICLK
- 0USITC
6 fields
| Field | Bits | What it does |
|---|
| USISIE | 7 | Start Condition Interrupt Enable |
| USIOIE | 6 | Counter Overflow Interrupt Enable |
| USIWM | 5:4 | USI Wire Mode Bits0 Normal Operation1 Three-Wire Mode2 Two-Wire Mode3 Two-Wire Mode Held Low
|
| USICS | 3:2 | USI Clock Source Select Bits |
| USICLK | 1 | Clock Strobe |
| USITC | 0 | Toggle Clock Port Pin |
USISRUSI Status Register
- Address
0x2E I/O 0x0E
- Reset
0x00
- Access
- read/write
- 7USISIF
- 6USIOIF
- 5USIPF
- 4USIDC
- 3USICNT3
- 2USICNT2
- 1USICNT1
- 0USICNT0
5 fields
| Field | Bits | What it does |
|---|
| USISIF | 7 | Start Condition Interrupt Flag |
| USIOIF | 6 | Counter Overflow Interrupt Flag |
| USIPF | 5 | Stop Condition Flag |
| USIDC | 4 | Data Output Collision |
| USICNT | 3:0 | USI Counter Value Bits |
USIDRUSI Data Register
- Address
0x2F I/O 0x0F
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
USIBRUSI Buffer Register
- Address
0x30 I/O 0x10
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
USIPPUSI Pin Position
- Address
0x31 I/O 0x11
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
TC0 Timer/Counter, 8-bit
OCR0BTimer/Counter0 Output Compare Register
- Address
0x32 I/O 0x12
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
OCR0ATimer/Counter0 Output Compare Register
- Address
0x33 I/O 0x13
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
TCNT0HTimer/Counter0 High
- Address
0x34 I/O 0x14
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
TCCR0ATimer/Counter Control Register A
- Address
0x35 I/O 0x15
- Reset
0x00
- Access
- read/write
- 7TCW0
- 6ICEN0
- 5ICNC0
- 4ICES0
- 3ACIC0
- 2–
- 1–
- 0WGM00
6 fields
| Field | Bits | What it does |
|---|
| TCW0 | 7 | Timer/Counter 0 Width |
| ICEN0 | 6 | Input Capture Mode Enable |
| ICNC0 | 5 | Input Capture Noise Canceler |
| ICES0 | 4 | Input Capture Edge Select |
| ACIC0 | 3 | Analog Comparator Input Capture Enable |
| WGM00 | 0 | Waveform Generation Mode |
TCNT0LTimer/Counter0 Low
- Address
0x52 I/O 0x32
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
TCCR0BTimer/Counter Control Register B
- Address
0x53 I/O 0x33
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4TSM
- 3PSR0
- 2CS02
- 1CS01
- 0CS00
3 fields
| Field | Bits | What it does |
|---|
| TSM | 4 | Timer/Counter Synchronization Mode |
| PSR0 | 3 | Timer/Counter 0 Prescaler Reset |
| 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
|
TIFRTimer/Counter0 Interrupt Flag register
- Address
0x58 I/O 0x38
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4OCF0A
- 3OCF0B
- 2–
- 1TOV0
- 0ICF0
4 fields
| Field | Bits | What it does |
|---|
| OCF0A | 4 | Timer/Counter0 Output Compare Flag 0A |
| OCF0B | 3 | Timer/Counter0 Output Compare Flag 0B |
| TOV0 | 1 | Timer/Counter0 Overflow Flag |
| ICF0 | 0 | Timer/Counter0 Input Capture Flag |
TIMSKTimer/Counter Interrupt Mask Register
- Address
0x59 I/O 0x39
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4OCIE0A
- 3OCIE0B
- 2–
- 1TOIE0
- 0TICIE0
4 fields
| Field | Bits | What it does |
|---|
| OCIE0A | 4 | Timer/Counter0 Output Compare Match A Interrupt Enable |
| OCIE0B | 3 | Timer/Counter0 Output Compare Match B Interrupt Enable |
| TOIE0 | 1 | Timer/Counter0 Overflow Interrupt Enable |
| TICIE0 | 0 | Timer/Counter0 Input Capture Interrupt Enable |
PORTB I/O Port
PINBPort B Input Pins
- Address
0x36 I/O 0x16
- Reset
0x00
- Access
- read/write
- 7PINB7
- 6PINB6
- 5PINB5
- 4PINB4
- 3PINB3
- 2PINB2
- 1PINB1
- 0PINB0
DDRBPort B Data Direction Register
- Address
0x37 I/O 0x17
- Reset
0x00
- Access
- read/write
- 7DDB7
- 6DDB6
- 5DDB5
- 4DDB4
- 3DDB3
- 2DDB2
- 1DDB1
- 0DDB0
PORTBPort B Data Register
- Address
0x38 I/O 0x18
- Reset
0x00
- Access
- read/write
- 7PORTB7
- 6PORTB6
- 5PORTB5
- 4PORTB4
- 3PORTB3
- 2PORTB2
- 1PORTB1
- 0PORTB0
PORTA I/O Port
PINAPort A Input Pins
- Address
0x39 I/O 0x19
- Reset
0x00
- Access
- read/write
- 7PINA7
- 6PINA6
- 5PINA5
- 4PINA4
- 3PINA3
- 2PINA2
- 1PINA1
- 0PINA0
DDRAPort A Data Direction Register
- Address
0x3A I/O 0x1A
- Reset
0x00
- Access
- read/write
- 7DDA7
- 6DDA6
- 5DDA5
- 4DDA4
- 3DDA3
- 2DDA2
- 1DDA1
- 0DDA0
PORTAPort A Data Register
- Address
0x3B I/O 0x1B
- Reset
0x00
- Access
- read/write
- 7PORTA7
- 6PORTA6
- 5PORTA5
- 4PORTA4
- 3PORTA3
- 2PORTA2
- 1PORTA1
- 0PORTA0
EEPROM EEPROM
EECREEPROM Control Register
- Address
0x3C I/O 0x1C
- 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
0x3D I/O 0x1D
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
EEAREEPROM Address Register Bytes
- Address
0x3E I/O 0x1E
- Reset
0x0000
- Access
- read/write
- Size
- 16-bit
WDT Watchdog Timer
WDTCRWatchdog Timer Control Register
- Address
0x41 I/O 0x21
- 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 Bits0 Oscillator Cycles 2K1 Oscillator Cycles 4K2 Oscillator Cycles 8K3 Oscillator Cycles 16K4 Oscillator Cycles 32K5 Oscillator Cycles 64K6 Oscillator Cycles 128K7 Oscillator Cycles 256K8 Oscillator Cycles 512K9 Oscillator Cycles 1024K
|
| WDCE | 4 | Watchdog Change Enable |
| WDE | 3 | Watch Dog Enable |
EXINT External Interrupts
PCMSK1Pin Change Enable Mask 1
- Address
0x42 I/O 0x22
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
PCMSK0Pin Change Enable Mask 0
- Address
0x43 I/O 0x23
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1–
- 0–
MCUCRMCU Control Register
- Address
0x55 I/O 0x35
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1ISC01
- 0ISC00
2 fields
| Field | Bits | What it does |
|---|
| ISC01 | 1 | Interrupt Sense Control 0 Bit 1 |
| ISC00 | 0 | Interrupt Sense Control 0 Bit 00 Low Level of INTX1 Any Logical Change of INTX2 Falling Edge of INTX3 Rising Edge of INTX
|
GIFRGeneral Interrupt Flag register
- Address
0x5A I/O 0x3A
- Reset
0x00
- Access
- read/write
- 7INTF1
- 6INTF0
- 5PCIF
- 4–
- 3–
- 2–
- 1–
- 0–
2 fields
| Field | Bits | What it does |
|---|
| INTF | 7:6 | External Interrupt Flags |
| PCIF | 5 | Pin Change Interrupt Flag |
GIMSKGeneral Interrupt Mask Register
- Address
0x5B I/O 0x3B
- Reset
0x00
- Access
- read/write
- 7INT1
- 6INT0
- 5PCIE1
- 4PCIE0
- 3–
- 2–
- 1–
- 0–
2 fields
| Field | Bits | What it does |
|---|
| INT | 7:6 | External Interrupt Request 1 Enable |
| PCIE | 5:4 | Pin Change Interrupt Enables |
BOOT_LOAD Bootloader
SPMCSRStore Program Memory Control Register
- Address
0x57 I/O 0x37
- Reset
0x00
- Access
- read/write
- 7–
- 6–
- 5–
- 4CTPB
- 3RFLB
- 2PGWRT
- 1PGERS
- 0SPMEN
5 fields
| Field | Bits | What it does |
|---|
| CTPB | 4 | Clear temporary page buffer |
| RFLB | 3 | Read fuse and lock bits |
| PGWRT | 2 | Page Write |
| PGERS | 1 | Page Erase |
| SPMEN | 0 | Store Program Memory Enable |