The code in this repo was written following the AVR programming tutorial on Youtube by humanHardDrive
This repo uses the Atmega328P MCU, Datasheet.
- led_delay: Includes a program that toggles a led using the delay function
- led_mask_delay: Includes a program that toggles a led using the delay function and also includes bit masking
- led_button_interrupt: uses an Interrupt Service Routine (ISR) to turn on a led when button is pressed
- led_timer_ctc_interrupt: uses an ISR that uses TIMER0 on CTC mode that prompts an interrupt on timer compare match
- led_no_interrupt: Toggles the led with no interrupt and no delay function by using the Action on compare match on page 84 of the MCU.
Note
Run the makefile in order to flash the program onto the MCU