Search found 100 matches

Return

by Steve
Mon May 16, 2011 12:35 pm
Jump to forum
Jump to topic

Re: Using Interrupts to scan Keypad

Yes - this is a limitation of the simulator. It was originally written around the interrupt facilities of the 16F84 chip and similar older devices where the "PORTB change" interrupt was only available on RB4-7.
by Eric Brouwer
Sat May 14, 2011 1:22 pm
Jump to forum
Jump to topic

Using Interrupts to scan Keypad

Setting up a keypad in Flowcode with interrupts. Using interrupts to determine if a key was pressed, frees up the PIC to continue with normal operation, without the need to periodically scan for key presses. The attached Flowcode sample makes use of the PORTB interrupt, which will automatically jump...
by Benj
Tue May 17, 2011 9:57 am
Jump to forum
Jump to topic

Re: RB.0 interrupt + RB.1 to RB.6 "IOC" on PIC16F887

Hello Fotios,

All you have to do is enable both the INT and Port interrupts and then use a line of C code in a C icon to mask off pin 0 from the Port interrupt.

Code: Select all

iocb = 0xFE;
by Eric Brouwer
Sun May 22, 2011 10:17 pm
Jump to forum
Jump to topic

Re: RB.0 interrupt + RB.1 to RB.6 "IOC" on PIC16F887

Fotios I do not have a 16F887, but I did have a look at the datasheet, and hope this program might help you on this specific chip. Please note that the PORT interrupt does not seem to simulate correct, it only works for RB4..7. But I am sure it will work correct in your application. I have added the...
by Benj
Tue May 17, 2011 4:52 pm
Jump to forum
Jump to topic

Re: RB.0 interrupt + RB.1 to RB.6 "IOC" on PIC16F887

Your welcome :D

I'll keep my fingers crossed for you :wink:
by Eric Brouwer
Mon May 23, 2011 9:01 pm
Jump to forum
Jump to topic

Re: Using Interrupts to scan Keypad

Hi Fotis. Sorry, but I failed to let you know that I replied to your previous topic http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=7&t=8422 . I posted the code for RB0 interrupt as well as 6 button interrupts on RB1..6. The code at this link is for the 16F887. Please let me know if it ...
by Benj
Fri Jul 15, 2011 4:26 pm
Jump to forum
Jump to topic

Re: Hi-Fi audio preamplifier using Burr-Brown PGA2310

Always a good feeling when you realise you already have everything you need :)
by Steve
Wed Jul 27, 2011 3:54 pm
Jump to forum
Jump to topic

Flowcode V4.5

We have now released Flowcode V4.5 and you can download it by running Flowcode and select "Help...Check for updates" from the menu. This update contains support for more chips and also has a load of other improvements. More information can be found in these links: http://www.matrixmultimed...
by Benj
Thu Aug 11, 2011 10:51 am
Jump to forum
Jump to topic

Re: Explanation in detail of Port B Interrupts.

Hi Dave, Thanks for posting Fotios :D The 16F876 does not have the iocb register, the 913 does so you can use Fotios' example c code for this. To mask the port interrupt using software you can do the following in the interrupt macro when a port interrupt is triggered. //store variable tempvar = inpu...
by medelec35
Sun Aug 14, 2011 6:19 pm
Jump to forum
Jump to topic

Encoder triggered by Port B interrupt

I have created a V4 Flowchart for an encoder that's triggered by port B interrupts. The advantage being, movement of encoder is detected instantly. Target device is 16F88, configured for 8MHz internal oscillator and internal weak pull-ups on port B (so no external resistors required) LCD is used to ...
by medelec35
Mon Aug 22, 2011 8:08 am
Jump to forum
Jump to topic

Re: stepper motor cct

It's nice to see the words 'PROBLEM SOLVED' Thanks for letting us know. Hope it all goes well for you. @Fotios. Your welcome. It seems to handle everything thrown at it PIC16 wise. More importantly, it does appear to replicate the real hardware very accurately. + You can see wahts happerning with th...
by medelec35
Wed Aug 24, 2011 9:51 am
Jump to forum
Jump to topic

Re: P16F887 PortB internal pull-ups

Sorry Fotis, not woke up properly this morning I know now why option_reg.RBPU = 0; does not work.
Just had a look in the TDF folder (boostc/config directory), and the weak pull-up bit is labelled NOT_RBPU
So if you use

Code: Select all

option_reg.NOT_RBPU = 0;

That should work

Martin
by medelec35
Wed Aug 24, 2011 11:13 am
Jump to forum
Jump to topic

