Page 1 of 1

Attiny25/45/85 Interrupt on Timer1

Posted: Tue Apr 20, 2021 12:39 pm
by OlegKRS
Flowcode v9. Chip Attiny25/45/85 Interrupt on Timer1.
The compiler throws the following error "error: 'TCCR1B' undeclared (first use in this function)" and "error: 'TIMSK 1' undeclared (first use in this function)" if the program uses Interrupt on Timer1 Attiny25/45/85.
In the FlowCode settings for Attiny25/45/85, the Timer1 type is incorrectly specified. It should be "type= ' timer 8' " instead of "type='timer 16'".

Re: Attiny25/45/85 Interrupt on Timer1

Posted: Tue Apr 20, 2021 5:33 pm
by BenR
Hello,

Many thanks for letting us know. I have replicated the problem and have now posted an update that will solve the problem.

Re: Attiny25/45/85 Interrupt on Timer1

Posted: Fri Apr 23, 2021 6:48 pm
by OlegKRS
Hi,

Many thanks Ben.