Using A2 Interupts on 14 pin Pics

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
adrianbruceanderson
Posts: 2
Joined: Wed Jan 26, 2011 3:17 pm

Using A2 Interupts on 14 pin Pics

Post by adrianbruceanderson »

Hi,
I have not been able to get the interupt which is on pin A2 on the 16F676 and 16F684 pics to work when set up the Interupt up it is still labeled as RB0 but there are no B ports on these Pics only A and C ports.
Is this a known bug and if so is there a fix or do I have to use another type of pic.
There is another rather anoying problem I am driving a seven segment display using six ouputs from port C and one from Port A,5 flow code will not allow me to do this.
I have got around it by using individual Leds to make up the display.

Thanks Adrian Anderson
Last edited by adrianbruceanderson on Thu Feb 03, 2011 12:48 pm, edited 1 time in total.

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times

Re: Using A2 Interupts on 16 pin Pics

Post by Spanish_dude »

Hi,

I just checked the 2 PICs (16F767 & 16F648) in flowcode and they both have a PORT B.
I don't see any RA2 interrupt ...

Btw, the 16F648 is an 18 pin microcontroller and the 16F767 a 28 pin microcontroller.

Haven't you made a mistake (wrong PIC, ...) ?
Last edited by Spanish_dude on Wed Feb 02, 2011 5:03 pm, edited 1 time in total.

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 A2 Interupts on 16 pin Pics

Post by Benj »

Hello,

Are you using Flowcode v3 or v4?

adrianbruceanderson
Posts: 2
Joined: Wed Jan 26, 2011 3:17 pm

Re: Using A2 Interupts on 16 pin Pics

Post by adrianbruceanderson »

Hi,
Its version 4.3 which is an issue as the Univesity version is 4.0.0.53 so will not load any programs I write on my laptop.
Must have gone and jumbled up the numbers think I meant 16F684 and 16F676 they are both 14 pin Pics and do not have a B port as stated before sorry for the confusion.

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 A2 Interupts on 14 pin Pics

Post by Benj »

Hello,

You may want to tell your University to update to the latest release. V4.0 had quite a large number of bugs that have been fixed in later versions.

The Port change interrupt is just named PORTB because on most chips this is where the interrupt is located. The interrupt code should work to activate your port change on the available port change interrupt enabled port. What happens when you enable the interrupt? Is it working on hardware?

Also since you are using Flowcode v4 please can you sign up for the flowcode 4v topic. You can do this by clicking help -> online resources from within Flowcode and then popping your forum username into the form provided.

Post Reply