Re: P16F887 PortB internal pull-ups

Hi Martin I hope your bad awaking was not from health problem :( . It was just from some extra beers yesterday the night. :mrgreen: I just some times have trouble sleeping, so waking up part can be a bit awkward. Since I am on hols from work until Tuesday, it's taking a bit longer to wake up, since...
by Benj
Wed Aug 24, 2011 11:22 am
Jump to forum
Jump to topic

Re: P16F887 PortB internal pull-ups

Hello, Thanks guys, had a great holiday on the English Riviera though weather was not as good as I had hoped. Same goes for me Martin, cannot fall asleep and cannot wake up in the morning, need to hard wire a switch for my brain I think :D Always been an issue for me but thankfully Matrix took this ...
by medelec35
Sun Sep 04, 2011 3:53 pm
Jump to forum
Jump to topic

Re: values?

Hi brandonb, Glad you found my Flowcode useful enough to work from. I have a few comments. There is also the option of using a rotary encoder, its cost is the same with a good quality tactile switch and works like... 1000 tactiles. I would agree with rotary encoder, but instead of the usual quadratu...
by brandonb
Mon Sep 05, 2011 12:12 pm
Jump to forum
Jump to topic

Re: values?

at this point i can only point out issues, thats probably driving you guys nuts I am also a bit confused, but with injection time. If i remember well, we talk here for FUEL injectors. Take a look again Brandon at your first post. From those i know from petrol engines, the minimum injection time (in ...
by Benj
Mon Sep 05, 2011 12:08 pm
Jump to forum
Jump to topic

Re: values?

Hello Fotios, where i select: "RB.4 Off / RB.5 Off" and "RB.6 Off / RB.7 Off". I had the sence that using this configuration, IOC is configured to triggered ONLY during the falling edge This is disabling the interrupt from these pins and not making the interrupt only work for fal...
by DavidA
Mon Sep 05, 2011 9:20 am
Jump to forum
Jump to topic

Re: values?

Will move this to the V4 forums now brandonb has V4 access!
by medelec35
Mon Sep 05, 2011 7:38 am
Jump to forum
Jump to topic

Re: values?

I believe there will be an issue with counting pulses. That method will work until power is removed. Then when power restored, you will be starting at 0 value, even for example if the position of the shaft could be 1/2 way round. That's the reason I suggested using an Absolute Encoder (or to keep it...
by Grahamm
Fri Sep 16, 2011 9:55 am
Jump to forum
Jump to topic

Re: Hi-Fi audio preamplifier using Burr-Brown PGA2310

Hi Fotios Really excellent work on your design. Congratulations on the depth of the functionality and sophistication you have designed into this project. I want to do something a lot simpler with remote control and not using the BB/TI volume control chip and I will contact you soon regarding some is...
by medelec35
Sat Sep 17, 2011 12:08 pm
Jump to forum
Jump to topic

Re: values?

I have modified flowbench controller 1ms to 24ms V5mod.fcf So it does the same thing, but all stack warnings are removed, and only uses 46% of the chip space. So now you have 54% to play with. I have also changed code so if Port C2 is currently active, then if interrupt occurs its just ignored. If t...
by Werner
Thu Jan 19, 2012 12:16 am
Jump to forum
Jump to topic

Cool idea when working with small chips!!

I have been popping in and out small 8 pin chips from EB006 to my proto units and came up with a very user friendly way of doing it without the use of tools. Try it you will like it!! :D
by JohnCrow
Thu Jan 19, 2012 8:08 pm
Jump to forum
Jump to topic

Re: V5 Upgrade ?

Hi Fotios

"Stuck" used in this way means if you are having a problem you cannot solve. :)
by medelec35
Sat Feb 04, 2012 8:16 pm
Jump to forum
Jump to topic

Re: Button... Controll Menu Question

Hi Jordy,

There are a few ways of doing this.
Attached is what I believe is the simplest way using one button.
There may be other ways of course.

I could create a flowchart using several buttons, but will be more complex

Flowchart will also eliminate issues caused by contact bounce.

Martin
by philip davies
Tue Feb 07, 2012 1:13 am
Jump to forum
Jump to topic

Re: Hi-Fi audio preamplifier using Burr-Brown PGA2310

Hi Fotis, Well here is the modified code of your pre-amp. It now allows the user to select 2 record outputs and also allows an external Graphic EQ to be switched in and out. The first thing I did was to add two extra macros, one called "EQ" and another called "Record Out". These ...