22.11.3 OCR2 – Output Compare Register
When using the I/O specific commands IN and OUT, the I/O addresses 0x00 - 0x3F must be used. When addressing I/O Registers as data space using LD and ST instructions, 0x20 must be added to these offset addresses.
The Output Compare Register contains an 8-bit value that is continuously compared with the counter value (TCNT2). A match can be used to generate an Output Compare interrupt, or to generate a waveform output on the OC2 pin.
| Name: | OCR2 |
| Offset: | 0x23 |
| Reset: | 0x00 |
| Property: | When addressing I/O Registers as data space the offset address is 0x43 |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| OCR2[7:0] | |||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
