12F629 how to program INT in Flowcode

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
PICloony
Flowcode V4 User
Posts: 3
Joined: Mon Feb 15, 2010 11:56 am

12F629 how to program INT in Flowcode

Post by PICloony »

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
Attachments
test interrupt_12F629.fcf
(6 KiB) Downloaded 401 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: 12F629 how to program INT in Flowcode

Post by Benj »

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.

PICloony
Flowcode V4 User
Posts: 3
Joined: Mon Feb 15, 2010 11:56 am

Re: 12F629 how to program INT in Flowcode

Post by PICloony »

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

PICloony
Flowcode V4 User
Posts: 3
Joined: Mon Feb 15, 2010 11:56 am

Re: 12F629 how to program INT in Flowcode

Post by PICloony »

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.

Post Reply