ATtiny2313 8-bit Microcontroller Course

This ATtiny2313 course is presented as a multi-part tutorial and covers software development and hardware development using the ATtiny2313 AVR microcontroller from Atmel.

3 thoughts on “ATtiny2313 8-bit Microcontroller Course

  1. Update made to part 8 – the original code did not have this statement:
    TCCR0A = 0x02; // Clear Timer on Compare Match (CTC) mode
    (the above statement has now been added to the code)

    Not having the above statement makes no difference to how the example works, because we are counting up to the maximum value of the 8-bit counter:
    OCR0A = 0xFF; // number to count up to

    But if the value in OCR0A is changed, without the counter being in CTC mode, the value in OCR0A is ignored and the counter counts up to its maximum value of 0xFF anyway.

  2. Hi, I’m also using the Attiny2313 to drive LEDs but there is one small issue. Setting the compare value of the pwm counter to 0x00 do not turn off de LED. Is this a regular behavior?

    • Hi Steve
      The best would be to check the datasheet. I have been working with other microcontrollers lately so can’t answer your question out of my head. Have also been so busy that I have not had time to add further parts to this tutorial either – unfortunately.

Leave a Reply

Your email address will not be published. Required fields are marked *