External Interupts dont work

A forums to allow resolved bugs and problems with Flowcode v7 to be stored and marked as resolved.

Moderator: Benj

Post Reply
MTTweaker
Posts: 7
Joined: Fri Jul 15, 2016 3:38 am
Has thanked: 3 times
Contact:

External Interupts dont work

Post by MTTweaker »

I made a flowchart with external interrupt using RB0 on PIC16F1937 in the e block, and when i press the switch the interrupt don't work, like it don't exist. i have attached the code.
when i use this with FC6 it works fine.
Attachments
Flowcode1.hex
compiled file of the attached flowchart
(8.62 KiB) Downloaded 253 times
Flowcode1.fcfx
LCD connected on port D of PIC16F1937, INTpin RB0, its a second counter, and when you press SW on INTpin it resets the counter to 0
(11.49 KiB) Downloaded 258 times

User avatar
PaulNe
Posts: 27
Joined: Fri Jul 05, 2013 8:36 am
Has thanked: 2 times
Been thanked: 23 times
Contact:

Re: External Interupts dont work

Post by PaulNe »

Hi MTTweaker,

Thanks for reporting the bug. It's logged in the system, and should be fixed for the next patch.

Thanks

Paul

Lagoda
Posts: 170
Joined: Fri Jul 15, 2016 9:51 pm
Has thanked: 69 times
Been thanked: 61 times
Contact:

Re: External Interupts dont work

Post by Lagoda »

Hi MTTweaker!



A slightly modified the flowchart.
Please try this version in FC7.
I am interested in your opinion.

Lagoda
Attachments
Flowcode1_2.fcfx
(12.08 KiB) Downloaded 268 times

MTTweaker
Posts: 7
Joined: Fri Jul 15, 2016 3:38 am
Has thanked: 3 times
Contact:

Re: External Interupts dont work

Post by MTTweaker »

the blinking LED part works, but the interrupt that is going to reset the counter doesn't do anything.
its like the interrupt pin don't exist

Lagoda
Posts: 170
Joined: Fri Jul 15, 2016 9:51 pm
Has thanked: 69 times
Been thanked: 61 times
Contact:

Re: External Interupts dont work

Post by Lagoda »

Unfortunately, I could only test in the simulator, but this version worked.
Did you test in your target board or simulator?

MTTweaker
Posts: 7
Joined: Fri Jul 15, 2016 3:38 am
Has thanked: 3 times
Contact:

Re: External Interupts dont work

Post by MTTweaker »

I tested in the target board..

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: External Interupts dont work

Post by medelec35 »

Hi MTTweaker,
It looks like GIE is not being enabled.
Attached is an unofficial temp fix.
Just place the attached file in:

Code: Select all

C:\Program Files (x86)\Flowcode 7\FCD\PIC
or

Code: Select all

C:\Program Files\Flowcode 7\FCD\PIC
Depending on which windows version you have.
Attachments
16F1937.fcdx
(25.61 KiB) Downloaded 258 times
Martin

Post Reply