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 294 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 292 times
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 308 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
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
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 294 times
Martin