Question: Data sheet for chip Attiny 2313A http://www.atmel.com/images/doc8246.pdf Write a program that makes use of the (normal) Output Compare facility of Timer1 on the ATTiny2313A to
Data sheet for chip Attiny 2313A
http://www.atmel.com/images/doc8246.pdf

Write a program that makes use of the (normal) Output Compare facility of Timer1 on the ATTiny2313A to generate a 50Hz square wave with a 7.5% duty cycle on pin OC1A (PB3) using interrupts. Note that this is a different way of approaching the task that was described in Question 4 of assignment 2^2. As with that question, you may assume that the device is in its 'shipped' state: the default clock is selected by FUSE bits. You are encouraged to provide a code printout - ideally of code that you have tested. Again, please comment your code! Write a program that makes use of the (normal) Output Compare facility of Timer1 on the ATTiny2313A to generate a 50Hz square wave with a 7.5% duty cycle on pin OC1A (PB3) using interrupts. Note that this is a different way of approaching the task that was described in Question 4 of assignment 2^2. As with that question, you may assume that the device is in its 'shipped' state: the default clock is selected by FUSE bits. You are encouraged to provide a code printout - ideally of code that you have tested. Again, please comment your code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
