Search found 99 matches

by Eric
Sun Feb 28, 2010 4:02 pm
Forum: Flowcode V4
Topic: Serious Warning: Possible sw stack corruption, function
Replies: 5
Views: 3600

Re: Serious Warning: Possible sw stack corruption, function

Hello Medelec, I had a similar problem lately: see http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=29&t=6968#p16515 It turned out to be a delay problem: 2 macro's using the same delay routine simultaniously. The solution from Steve ( replacing the delay by a loop ) solved the issue. Maybe t...
by Eric
Fri Feb 26, 2010 7:52 pm
Forum: Flowcode V4
Topic: Problem with FAT component
Replies: 6
Views: 4780

Problem with FAT component

Hello, I want to create a datalogger on MMC card. The idea is that every time the logger is restarted or reset, a new logfile is created in the root directory. The attached program is a simplified version of the final program just to demonstrate my problem. It creates 5 logliles ( LOG1.TXT, LOG2.TXT...
by Eric
Fri Jan 08, 2010 3:10 pm
Forum: Flowcode V4
Topic: Conflict between LCD_Start and Interrupt
Replies: 7
Views: 5068

Re: Conflict between LCD_Start and Interrupt

Steve,

Editing the C code, as you suggested, did the job.
Thx,

Eric
by Eric
Wed Jan 06, 2010 11:16 am
Forum: Flowcode V4
Topic: Conflict between LCD_Start and Interrupt
Replies: 7
Views: 5068

Re: Conflict between LCD_Start and Interrupt

Sorry Steve, but I think you don't understand my point. This program is very short, has no delays at all and has 2 very short interrupts. The first interrupt is a RB1 interrupt which reacts on a keypress. Once triggered, it only looks for the keyvalue. The second interrupt just sets a flag when the ...
by Eric
Tue Jan 05, 2010 11:19 pm
Forum: Flowcode V4
Topic: Conflict between LCD_Start and Interrupt
Replies: 7
Views: 5068

Re: Conflict between LCD_Start and Interrupt

Hello Steve,

The length of my 2 interrupt routines are very short. They just set a flag. It is in fact the same routine as shown in the example.
I have the feeling that Medelec is right with his comment. Can you confirm that I can safely ignore this warning?

Regards,

Eric
by Eric
Sat Jan 02, 2010 10:54 am
Forum: Flowcode V4
Topic: Conflict between LCD_Start and Interrupt
Replies: 7
Views: 5068

Conflict between LCD_Start and Interrupt

Hi team, I received this strange error during compilation of my program. snap0372.jpg I stripped down the program until I was able to pinpoint the error exactly ( see attachement ) The program uses 2 interrupts: one TMRO interrupt and one RB1 interrupt. This worked fine until I added the LCD_Start m...
by Eric
Sat Dec 05, 2009 9:52 am
Forum: Flowcode V4
Topic: Pulse Width Timing
Replies: 9
Views: 6514

Re: Pulse Width Timing

Hi Ben,

I was looking at your example and I noticed that in the panel this message was given:
snap0329.jpg
snap0329.jpg (50.74 KiB) Viewed 6614 times
I wasn't aware that Flowcode doesn't look at the owner of Flowcode but at the author of the program.
Am I in violation of piracy rules now :lol:

Rgds,

Eric
by Eric
Mon Nov 16, 2009 2:48 pm
Forum: Flowcode V4
Topic: Watchdog
Replies: 6
Views: 4369

Re: Watchdog

Good idea, I will give it a try.
Rgds
Eric
by Eric
Sat Nov 14, 2009 9:52 am
Forum: Flowcode V4
Topic: Watchdog
Replies: 6
Views: 4369

Re: Watchdog

Ok, thx. Something that still puzzles me is the behaviour of the watchdog in a deliberate end loop. Suppose you have somewhere in your program an error routine like this (just an example): snap0251.jpg The intention of this code is to stop the program from continuing in case of a critical error. How...
by Eric
Thu Nov 12, 2009 1:13 pm
Forum: Flowcode V4
Topic: Watchdog
Replies: 6
Views: 4369

Re: Watchdog

Sorry Ben, I posted in the wrong index. Can you please change it to the V4 group?

Thx,

Eric
by Eric
Thu Nov 12, 2009 1:10 pm
Forum: Flowcode V4
Topic: Watchdog
Replies: 6
Views: 4369

Watchdog

Hi Ben, In the project options of V4 it is possible to mark "auto clear watchdog". Does this means that Flowcode enters at regular places in the code the function "clear watchdog"? I noticed that when I set the config bytes of the processor to "enable watchdog" and when I set the marker "auto clear"...
by Eric
Wed Nov 04, 2009 1:46 pm
Forum: Flowcode V4
Topic: Roundings
Replies: 4
Views: 3575

Re: Roundings

Hi Medelec,

Even simpler :-)
Shame on me, I definitively was looking way to far for a solution.

