Interrupt Problem

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
iain wilkie
Posts: 97
Joined: Tue Jul 14, 2009 4:37 pm
Has thanked: 13 times
Been thanked: 9 times
Contact:

Interrupt Problem

Post by iain wilkie »

After a great deal of faffing around with code from V4 imported into V8 and not working I seem to have found the problem but how to fix it ??

I have attached the code. If you compile this and look at the .lst file you will see that no TIMER0 Overflow vector is generated and indeed no interrupt code generated either !!

If I run this through V4 these elements of the program are there and indeed the program works !

How can we fix this !!!

Regards

Iain
Attachments
Inflation REV4A_v7.fcfx
(26.13 KiB) Downloaded 189 times

iain wilkie
Posts: 97
Joined: Tue Jul 14, 2009 4:37 pm
Has thanked: 13 times
Been thanked: 9 times
Contact:

Re: Interrupt Problem

Post by iain wilkie »

Taking this problem forward. I have attached a program for ATTiny13 with simply an enabled Timer0 interrupt and the interrupt routine toggling an output line.
This simulates ok BUT will not run on hardware. When you look at the .lst file it produces you will see there is no timer overflow vector created and indeed no interrupt code !! hence the reason it doesnt work.

If this is replicated in V4 it is absolutely fine !

By the way I also note that no .asm file exists !!

This is driving me nuts ......

Regards

Iain
Attachments
Flowcode1 TEST.fcfx
(7.94 KiB) Downloaded 198 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Interrupt Problem

Post by LeighM »

Hi,
Thanks for spotting the bug.
Please try the attached updated file, to go into directory
C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\AVR
Then reload your project
Attachments
ATTINY13.fcdx
(6.31 KiB) Downloaded 177 times

iain wilkie
Posts: 97
Joined: Tue Jul 14, 2009 4:37 pm
Has thanked: 13 times
Been thanked: 9 times
Contact:

Re: Interrupt Problem

Post by iain wilkie »

Bingo !!!!

All working great now, thanks for the fast update, can hopefully get on with my evaluation of Flowcode8 now

Cheers

Iain

Post Reply