Search found 8 matches

by zen
Fri Feb 11, 2011 5:12 pm
Forum: Programming Tips & Tricks
Topic: Look Up Tables using Flowcode and Microsoft Excel
Replies: 34
Views: 53849

Re: Look Up Tables using Flowcode and Microsoft Excel

I decided to activate the free trial of the Hi-Tech C compiler and tried to compile the RGB LED LUT program using it. The BoostC compiler has no problems with the code but the HTC compiler didn't like the program and is returning the following errors: Warning [374] C:\...\RGB_lut_MAIN.C; 105.5 missi...
by zen
Sat Jan 22, 2011 6:08 pm
Forum: Programming Tips & Tricks
Topic: Look Up Tables using Flowcode and Microsoft Excel
Replies: 34
Views: 53849

Re: Look Up Tables using Flowcode and Microsoft Excel

I guess I should have explained the circuit drawing. You should scroll down to the bottom of the circuit schematic drawing to the detail on how I made the "reset" and "button" inputs. I did not have enough room to draw them in full on the top picture so I drew them on the bottom....
by zen
Sat Jan 22, 2011 5:34 am
Forum: Programming Tips & Tricks
Topic: Look Up Tables using Flowcode and Microsoft Excel
Replies: 34
Views: 53849

Re: Look Up Tables using Flowcode and Microsoft Excel

Here is an extremely simplified version of the final program. It utilizes one pushbutton that cycles through the different brightness settings. I have setup this program in a variety of formats where 1-5 pushbuttons are used, several rgb led's are powered,etc....and they have all performed well usin...
by zen
Wed Jan 12, 2011 5:50 pm
Forum: Programming Tips & Tricks
Topic: Look Up Tables using Flowcode and Microsoft Excel
Replies: 34
Views: 53849

Re: Look Up Tables using Flowcode and Microsoft Excel

My plan was do things almost exactly as you just advised above. The loop count was at 255, It was 10 because 255 loops on a simulation speed of 5 takes forever. A delay loop or timer interrupt will be used to dial in the timing of the finished product. It's odd that you got the supplementary code to...
by zen
Tue Jan 11, 2011 3:25 am
Forum: Programming Tips & Tricks
Topic: Look Up Tables using Flowcode and Microsoft Excel
Replies: 34
Views: 53849

Re: Look Up Tables using Flowcode and Microsoft Excel

I'm not sure what it is I'm getting wrong but I am unable to get this program to run correctly. I have tried around ten hours worth of changing settings and have written 2 versions of this program without luck. I'm pretty sure I'm doing something wrong when reading the array. Attached is a slimmed d...
by zen
Wed Jan 05, 2011 7:25 pm
Forum: Programming Tips & Tricks
Topic: Look Up Tables using Flowcode and Microsoft Excel
Replies: 34
Views: 53849

Re: Look Up Tables using Flowcode and Microsoft Excel

Medelec, I probably should have been more precise in what the data in the RGB LUT.xls is representing or how I am reading it. The values R,G,B are the duty cycle returns (Time High of R,G,B /Total Cycle Time ex.. Red/255) for each state determined with respect to state of a potentiometer and a pushb...
by zen
Tue Jan 04, 2011 9:23 am
Forum: Programming Tips & Tricks
Topic: Look Up Tables using Flowcode and Microsoft Excel
Replies: 34
Views: 53849

Re: Look Up Tables using Flowcode and Microsoft Excel

I have a few questions for those experienced with using look up tables in reference to the program posted above. 1.I am having trouble understanding the way operation occurs between flowcode and the look up table. Does flowcode actually examine the file 'SIN LUT.xls', retrieve the string of values, ...
by zen
Mon Jan 03, 2011 2:43 pm
Forum: General Programming
Topic: Bit Bang PWM for RGB common cathode LED using ADC
Replies: 0
Views: 3135

Bit Bang PWM for RGB common cathode LED using ADC

I thought I would post this FCV4 program up for anybody needing a program to control a RGB LED's color using bit banged pwm outputs that are controlled using ADC inputs from two potentiometers. I looked for a while trying to find an example of a program like this and I had no luck. This program shou...