Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 1.07 KB

File metadata and controls

15 lines (11 loc) · 1.07 KB

AVR-tutorial-code

The code in this repo was written following the AVR programming tutorial on Youtube by humanHardDrive

This repo uses the Atmega328P MCU, Datasheet.

The Led folder includes sub folders that contain files of the following:

  1. led_delay: Includes a program that toggles a led using the delay function
  2. led_mask_delay: Includes a program that toggles a led using the delay function and also includes bit masking
  3. led_button_interrupt: uses an Interrupt Service Routine (ISR) to turn on a led when button is pressed
  4. led_timer_ctc_interrupt: uses an ISR that uses TIMER0 on CTC mode that prompts an interrupt on timer compare match
  5. 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