embedded system

An embedded system is used to generate a PWM signal through an overflow interrupt signal from  timer/counter 0. This system uses the ATmega32 microcontroller running a clock frequency of 8MHz and  a prescaler equals to 64. The output signal has a frequency of 5 Hz at pin 1 from port B. Construct the  C code needed to design this embedded system. Include all the required calculations.