Search found 7716 matches

by medelec35
Wed Oct 21, 2009 11:09 pm
Forum: Programming Tips & Tricks
Topic: Interrupt Frequency Calculator and Timer Offset Calculator
Replies: 7
Views: 14220

Re: Interrupt Frequency Calculator and Timer Offset Calculator

V4.
Added extra columns to calculate variable value required in interrupt macro for a given time delay. Untested. Comments for improvements or usability are welcome. Perhaps comments on the maths please, i.e. how accurate calculations are.
Thanks.
Int time CalulatorV4.xls
(101.5 KiB) Downloaded 668 times
by medelec35
Sun Oct 18, 2009 2:37 pm
Forum: Flowcode V4
Topic: Interrupt on RB0 with ECIO
Replies: 3
Views: 2950

Re: Interrupt on RB0 with ECIO

I don't claim to have the answer, but how about a short delay before int routine?
Also you only need to activate int routine once. It is not required to constantly active int within a loop.
Try attached file.
no guarantee it will work.
by medelec35
Sat Oct 17, 2009 11:21 am
Forum: Flowcode V4
Topic: Increasing text displayed outside of icons
Replies: 9
Views: 7222

Increasing text displayed outside of icons

I believe displaying text out side of icons is a big advantage, which was covered by Steve in a a different topic. See: http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=29&t=6671&p=14884 To change Flowcode 4 so text is on outside of icons, go to View then Global Options and un-tick Hide anno...
by medelec35
Mon Oct 12, 2009 9:11 am
Forum: Flowcode 4 Suggestions
Topic: Initial starting position of switches.
Replies: 0
Views: 2431

Initial starting position of switches.

Currently switches default to 0 or in case of toggle in the down position. Is it possible to set initial status of switch? E.g. switch 1 and switch 3 can start in up (or on) position, switch 2 and switch 4 can start in down or off position. I know we can set for active high/low but to achieve this, ...
by medelec35
Sun Oct 11, 2009 4:36 pm
Forum: Flowcode 4 Bugs
Topic: Interruptions on change in port B
Replies: 1
Views: 2565

Re: Interruptions on change in port B

Have a look at this: http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=21&t=6400&p=13464&hilit=iocb#p13464 Tip: use notepad and edit ,replace command. Or just replace 12f683.fcd in FCD folder of flowcode installation directory e.g C:\Program Files\Matrix Multimedia\Flowcode V4\FCD with attach...
by medelec35
Tue Oct 06, 2009 9:54 am
Forum: Flowcode 4 Bugs
Topic: Not displaying reasons for compile failure
Replies: 10
Views: 6706

Re: Not displaying reasons for compile failure

There is a known (and annoying) bug in the current v4 release that means if the amount of text emitted by the compiler is too large, the text is not transferred to the "compiler messages" screen. This has been fixed, but the fix is not publically available yet. Steve. I understand that if too many ...
by medelec35
Mon Oct 05, 2009 4:44 pm
Forum: Flowcode 4 Bugs
Topic: Not displaying reasons for compile failure
Replies: 10
Views: 6706

Re: Not displaying reasons for compile failure

saschech@gmx.de wrote:why jou dont have the same compiling-window with the thame v4.1 ?
If you are referring to background shades, The darker shade is on a PC with windows XP, and the white background is on a PC with windows Vista.

If that's not what you was referring to, can you rephrase question please.
by medelec35
Mon Oct 05, 2009 4:37 pm
Forum: Flowcode 4 Bugs
Topic: Not displaying reasons for compile failure
Replies: 10
Views: 6706

Re: Not displaying reasons for compile failure

