Using extern interupt pin on the 12F675

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
goingo
Flowcode v5 User
Posts: 10
Joined: Wed Aug 31, 2011 4:53 pm
Has thanked: 5 times

Using extern interupt pin on the 12F675

Post by goingo »

but it doesnt work
thank you for any hints
Attachments
test_ext_int.fcf
Fowcode v4.5
(6 KiB) Downloaded 297 times

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

Re: Using extern interupt pin on the 12F675

Post by medelec35 »

Hi goingo,
I have just tested on a 12F675 I had lying around and I can confirm it works as you intended.

Two things:
1) Flowcode simulator does not work for int on 12F675(can this be looked at for V5 please?) even though hardware does. The reason is Flowcode simulator uses RB0 for interrupt since this is most common pin on microcontrollers. (at least I am guessing that's the case?) But on 12F675 int is GP2 (or A2 in simulator)

2) If you are testing on EB006 programmer board, then you must have Switch connected to Port B2 and LED connected to port B7.

What I did was to have both LED board (EB004) & Switch board (EB007) connected to portB

If not using a switch board but just a single switch, then you must have a pull-down resistor connected to GP0 of chip or port B2 (if using programmer EB006) and GND. Then switch connects to GP0 and +5V

Hope this helps

Martin
Martin

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: Using extern interupt pin on the 12F675

Post by Benj »

Hello,
1) Flowcode simulator does not work for int on 12F675(can this be looked at for V5 please?) even though hardware does. The reason is Flowcode simulator uses RB0 for interrupt since this is most common pin on microcontrollers. (at least I am guessing that's the case?) But on 12F675 int is GP2 (or A2 in simulator)
I can confirm this has been fixed for v5 :D

goingo
Flowcode v5 User
Posts: 10
Joined: Wed Aug 31, 2011 4:53 pm
Has thanked: 5 times

Re: Using extern interupt pin on the 12F675

Post by goingo »

ok i understand
my environment is the same as you describe eb006 eb004 and eb007
till today i only simulate - because i searched for a little pic with ext interupt and 5 outputs and programming via flowcode - so i decided me for the 12f675
the part will arrive in the next days then ill try on hardware or wait for V5 :D

many thanx for your fast feedback

friendly regards ingo

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

Re: Using extern interupt pin on the 12F675

Post by medelec35 »

Your welcome.

Since you are using EB006 programmer, then on page 14 of data sheet:
http://www.matrixmultimedia.com/resourc ... 6-30-7.pdf

Shows you what connections of PortB (programmer) are connected to which pins of microcontroller
This applies to 8, 14 & 20 pin devices.

Martin
Martin

Post Reply