This video explains the input capture unit functionality in timer/counter 1 on the ATmega328P microcontroller, with a particular focus on the HC-SR04 ultrasonic sensor. #atmega328p #microcontroller #arduino #ultrasonicsensor #inputcaptureunit
0:00 - Introduction
1:05 - Timer/counter 1 block diagram and functionality
3:01 - Calculating the wave period of a square wave
4:11 - Calculating the high period of a square wave
5:33 - Input capture unit register configuration
7:43 - Input capture interrupt and timing considerations
8:44 - HC-SR04 ultrasonic sensor
10:27 - Using multiple ultrasonic sensors