8-bit AVR Microcontroller

Input Capture Register 0 Low and High byte

The ICR0L and ICR0H register pair represents the 16-bit value, ICR0.The low byte [7:0] (suffix L) is accessible at the original offset. The high byte [15:8] (suffix H) can be accessed at offset + 0x01. For more details on reading and writing 16-bit registers, refer to Accessing 16-bit Registers.

Name:
ICR0L and ICR0H
Offset:
0x22
Reset:
0x00
Access:
-
Bit15141312111098
ICR0[15:8]
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000000
Bit76543210
ICR0[7:0]
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000000

Bits 15:0 – ICR0[15:0]: Input Capture 0

Input Capture 0

ICR0H and ICR0L are combined into ICR0.

The Input Capture is updated with the counter (TCNT0) value each time an event occurs on the ICP0 pin (or optionally on the Analog Comparator output for Timer/Counter0). The Input Capture can be used for defining the counter TOP value.