custom timer1 not work
Moderator: Benj
- 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
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
- 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
Hello,
In your interrupt handler you currently have this.
this should instead be like this.
In your interrupt handler you currently have this.
Code: Select all
if (pir1 y (1 << TMR1IF))
Code: Select all
if (pir1 & (1 << TMR1IF))
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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
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
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
- 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
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?
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?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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
no benj, Only I have simulated it in flowcode, Then this it is the problem .... thank you very much for your help