saschech@gmx.de, The osccon in the flowcode was deliberate spelt wrong to demonstrate that flowcode was not displaying any errors, on the PC I was using since only problem is deliberately misspelled osccon in a C box. However on a different PC, (the one I originally tested a similar misspelled word ...
by medelec35
Mon Oct 05, 2009 3:06 pm
Forum: Flowcode 4 Bugs
Topic: Not displaying reasons for compile failure
Replies: 10
Views: 6706

Re: Not displaying reasons for compile failure

Ihave just tried to compile the most basic flowchart. That also does not display errors. Surly it can't be due to low on memory since only problem is deliberately misspelled osccon in a C box. I thought that bug was solved? When I did same test on previous version of flowcde some time ago, the missp...
by medelec35
Mon Oct 05, 2009 12:01 pm
Forum: Flowcode 4 Bugs
Topic: Not displaying reasons for compile failure
Replies: 10
Views: 6706

Re: Not displaying reasons for compile failure

steve wrote:Regarding the "not for commercial use" message... Shhh. Don't tell anyone!
:lol:

I had a look for error 2 in boost C manual prior to posting , but could not found want I was looking for :cry:

Thanks anyway.
by medelec35
Mon Oct 05, 2009 10:50 am
Forum: Flowcode 4 Bugs
Topic: Not displaying reasons for compile failure
Replies: 10
Views: 6706

Re: Not displaying reasons for compile failure

Thanks Steve. Now I have seen the listing giving the problem areas, I can sort program out. I will also change macros. Looking at this logically, the problem is caused by running out of RAM. Since that has caused too many errors to be displayed, wouldn’t it be better just to report not enough RAM ...
by medelec35
Mon Oct 05, 2009 8:12 am
Forum: Flowcode 4 Bugs
Topic: Not displaying reasons for compile failure
Replies: 10
Views: 6706

Not displaying reasons for compile failure

When I compile to hex there is unable to compile and –2 warning.
On three different PC’s the reason for error was not shown.
Two of the PC’s has Vista, and one has XP windows.
Not compiling.JPG
Not compiling.JPG (41.29 KiB) Viewed 6871 times
V4_alarm4_16f872.casm
(396 Bytes) Downloaded 247 times
by medelec35
Fri Oct 02, 2009 3:47 pm
Forum: Flowcode V4
Topic: Help with code - URGENT
Replies: 10
Views: 5981

Re: Help with code - URGENT

Re contact bounce. Not sure how effective the method I use for contact bounce is, perhaps some one can comment on it please. contact bounce.JPG I wanted a simple method, which did not wait for i/p to change. So I just created a double loop with a time delay. This time delay is only used once, sine o...
by medelec35
Wed Sep 30, 2009 8:15 am
Forum: Article Discussion
Topic: MX005 - Controlling Hi Power LEDs
Replies: 5
Views: 16640

Re: Controlling Hi Power LEDs

Great tutorial! My concern would be there is no base current limiting resistor, so it would be like shorting an uc pin o/p with a silicon diode, so o/p will drop from 5V to 0.7 ish Volts. Limited by internal circuitry of uc. Or are you saying this base limiting resistor can be omitted if pulse width...
by medelec35
Wed Sep 30, 2009 8:02 am
Forum: Flowcode V2 & V3
Topic: adc controlled PWM output???
Replies: 14
Views: 9707

Re: adc controlled PWM output???

boa279. PWM is pulse width modulation. Basically the frequency stays the same, but the on time is varied hence the on width time. E.g. at 100Hz the pulse could be on for 3ms (milliseconds), and off for 7ms. Duty = (3/(3+7))*100 = 30% Total time should add up to 1/f = 1/100 = 10ms So duty is a ratio ...
by medelec35
Sat Sep 19, 2009 3:01 pm
Forum: Flowcode V4
Topic: 16F872 & MCLR
Replies: 2
Views: 2279

Re: 16F872 & MCLR

Ah yes of course. Pin 1 cannot be used as a standard i/p, that's why option is not there.
Reason why I asked question is reset was not clearing variables, count kept continuing. So I put a o/p high for 5 seconds every time device is reset, which was occurring.
Thanks wolfgang.
by medelec35
Sat Sep 19, 2009 2:19 pm
Forum: Flowcode V4
Topic: 16F872 & MCLR
Replies: 2
Views: 2279

16F872 & MCLR

Normally on other microcontrollers, options to change pin 1 to input pin or MCLR pin is via Configuration settings.
This option is no available via PPP config.
So how can MCLR be changed in flowcode please?
by medelec35
Fri Sep 18, 2009 10:34 pm
Forum: E-blocks
Topic: EB005 LCD board.
Replies: 5
Views: 4424

Re: EB005 LCD board.

Looking at the circuit of LCD Board, it should only run at 5V. My LCD does. Sounds like a timing issue to me. Are you using external crystal osc. Is flowcode osc setting same as your hardware settings? Is config correctly set for type of osc you are using? What is your microcontroller and type of os...
by medelec35
Fri Sep 18, 2009 10:20 pm
Forum: Flowcode 4 Bugs
Topic: Watchdog delays.
Replies: 2
Views: 2959

Re: Watchdog delays.

Thanks Ben.
Not experiencing any problems, Quiet the opposite. Flowcode 4 is going very well.
I was asking because not had the chance to test delay accuracies and I am planning to use watchdog but also require delays to be accurate.
by medelec35
Fri Sep 18, 2009 9:08 am
Forum: Flowcode 4 Bugs
Topic: Watchdog delays.
Replies: 2
Views: 2959

Watchdog delays.

Has timing accuracy when Auto clear watchdog is enabled been addressed? E.g. one-second delay is exactly one second when Auto clear watchdog is off, however this delay time is increased when Auto clear watchdog is on. Won't this affect any critical timed delays? See: http://www.matrixmultimedia.com/...
by medelec35
Wed Sep 16, 2009 8:53 am
Forum: Flowcode V4
Topic: One-Wire and CRC
Replies: 17
Views: 8853

Re: One-Wire and CRC

Benj wrote: Thanks for the comments on the arrays Medelec :mrgreen:
Your welcome.
Just hope my explanation makes enough sense for Mikat to follow and create arrays OK.
by medelec35
Fri Sep 11, 2009 4:21 pm
Forum: Flowcode V4
Topic: One-Wire and CRC
Replies: 17
Views: 8853

Re: One-Wire and CRC

To add a variable array, all you do is add variable as normal but straight after variable name add [] at the end with number of dimensions within brackets. E.g taking previous post as an example: Click add new variable, then in name box enter device[4] When used in calculations, arrays is just like ...
by medelec35
Mon Sep 07, 2009 11:04 pm
Forum: Flowcode V4
Topic: Comments on Flowcode 4.1
Replies: 11
Views: 7980

Re: Comments on Flowcode 4.1

ah. Thanks Eric. I thought they were suppose to be added when installed V4.1.
My bad.
by medelec35
Mon Sep 07, 2009 5:52 pm
Forum: Flowcode V4
Topic: Comments on Flowcode 4.1
Replies: 11
Views: 7980

Re: Comments on Flowcode 4.1

Re 9: There are undocumented registry entries that control the maximum width/height of the annotation field. These are in the following location of the registry: HKEY_CURRENT_USER\Software\MatrixMM\FlowcodeV4\Options They are both "DWORD" values and are "MaxAnnotationX" and "MaxAnnotationY". They d...
by medelec35
Mon Sep 07, 2009 11:03 am
Forum: Flowcode V4
Topic: Software reset.
Replies: 2
Views: 2198

Re: Software reset.

Steve,
Your soultion was perfect!
Working as intentended.
Thanks...