Attiny25/45/85 Interrupt on Timer1
Posted: Tue Apr 20, 2021 12:39 pm
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'".
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'".