Search found 4 matches

Return

by medelec35
Thu Jul 02, 2009 10:26 pm
Jump to forum
Jump to topic

Simple bit bang method to vary LED brightness using POT

This was created with Flowcode V4 to vary LED brightness from really Dim to bright. Method uses a pot to control duty cycle of a bit bang PWM. Target Chip = 16F887 Osc = int 4MHz Approx PWM Freq= 193 Hz As usual using Flowcode the target chip can be changed. However, if using a different chip, then ...
by Benj
Mon Jul 30, 2007 11:04 am
Jump to forum
Jump to topic

Look Up Tables using Flowcode and Microsoft Excel

Here are 3 example Flowcode files and an excel spreadsheet that show how to create look up tables using Flowcode. The Excel file is used to create the data for the Look up table. Once the data has been created it can be included into Flowcode by using the Edit -> Supplementary code dialogue window. ...
by medelec35
Tue Jan 11, 2011 7:21 am
Jump to forum
Jump to topic

Re: Look Up Tables using Flowcode and Microsoft Excel

Corrected Errors for you. Main problem is you had: FCD_PWM_RED = RED[FCV_ADCO_MATH]; FCD_PWM_GREEN = GREEN[FCV_ADCO_MATH]; FCD_PWM_BLUE = BLUE[FCV_ADCO_MATH]; Changed to: FCV_PWM_RED = red[FCV_ADCO_MATH]; FCV_PWM_GREEN = green[FCV_ADCO_MATH]; FCV_PWM_BLUE = blue[FCV_ADCO_MATH]; Also you do not need:...
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...