Rgds,
Eric
by Eric
Tue Nov 03, 2009 11:47 am
Forum: Flowcode V4
Topic: Roundings
Replies: 4
Views: 3575

Re: Roundings

Perfect in its simplicity.

Thx Ben,

Eric
by Eric
Tue Nov 03, 2009 9:48 am
Forum: Flowcode V4
Topic: Roundings
Replies: 4
Views: 3575

Roundings

Hello, Does anybody knows a good algoritm to simulate in Flowcode the C- function "floor" and "ceiling" to establish roundings on an integer. What I mean is this: reading an ADC value of 834 ( representing a temperature of 83.4Β°C ), I want to round it to 830 ( giving a rounded temperature of 83Β°C)...
by Eric
Thu Oct 22, 2009 6:00 pm
Forum: Flowcode V4
Topic: Delay using a variable
Replies: 9
Views: 8086

Re: Delay using a variable

Thanks guys, this helps a lot.

Regards,

Eric
by Eric
Thu Oct 22, 2009 5:35 am
Forum: Flowcode V4
Topic: Delay using a variable
Replies: 9
Views: 8086

Re: Delay using a variable

That was my first idea too, but the variable is effectively type INT.
I also need to say that it simulates well in Flowcode ( it simulates 1 sec ), but in real hardware it doesn't work correct.
Maybe somebody can try it on his hardware to verify this.

Rgds,

Eric
by Eric
Wed Oct 21, 2009 12:27 pm
Forum: Flowcode V4
Topic: Delay using a variable
Replies: 9
Views: 8086

Delay using a variable

Hello Is it possible to create a delay in V4 using variables? Consider this testprogram: snap0210.jpg I need a delay with a value depending on certain conditions. So I attributed the variable "delay" with the value 1000 ms. In the delay icon I use this variable to generate my delay. The problem I ha...
by Eric
Wed Oct 21, 2009 11:36 am
Forum: Flowcode V4
Topic: One Wire Example - Failure on linking
Replies: 54
Views: 35807

Re: One Wire Example - Failure on linking

Hi Ben,

I don't mind at all.
I am glad to hear that you like the program.

Regards,

Eric
by Eric
Wed Oct 21, 2009 6:09 am
Forum: Flowcode V4
Topic: One Wire Example - Failure on linking
Replies: 54
Views: 35807

Re: One Wire Example - Failure on linking

George,

I haven't tested it on PIC16F877 but I see no reason why not.
I use a crystal of 8 Mhz

Regards,

Eric
by Eric
Sun Oct 18, 2009 1:03 pm
Forum: Flowcode V4
Topic: One Wire Example - Failure on linking
Replies: 54
Views: 35807

Re: One Wire Example - Failure on linking

Please remember: the program will not simulate because there is no one-wire simulation in Flowcode. You need at least 1 real sensor DS18S20 or DS18B20 connected to port A0. You will see something like this on real hardware : 8 sensors ( 5 DS18S20 and 3 DS18B20 ) and display_res of 3 digits : snap020...
by Eric
Fri Oct 16, 2009 5:31 pm
Forum: Flowcode V4
Topic: One Wire Example - Failure on linking
Replies: 54
Views: 35807

Re: One Wire Example - Failure on linking

Hello, I am succesfully using the one-wire protocol of Flowcode V4 in a central heating controller. My one-wire bus is 18 meters long and has 6 sensors DS18B20 attached to it. It took me considerable study and effort to make it work reliable. But it is perfectly possible to use the protocol of V4. H...
by Eric
Fri Sep 11, 2009 5:59 am
Forum: Flowcode V4
Topic: One-Wire and CRC
Replies: 17
Views: 9212

Re: One-Wire and CRC

Hi Mikat,

Sorry, my mistake: read "busreset -scanbus and getIDByte" as "busreset -scanbus and getDeviceCount"
by Eric
Fri Sep 11, 2009 5:57 am
Forum: Flowcode V4
Topic: One-Wire and CRC
Replies: 17
Views: 9212

Re: One-Wire and CRC

Hello Mikat, It is true that a DS18S20 has a conversion time of 750msec. This means that if you have 3 sensors online and you let each sensor make a temperature conversion separately, the total time will be 3 x 750 msec. However, it is not necessary to give each sensor a separate command to start th...
by Eric
Wed Sep 09, 2009 1:52 pm
Forum: Flowcode V4
Topic: Lost panel
Replies: 18
Views: 9165

Re: Lost panel

Ok, I will keep an eye on it.
by Eric
Wed Sep 09, 2009 1:18 pm
Forum: Flowcode V4
Topic: Lost panel
Replies: 18
Views: 9165

Re: Lost panel

Hi Steve,

Perfect.
But what do I have to do to prevent it from happening again in the future?
I don't use 2 monitors and I didn't changed my resolution. In fact I am simply working on a notebook.

Anyway, thanks a lot.

Eric