mchr3k/arduino-libs-manchester — pull request #4 by vace117 (2013-02-12 21:13:28+00:00)
Title: Fixing Timer1 setup for attiny85

In CTC mode on attinyx5, the Counter register is reset on match with OCR1C, not OCR1A.

As a result, the existing code counted 256 time too slow, b/c by default
OCR1C is set to 0xFF, so the count would continue until it overflows.

In other words, we wanted: 1 / (8000000 / 128 / 5) = 80us
But what we got was: 1 / (8000000 / 128 / 256) = 4ms

This fix addresses the problem and ensures that the ISR is called every 80us.

Tested on attiny85.