Search found 175 matches

Return

by fotios
Sun Sep 04, 2011 7:23 am
Jump to forum
Jump to topic

Re: values?

Hello brandonb That you refer, it remembers me a car engine managed by a modern ECU unit. Please correct me if i am wrong. In modern car engines i know that the acceleration pedal operates a potentiometer (my best friend is car mechanic and i helped him many times :mrgreen: ) which of the output dri...
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 Steve
Mon Sep 26, 2011 8:47 am
Jump to forum
Jump to topic

Re: error

Error: Failed to open:libc.pic16.lib or C:\Program Files\SourceBoost\lib/libc.pic16.lib See here: http://www.matrixmultimedia.com/support/viewtopic.php?f=22&t=683 Or here: http://wwww.matrixmultimedia.com/mmforums/viewtopic.php?f=5&t=4502&start=0 Or even here... http://www.google.co.uk/...
by medelec35
Sun Oct 09, 2011 11:10 pm
Jump to forum
Jump to topic

Re: timed loops

is there another pic chip that my version of flowcode supports that has alot more memory words, it would be great if i had 4x what i have with the 16f690.... thanks Hi, Brandon This will help you find the best chip for your application: http://www.microchip.com/maps/microcontroller.aspx Just untick...
by jgu1
Thu Oct 13, 2011 7:09 am
Jump to forum
Jump to topic

Re: edge triggering

Hi!

Maybe something like this?

Regard

Jorgen.
by medelec35
Sun Oct 30, 2011 11:54 am
Jump to forum
Jump to topic

Re: set stop count issue

Hi brandonb. The reason this is occurring is because the characters stay on the lcd until they are overwritten with other characters including spaces. e.g if a int value sent to lcd is 1023, then int is changed to just 3 then display will show 3023 because the 023 will still remain as its not overwr...
by medelec35
Sun Nov 13, 2011 7:55 pm
Jump to forum
Jump to topic

Re: interupt on pin

Here is an alternative version with nothing in main.

Martin
by medelec35
Sun Nov 13, 2011 12:18 pm
Jump to forum
Jump to topic

Re: interupt on pin

Hi Brandon. I have created a flowchart that should kill more than one bird with one stone so to speak. The flowchart uses port interrupt on change, port INT pin (on RA2) and finally timer0 to count 1 second for LED. Note: normally RB0 is used for port INT. However Port RA2 is used on 16F690. Therefo...
by Benj
Mon Nov 14, 2011 12:46 pm
Jump to forum
Jump to topic

Re: interupt on pin

Hello, suppose hypotheticly if have the chip turn on a output for 1 hour by making an output high then giving a 1 hour delay..... what would happen when i hit an interupt that would turn on another led for 10 seconds? Your 1 hour delay would become 1 hour and ten seconds, assuming you remained in th...
by medelec35
Mon Nov 14, 2011 12:54 am
Jump to forum
Jump to topic

Re: interupt on pin

Sorry Brandon, I have simplified flowchart to just run port interrupt on change. The way to follow how it works is just single step flowchart( press F8 function key). Then every time you want to change switch state, just click switch, then keep pressing F8 key to follow what happens. You should be a...
by medelec35
Tue Nov 15, 2011 8:27 am
Jump to forum
Jump to topic

Re: interupt on pin

In reality it won't be a good idea to have interrupt force another delay whilst a delay is already running or corruption could occur. But the there theory is if a one hour delay is running, and an interrupt is triggered when only 1/2 hour has passed, and there is 10 seconds in the interrupt macro, t...
by medelec35
Sun Nov 20, 2011 12:18 am
Jump to forum
Jump to topic

Re: interupt on pin

Ah, yes, I remember seeing that post now. martin i dont think thats the case, because when i command 1m/s on time pulse i get it with the scope In that case I take back the suggestions about osc and config settings, they must be correct. If I get a chance I could have a play and see if I have any lu...
by medelec35
Wed Nov 16, 2011 12:02 pm
Jump to forum
Jump to topic

Re: interupt on pin

Hi Brandon, I have now added the timer0 interrupt. This interrupt is accessed 76 times every second. Each time interrupt is accessed, count is incremented by 1. So after 76 counts seconds are then incremented by 1 You can set time to any amount of minutes ( 1 to 32767) To start or continue delay fro...
by medelec35
Mon Nov 14, 2011 10:19 am
Jump to forum
Jump to topic

Re: 32 mhz internal clock settings

