
; TCCR0A @ 0x2F
; |-----------------------------------------------------------------------|
; | COM0A1 | COM0A0 | COM0B1 | COM0B0 |    -   |    -   |  WGM01 |  WGM00 |
; |-----------------------------------------------------------------------|
;      1        0        0        0        0        0        1        1
;
; TCCR0B @ 0x33
; |-----------------------------------------------------------------------|
; | FOC0A  | FOC0B  |    -   |    -   |  WGM02 |  CS02  |  CS01  |  CS00  |
; |-----------------------------------------------------------------------|
;      0        0        0        0        0        0        1        1
;
; Instructions:
;
; 1. Write TCCR0A with the value given above in binary. TCCR0A lives at IO address 0x2F.
; 2. Write TCCR0B with the value given above in binary. TCCR0B lives at IO address 0x33.
; 3. Write OCR0A with some number between 0-255. This controls the PWM's duty cycle. OCR0A lives at IO address 0x36.
; 4. Write 1 to DDRB (IO location 0x17) to set the PWM to output on pin 6 of the MCU.
;
; Extra credit:
;
; After setting up the PWM, write a main loop that checks the position of a pushbutton switch. You can use any port pin except PORTB0, which is the PWM output. Read the PINB register at IO location 0x16. It will have a 1 if the switch is unpressed and a 0 if the pin is pressed. Change the duty cycle when the pin is pressed.
main:
    rjmp main
