ATTINY44 the interrupt doesn't work TMR1
-
- Posts: 53
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 10, 2020 1:12 pm
- Has thanked: 1 time
- Been thanked: 3 times
ATTINY44 the interrupt doesn't work TMR1
TMR1 interrupt does not work in the hardware
- Attachments
-
- BG.fcfx
- bg
- (15.47 KiB) Downloaded 275 times
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 501 times
- Been thanked: 686 times
Re: ATTINY44 the interrupt doesn't work TMR1
Hello,
I've had a look through the datasheet and compared with the generated code and I think I might have found something. The interrupt vector was declared as TIMER1_OVF but it looks like this might not be correct on this device, annoying it doesn't generate a compilation error to make it more obvious. I've changed it to TIM1_OVF and hopefully that will solve the problem for you.
The latest fixes are now available via the update system. Let us know how you get on.
I've had a look through the datasheet and compared with the generated code and I think I might have found something. The interrupt vector was declared as TIMER1_OVF but it looks like this might not be correct on this device, annoying it doesn't generate a compilation error to make it more obvious. I've changed it to TIM1_OVF and hopefully that will solve the problem for you.
The latest fixes are now available via the update system. Let us know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: ATTINY44 the interrupt doesn't work TMR1
Hi,
downloaded the update but it's not working. Now it doesn't work in the emulator either.
downloaded the update but it's not working. Now it doesn't work in the emulator either.
- Attachments
-
- ModUpr.fcfx
- (15.06 KiB) Downloaded 273 times
Re: ATTINY44 the interrupt doesn't work TMR1
Checked in the iron all works, but in the emulator stopped working.
Regards Osta.
Regards Osta.
- Attachments
-
- ModUpr.fcfx
- (15.09 KiB) Downloaded 274 times
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 501 times
- Been thanked: 686 times
Re: ATTINY44 the interrupt doesn't work TMR1
Great glad the hardware is working as expected. What emulator are you using?
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: ATTINY44 the interrupt doesn't work TMR1
Hi!
Sorry I didn't reply right away, I was on vacation.
I use PROTEUS.
Respectfully Osta.