Here are my thoughts. If you use the calculator that is shipped with windows, then use in programmer mode (windows 7 version) Select binary mode (you can leave on Qword), and then enter all the numbers I have outlined from 16F1839 data sheet: osccon reg.png i.e 1110000 Then select Hex mode, you will...
by Jan Lichtenbelt
Mon Nov 14, 2011 9:58 am
Jump to forum
Jump to topic

Re: 32 mhz internal clock settings

Try osccon= 0xF0; for 32 MHz internal oscillator. (osccon=0x78; is indeed 16 MHz).

Pay attention: At 32 MHz the E_block LCD will fail to show data, due to to short waiting times (which will decraese a factor 20/32).

Kind regrads,

Jan Lichtenbelt
by Werner
Mon Nov 21, 2011 10:01 pm
Jump to forum
Jump to topic

Really cool part for Flowcode project builders!

Hi Guy’s, I just wanted to share with all my Flowcode friends a really cool project board I found on Adafruit. This 1/2 size proto board is perfect for micro projects. The beauty is that you can pull off your breadboard and locate your parts in the same location on the proto board easy! I think the ...
by medelec35
Mon Dec 14, 2009 4:28 pm
Jump to forum
Jump to topic

Is your Project Not working? Help and General Advice

Here are some basic solutions. First make a very simple 1Hz flasher, using an LED and something like 270R resistor in series. E.g: Loop while 1 A0=1 Delay 500ms A0=0 Delay 500ms If LED not flashing at correct rate (or at all) then check: A) All voltages are correct. VDD or VCC = +5V. VSS or VEE=0V. ...
by Benj
Mon Nov 28, 2011 6:47 pm
Jump to forum
Jump to topic

Re: 16f1939/16f1938 missing port interrupts

Hello, I will try and sort this out for you tomorrow morning. If you don't hear from me then something probably came up so keep posting on this topic to remind me. I think ioc on these devices was left out of v4 because they had advanced features such as separate registers for interrupt on rising ed...
by Benj
Tue Nov 29, 2011 12:58 pm
Jump to forum
Jump to topic

Re: 16f1939/16f1938 missing port interrupts

Hello, Right here are the updated FCDs with the port interrupts. If you open the FCD into a text editor and then scroll down to the bottom then you will see the masks for the positive edge (iocbp) and negative egde (iocbn). At the moment the full port is set to interrupt on any rising or falling edg...
by Benj
Mon Oct 17, 2011 10:31 am
Jump to forum
Jump to topic

Re: Is interrupt affect ADC process

Hello,

The ADC sample process is a hardware based event and once started will not be effected by interrupts etc.
by medelec35
Mon Jan 02, 2012 4:27 pm
Jump to forum
Jump to topic

Re: is this fcf efficient in keeping time

Hi Brandon, Here are my thoughts: If I want the time to be accurate and I use a very accurate crystal, then I would only use 1 timer interrupt not 2 or more interrupts. This is because while an interrupt macro (E.g tm1) being accessed then although timers are still running in the background, all int...
by Spanish_dude
Wed Dec 28, 2011 3:46 am
Jump to forum
Jump to topic

Re: Help us choose the next Flowcode Video subject

Hi jgu1, ( ) - Parentheses. Parentheses are used the same way as when doing basic calculation in math. 2 * ( 3 + 1 ) = 2 * 4 = 8 = <> -Equal to, Not equal to Note1: I know Flowcode allows you to use '=' but it's actually '==' in C Note2: I never tried '<>' in C, I always use '!=' These operation wil...
by Gary Freegard
Sun Jan 08, 2012 10:51 am
Jump to forum
Jump to topic

Re: measuring pulsewidth

Hi Brandon

Have a look at this http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=29&t=9088 , as Jan wanted to do the same.
May give you other options/ideas.

Gary
by Gary Freegard
Mon Jan 09, 2012 1:26 pm
Jump to forum
Jump to topic

Re: measuring pulsewidth

Hi Brandon After reading the datasheet http://ww1.microchip.com/downloads/en/devicedoc/41262a.pdf Chapter 14 figure 14-6, this shows that all the interrupts have the same priority, as Jac said, so its first come first serve. I have made a few of changes to your program Using 16F877A at 19.6MHz Chang...
by kersing
Sun Jan 08, 2012 3:24 pm
Jump to forum
Jump to topic

Re: measuring pulsewidth

exactly what is the interrupt priority, i've asked that question a few times with no results, or where do i find that info?..... Generally speaking: interrupt priority allows multiple interrupts to occur at the same time where the interrupt with the highest priority will be serviced first. Interrup...