Search found 213 matches

Return

by Steve
Tue Sep 07, 2010 5:53 am
Jump to forum
Jump to topic

Re: MY PROGRAM WILL NOT COMPILE TO ASM OR THE CHIP

My post simply refers to variables that are declared as Flowcode variables rather than variables declared within the C code itself. Declaring the variable in the C code using "char error;" means the variable is only "visible" in the C code and cannot be used within any other Flow...
by Steve
Fri Feb 27, 2009 3:20 pm
Jump to forum
Jump to topic

Re: Closed Loop Motor Control.

There's an article about lookup tables in our "Articles" section of the forum - this may help. But also, be aware that the "voltage" reading will probably be a byte value (0-255) representing the ADC value. Also, the RPM value you use may not necessarily be the actual RPM value, ...
by Steve
Wed Nov 03, 2010 7:14 am
Jump to forum
Jump to topic

Re: EB006 V7 Multiprogrammer

Yes - this is the fix.
by Steve
Mon Nov 08, 2010 7:55 am
Jump to forum
Jump to topic

Re: Error: .obj or .lib file Incompatible version!

When reinstalling Flowcode on a PC that has had it before, you should not need to reenter the code - simply install it without a code and it should "remember" the licence details.
by Steve
Wed Nov 17, 2010 8:10 am
Jump to forum
Jump to topic

Re: Two pwm outputs with only one CCP

Hi Martin,

Ben's currently on holiday, which is why you've not had a reply to your other question. He's due back tomorrow (or perhaps even today), so you should get a reply soon. The same goes for this question too.
by Steve
Mon Dec 06, 2010 11:51 am
Jump to forum
Jump to topic

Re: Two pwm outputs with only one CCP

I'm by no means an expert, but here are my thoughts... P1A and P1B are not independent, so this in not an option. Looking at the datasheet, I think you have 2 choices - use the "compare" mode of that chip to generate a software interrupt at certain times, or just bitbang both PWM channels....
by Steve
Tue Dec 21, 2010 7:35 am
Jump to forum
Jump to topic

Re: dsPic/pic24

Currently, there are 3 variants - PICmicro (8bit), AVR and ARM. The dsPIC/PIC24 will be a fourth variant and will be priced in line with the other versions. It will also be subject tot he same cross-grade offers (i.e. if you have bought the current Flowcode V4 for PICmicro, then you can buy an equiv...
by Steve
Mon Jan 03, 2011 9:42 am
Jump to forum
Jump to topic

Re: C4PICs V3 & multiprogrammer board (T0IF problem)

Pin A4 on a 16F877a is an "open drain" output and therefore needs an external pull-up for this pin to drive a load. But neither piece of code in your previous email seems to reference this pin - 0x04 is pin 2 and 0x08 is pin 3. You are correct that there is no ANSEL register in the 16F877a...
by Steve
Fri Feb 19, 2010 10:16 am
Jump to forum
Jump to topic

Re: Auto clear watchdog problem

Or just use the following, which should be compiler-independent:

Code: Select all

MX_CLEAR_WATCHDOG;
by Steve
Fri Jan 07, 2011 7:58 am
Jump to forum
Jump to topic

Re: Programmable RC-5 Remote Control

The code for the "defines" section of the keypad component has been customized to include a load of definitions for the RC5, which might be causing some problems.
by Steve
Mon Jan 10, 2011 11:50 am
Jump to forum
Jump to topic

Re: GPS error in flowcode

This is a known problem with the GPS macros that return a "float" value. The best workaround I can suggest if you wish to simulate these programs is to put a breakpoint onto the float-returning macros. This way, the error messages will not appear constantly and you will get the opportunity...
by Steve
Wed Jan 19, 2011 7:43 am
Jump to forum
Jump to topic

Re: Define an array of bytes depending on a variable

Flowcode does not allow dynamic memory allocation natively, but the underlying C compiler can. BoostC uses "alloc", and HITECH will use something similar - search in the help for the compiler for more information. Of course, because you need to do this with C code embedded into the flowcha...
by Steve
Mon Oct 18, 2010 7:58 am
Jump to forum
Jump to topic

Re: Is your Project Not working? Help and General Advice

To check for errors: If you download Notepad++ or notepad2 (or any other notepad replacement that shows line numbering). Then in 'Chip, 'Compiler Options' Where is says file viewer, just browse to the new notepad replacement. You only need to do this once. You can even use Notepad itself to do this...
by Steve
Tue Jan 25, 2011 4:40 pm
Jump to forum
Jump to topic

Re: virtual maze

This is a V3 component that was removed in V4 of Flowcode.
by Steve
Wed Feb 02, 2011 1:59 pm
Jump to forum
Jump to topic

Re: Programming 16F1827 on EB006 multiprogrammer board

I also done a silly thing,so anyone reading this: Warning "Please don't do this at home :P" Do not accidentally wire 13V psu to the 5V (+v) otherwise you will require a new programmer like I do right now! In my defence, I was stressed with other things at the the time. On the bright side,...
by Steve
Mon Feb 07, 2011 9:51 am
Jump to forum
Jump to topic

Re: The Burglar Alarm System

Flowcode versions 2 and 3 had 2 components that were "virtual systems" - a buggy travelling around a maze and a burglar system. These have been removed in V4 of Flowcode.
by Steve
Wed Feb 09, 2011 7:49 am
Jump to forum
Jump to topic

Re: How to simulate custom IRQ macros?

The macro called by an IRQ can also be called using a "call macro" icon. What I would do is to create a global variable (called "Call_IRQ" or similar) which is initially set to zero. Then, at convenient points in your program place a Decision icon that uses this variable as the e...
by Steve
Tue Feb 15, 2011 2:06 pm
Jump to forum
Jump to topic

Re: Tcp/ip

I'd probably vote for UDP as it is a little easier to deal with than TCP.
by Steve
Mon Feb 14, 2011 8:08 am
Jump to forum
Jump to topic

Re: Look Up Tables using Flowcode and Microsoft Excel

This might be a better way: In BoostC, define constant arrays like this: rom char* my_const_array = {1,2,3}; And in HITECH, use this: const char my_const_array[] = {1,2,3}; In fact, to make the code work with either compiler without modification, do something like this: #ifdef _BOOSTC rom char* my_c...
by Steve
Wed Mar 09, 2011 2:02 pm
Jump to forum
Jump to topic

Re: Simulating

Are the nodes wired together in the VNET diagram?
by Steve
Tue Mar 08, 2011 8:53 am
Jump to forum
Jump to topic

Re: simulating a LED matrix

Simulating an LED matrix in Flowcode is currently impossible. But it is a good idea and is something we will look at allowing in the future.
by Steve
Tue Mar 22, 2011 2:47 pm
Jump to forum
Jump to topic

Re: how to erase PIC

Flowcode uses other programs to send programs to the PICmicro, for example PICkit2 or Matrix's PPP program. Both of these tools should automatically erase the chips before they are reprogrammed. Plus they can be run separately and have functions to read programs back and to erase the PICmicro.
by Steve
Mon Mar 28, 2011 7:58 am
Jump to forum
Jump to topic

Re: writing to a USB MSD from a PIC24FJ in flowcode V4

The ability to write to a USB mass storage device is not natively available in FlowCode. You will need to write your own C code routines to accomplish this.