RBO/INT Interrupt
-
- Posts: 35
- Joined: Fri Dec 26, 2008 4:02 pm
RBO/INT Interrupt
Hi, I have Flowcode 1 and v2 of the PICmicro Development Board fitted with PIC16F84.
Tutorial 23 uses the RB0/INT to increment a counter and display the binary value on port A. The Flowcode simulator works but when you send to the PIC I cannot make it work. I have tried writting some simple code using a loop to refresh a value in COUNT to port A. I've enabled RBO/INT to increment COINT by 1 when an RBO/INT change occurs but althouth this works in the simulator it will not work when sent to the PIC. There is a note in the documentation stating that setting up external interruptions can be difficult and will require additional setting to be made but no other information is given. Please can anyone help.
Tutorial 19 uses the internal timer interrupt. This works when sent to the PIC but does not work in the simulator. Does anyone no the reason for this.
I spent christmat learing Flowcode 1 which I bought some years ago and have started learning Assemply for PICmicro. My goal was to create a simple project that used RBO/INT to trigger/reset a timer that would cause a pin on poprt A to go high for a fixed duration (1, 2 or 3-mins). The duration would depend on whether B6, B7 or B8 was set high. The project would control how long the lights would stay on in the garden when the PIRs sent a wireless signal to RB0/INT.
My project is now on hold unless I can solve the proble of using an external interrupt.
Tutorial 23 uses the RB0/INT to increment a counter and display the binary value on port A. The Flowcode simulator works but when you send to the PIC I cannot make it work. I have tried writting some simple code using a loop to refresh a value in COUNT to port A. I've enabled RBO/INT to increment COINT by 1 when an RBO/INT change occurs but althouth this works in the simulator it will not work when sent to the PIC. There is a note in the documentation stating that setting up external interruptions can be difficult and will require additional setting to be made but no other information is given. Please can anyone help.
Tutorial 19 uses the internal timer interrupt. This works when sent to the PIC but does not work in the simulator. Does anyone no the reason for this.
I spent christmat learing Flowcode 1 which I bought some years ago and have started learning Assemply for PICmicro. My goal was to create a simple project that used RBO/INT to trigger/reset a timer that would cause a pin on poprt A to go high for a fixed duration (1, 2 or 3-mins). The duration would depend on whether B6, B7 or B8 was set high. The project would control how long the lights would stay on in the garden when the PIRs sent a wireless signal to RB0/INT.
My project is now on hold unless I can solve the proble of using an external interrupt.
Re: RBO/INT Interrupt
Hi econnections merry xmas, i see your still on line so thought i might catch you, i note that you are using an old version of flowcode you might be interested to know that you can download version 3 demo perhaps this my help get you going until the matrix team are back on line.
best of luck.
best of luck.
-
- Posts: 35
- Joined: Fri Dec 26, 2008 4:02 pm
Re: RBO/INT Interrupt
Merry Christmas Chevy and thanks for the reply. I just went to Support/Downloads but can't find a reference to download Flowcode 4 etc. Please can you guide me to the link. Many thanks. Graham
-
- Posts: 35
- Joined: Fri Dec 26, 2008 4:02 pm
Re: RBO/INT Interrupt
Hi Chevy, it's OK I have found the link to download version 3. I will give it a go and see if it resolves the problem. Graham
Re: RBO/INT Interrupt
Hi again, you caught my post while i was still doing an edit, i was changing `flowcode v4 ` i should of put `flowcode v3`.....i have been thinking about the up-coming version 4 and mistakingly wrote that down. Anyway, you can download the demo v3 here http://www.matrixmultimedia.com/Flowcode3a-X.php go towards the bottom of the page and you will find all the downloads.
sorry about that.
....oops seems you beat me to it. goodluck.
sorry about that.
....oops seems you beat me to it. goodluck.

