0x03 - Improvising a 555 timer using an ATTiny85
In short, I needed a 1Hz timer for a shift register project and didn’t have any timing ICs around, so I improvised using an ATTINY85. The datasheet 1 in section 12.2.2 says that Timer/Counter1 can be used in PWM mode with two outputs, one normal and one inverted:
Figure 1 - Timer1 in PWM mode with output pairs.
This was exactly what I needed for clocking the shift register I was using (74HC595) that had shift and storage clocks.
Using a logic analyser this is what it looks like on the output: Figure 2 - Logic analyzer output from the ATTiny85 connected to PB3 and PB4 displaying a 1Hz signal