custom timer1 not work

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

Moderator: Benj

Post Reply
User avatar
Francisco Cabrera
Posts: 47
Joined: Sat Mar 19, 2016 4:56 pm
Location: Canary Island
Has thanked: 23 times
Been thanked: 7 times
Contact:

custom timer1 not work

Post by Francisco Cabrera »

Hi friends, the option custom timer1 something is badly because it does not work, they can help me, thank you.
Attachments
general.fcfx
(8.02 KiB) Downloaded 233 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: custom timer1 not work

Post by Benj »

Hello,

In your interrupt handler you currently have this.

Code: Select all

if (pir1 y (1 << TMR1IF))  
this should instead be like this.

Code: Select all

if (pir1 & (1 << TMR1IF))  

User avatar
Francisco Cabrera
Posts: 47
Joined: Sat Mar 19, 2016 4:56 pm
Location: Canary Island
Has thanked: 23 times
Been thanked: 7 times
Contact:

Re: custom timer1 not work

Post by Francisco Cabrera »

Thank you bemg for answering, I have modified the mistake, and the interruption does not work.... :(
Do you see well everything else? .... if I fit interruption tmr1 without being custom, in the same program it works perfectly simulating in flowcode

regards

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: custom timer1 not work

Post by Benj »

Hello,

Custom interrupts will not simulate as they could be an interrupt for anything, they will only work on the hardware. Have you tested on hardware?

User avatar
Francisco Cabrera
Posts: 47
Joined: Sat Mar 19, 2016 4:56 pm
Location: Canary Island
Has thanked: 23 times
Been thanked: 7 times
Contact:

Re: custom timer1 not work

Post by Francisco Cabrera »

no benj, :shock: Only I have simulated it in flowcode, Then this it is the problem .... thank you very much for your help :D

Post Reply