-
- Posts: 35
- Joined: Fri Dec 26, 2008 4:02 pm
Re: RBO/INT Interrupt
Thanks for the update. I have installed Flowcode v3 and run the same programs and the same problem occurs. (Note, I only have the PIC16F84A). Reference Tutorial 23 - it appears this totorial does not work when sent to the PIC.
Has anyone found this problem? Can the Matrix support team help?
Regards
Has anyone found this problem? Can the Matrix support team help?
Regards
Re: RBO/INT Interrupt
Hi econnections, i have got the development board v3 and have got on it a 16F88, i have tried the tutorial23 (see below attach) and this one works. Hope this helps . I need to do a bit more boozing now
so i`ll look back here tommorrow.
...i would just check those chip setup settings, they can be confusing! ...note that the attachment below is likely to download setup for the 16F88 as it is.!
good luck.

...i would just check those chip setup settings, they can be confusing! ...note that the attachment below is likely to download setup for the 16F88 as it is.!
good luck.
- Attachments
-
- TUT_23.FCF
- (6.5 KiB) Downloaded 382 times
-
- Posts: 35
- Joined: Fri Dec 26, 2008 4:02 pm
Re: RBO/INT Interrupt
Hi Chevy, I really appreciate your help and giving up some of your prime boozing time! I have to ask myself why am I still sat here at the PC but after a big Christmas pudding it's an easy way to chill.
It's interesting your using PIC board v3 and a differect processor. I have found a new PIC16F877 in my cuboard and might try that next. I can't by a PIC16F88 locally.
I'm not sure what they ment when they wrote:
WARNING
Use of the RB0 or RB port change interrupts may require a reasonably amount of knowledge about the PICmicro you are working with, as there are internal settings within the PICmicro that will need to be set. Please refer to the data sheet for further details.
It would appear that you have not had to make any additional changes to the PIC settings - interesting.
Graham
It's interesting your using PIC board v3 and a differect processor. I have found a new PIC16F877 in my cuboard and might try that next. I can't by a PIC16F88 locally.
I'm not sure what they ment when they wrote:
WARNING
Use of the RB0 or RB port change interrupts may require a reasonably amount of knowledge about the PICmicro you are working with, as there are internal settings within the PICmicro that will need to be set. Please refer to the data sheet for further details.
It would appear that you have not had to make any additional changes to the PIC settings - interesting.
Graham
Re: RBO/INT Interrupt
Hi econnections , well i`m onto drinking strong coffee now after last night!
......seems you had a large helping of xmas pudding. Just reminded me of when i went shopping with the wife before xmas we were doing the rounds at the supper market, i was filling my basket with the essentials, nuts...chocalate...crisps...booze....and a `special vintage xmas pudding`.....the wife sees my basket and says pointing at the pudding in a high pitch tone " what have you got that for
??" . And i reply "well...it`s xmas
"...she replies " we are either going out for meals or eating with the family. We will not need it"...i says "it`s a vintage one. It will be great
"...she replies "it`s a family one, it weighs 1kg...your not eating that all to your self you greedy Β£$%^^ ",..."your going on a diet"....we made a deal in the end, she could have more wine if i get the pudding.
Any way.. I have an 16F877A chip but i thought that the 16F88 would be a close match to your 16F84 but your 16F877 would be closer still to my 16F877A. Though i believe all of them should work equally well with this program.
I do not know how knowledgeable you are about pic programing and every thing, i myself started about this time last year so i`m no expert, though i`ve dabbled with electronics for all my life. You mentioned `warning use of the RB0 or RB.....` i do not recall seeing that any where, where is this statement written?
I believe though, that it refers to the data setup for individual pic chips and these are all in a `fcd` folder next to the other flowcode software folders, the `fcd` folder contains `fcd` files, one for each pic microcontroller, and it is this file (i believe) that the `warning` refers to. The warning suggests that either an addition or alteration to be made within this file, i have had to do this myself for setting up `reference voltage pins` for my adc inputs.
It would appear that these files are occasionally updated but if you updated to using the flowcode v3 demo i would of thought you would have the correct one working. I did not need to mess with my `fcd` file to get the program to work though. Just in case you fancied i have included the `fcd` file from my folder in case you wanted to give it a go....i have `flowcode v3` full version and updated to the current status so it should be the latest version of fcd files available, and we know that the 16F88 version works as it is, so i would think that the 16F84 should work as it is, so i have attached it here, you will first need to rename your existing `16F84.fcd` to some thing like `x16F84.fcdx` and then add the supplied `16F84.fcd` to the fcd folder so that you do not over write your existing file, that way you can go back if you so wished. One other point, flowcode only reads this fcd file when starting up so if you change the fcd file while flowcode is running in the back ground nothing will change so close down flowcode do the change to the fcd file then run up flowcode again.
If the fcd file does by some chance need altering it is likely to be a interrupt register setting that needs to be altered to enable an external interrupt.
If you have the v2 development board, i wonder how similar is it to my v3 development board, mine has two switches to setup the clock (slow/fast and rc/xtal) it also has 4 jumpers to use with adc set-ups, these i found would stop the program from working as supplied. My setup was using FAST and XTAL and making sure the jumpers were in the `digital`positions.





Any way.. I have an 16F877A chip but i thought that the 16F88 would be a close match to your 16F84 but your 16F877 would be closer still to my 16F877A. Though i believe all of them should work equally well with this program.
I do not know how knowledgeable you are about pic programing and every thing, i myself started about this time last year so i`m no expert, though i`ve dabbled with electronics for all my life. You mentioned `warning use of the RB0 or RB.....` i do not recall seeing that any where, where is this statement written?
I believe though, that it refers to the data setup for individual pic chips and these are all in a `fcd` folder next to the other flowcode software folders, the `fcd` folder contains `fcd` files, one for each pic microcontroller, and it is this file (i believe) that the `warning` refers to. The warning suggests that either an addition or alteration to be made within this file, i have had to do this myself for setting up `reference voltage pins` for my adc inputs.
It would appear that these files are occasionally updated but if you updated to using the flowcode v3 demo i would of thought you would have the correct one working. I did not need to mess with my `fcd` file to get the program to work though. Just in case you fancied i have included the `fcd` file from my folder in case you wanted to give it a go....i have `flowcode v3` full version and updated to the current status so it should be the latest version of fcd files available, and we know that the 16F88 version works as it is, so i would think that the 16F84 should work as it is, so i have attached it here, you will first need to rename your existing `16F84.fcd` to some thing like `x16F84.fcdx` and then add the supplied `16F84.fcd` to the fcd folder so that you do not over write your existing file, that way you can go back if you so wished. One other point, flowcode only reads this fcd file when starting up so if you change the fcd file while flowcode is running in the back ground nothing will change so close down flowcode do the change to the fcd file then run up flowcode again.
If the fcd file does by some chance need altering it is likely to be a interrupt register setting that needs to be altered to enable an external interrupt.
If you have the v2 development board, i wonder how similar is it to my v3 development board, mine has two switches to setup the clock (slow/fast and rc/xtal) it also has 4 jumpers to use with adc set-ups, these i found would stop the program from working as supplied. My setup was using FAST and XTAL and making sure the jumpers were in the `digital`positions.
- Attachments
-
- 16F84.fcd
- (3.68 KiB) Downloaded 401 times