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.
External Interupts dont work
Moderator: Benj
External Interupts dont work
- Attachments
-
- Flowcode1.hex
- compiled file of the attached flowchart
- (8.62 KiB) Downloaded 255 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 260 times
- 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
Hi MTTweaker,
Thanks for reporting the bug. It's logged in the system, and should be fixed for the next patch.
Thanks
Paul
Thanks for reporting the bug. It's logged in the system, and should be fixed for the next patch.
Thanks
Paul
-
- Posts: 170
- Joined: Fri Jul 15, 2016 9:51 pm
- Has thanked: 69 times
- Been thanked: 61 times
- Contact:
Re: External Interupts dont work
Hi MTTweaker!
A slightly modified the flowchart.
Please try this version in FC7.
I am interested in your opinion.
Lagoda
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 270 times
Re: External Interupts dont work
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
its like the interrupt pin don't exist
-
- Posts: 170
- Joined: Fri Jul 15, 2016 9:51 pm
- Has thanked: 69 times
- Been thanked: 61 times
- Contact:
Re: External Interupts dont work
Unfortunately, I could only test in the simulator, but this version worked.
Did you test in your target board or simulator?
Did you test in your target board or simulator?
-
- 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
Hi MTTweaker,
It looks like GIE is not being enabled.
Attached is an unofficial temp fix.
Just place the attached file in:
or
Depending on which windows version you have.
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
Code: Select all
C:\Program Files\Flowcode 7\FCD\PIC
- Attachments
-
- 16F1937.fcdx
- (25.61 KiB) Downloaded 260 times
Martin