ATTINY44 the interrupt doesn't work TMR1

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
Osta
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

Post by Osta »

TMR1 interrupt does not work in the hardware
Attachments
BG.fcfx
bg
(15.47 KiB) Downloaded 73 times

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: ATTINY44 the interrupt doesn't work TMR1

Post by BenR »

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.

Osta
Posts: 53
Joined: Thu Dec 10, 2020 1:12 pm
Has thanked: 1 time
Been thanked: 3 times

Re: ATTINY44 the interrupt doesn't work TMR1

Post by Osta »

Hi,
downloaded the update but it's not working. Now it doesn't work in the emulator either.
Attachments
ModUpr.fcfx
(15.06 KiB) Downloaded 66 times

Osta
Posts: 53
Joined: Thu Dec 10, 2020 1:12 pm
Has thanked: 1 time
Been thanked: 3 times

Re: ATTINY44 the interrupt doesn't work TMR1

Post by Osta »

Checked in the iron all works, but in the emulator stopped working.
Regards Osta.
Attachments
ModUpr.fcfx
(15.09 KiB) Downloaded 73 times

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: ATTINY44 the interrupt doesn't work TMR1

Post by BenR »

Great glad the hardware is working as expected. What emulator are you using?

Osta
Posts: 53
Joined: Thu Dec 10, 2020 1:12 pm
Has thanked: 1 time
Been thanked: 3 times

Re: ATTINY44 the interrupt doesn't work TMR1

Post by Osta »

BenR wrote:
Mon Mar 14, 2022 12:10 pm
Great glad the hardware is working as expected. What emulator are you using?
Hi!
Sorry I didn't reply right away, I was on vacation.
I use PROTEUS.
Respectfully Osta.

Post Reply