Hi,
after using the polling technique some time now, I would like, for a battery driven project, to use the SLEEP mode and awaken the 12F629 ( small and cheap PIC) using the INT on port RBO. However, for this device, the INT is on GP2, so I guess I connect the awaken signal ( rising edge) to GP2.
I just can't seem to get this simulated in Flowcode. I did not try anything in h/w so far.
I tried the program with a 16F88 and 16F627A and then it simulates perfect. For demonstration, I wrote a very simple program in Flowcode V4.3 you can find attached.
Could someone please help me what I am doing wrong or is it a bug in the Flowcode 12F629 device description?
Thanks in advance
12F629 how to program INT in Flowcode
12F629 how to program INT in Flowcode
- Attachments
-
- test interrupt_12F629.fcf
- (6 KiB) Downloaded 401 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: 12F629 how to program INT in Flowcode
Hello,
Simulation of interrupts is not perfect in Flowcode. I think you should find that though the simulation is not working it will work ok on the hardware. If you need to simulate then simply replace the target for a standard device for the time being and then switch back when you are ready to use the hardware.
Simulation of interrupts is not perfect in Flowcode. I think you should find that though the simulation is not working it will work ok on the hardware. If you need to simulate then simply replace the target for a standard device for the time being and then switch back when you are ready to use the 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
Re: 12F629 how to program INT in Flowcode
Hoi Benj,
thanks for the quick reply.
I am very busy during the week but will surely try it in some spare hours on hardware since i would like to know the results. I will let you know the outcome.
Kind regards
thanks for the quick reply.
I am very busy during the week but will surely try it in some spare hours on hardware since i would like to know the results. I will let you know the outcome.
Kind regards
Re: 12F629 how to program INT in Flowcode
Hoi Benj,
thanks for the advice, works perfectly in real world!
I did have to change my program though so the ENABLE INT command is just before the SLEEP command. Probably this is because I lack experience with INT routines.
thanks for the advice, works perfectly in real world!
I did have to change my program though so the ENABLE INT command is just before the SLEEP command. Probably this is because I lack experience with INT routines.