SLC Free How to update firmware/code

93 views
Skip to first unread message

Shane Canaski

unread,
Apr 27, 2015, 12:58:53 PM4/27/15
to 14Po...@googlegroups.com
Hey everyone,

I did some C/Assembly based programming in college and wanted to play around with my wideband controller a bit.  Biggest thing I want to do was have the display show AFR instead of Lambda.  Since I know stoichiometric for Gasoline is 14.7 I can multiple the Lambda reading by 14.7 to get the desired reading.  So I guess I have a couple different questions.

From what I understand

 "BYTE Lambda_x100;" 

is the value that is displayed on the LCD in this format:
char Str1[] = "Lamdba=x.xx"; Using this code:

LCD_Counter=0;
#ifdef LCD_Lambda_Graph
temp_int=ip-ip_to_Lambda_Lookup_Start;
if (temp_int<0)
{
temp_int=0;
}
if (temp_int>(ip_to_Lambda_Lookup_Size-1))
{
temp_int=(ip_to_Lambda_Lookup_Size-1);
}
Lambda_x100=ip_to_Graph_Lookup[temp_int];
LCD_DrawBG(0,0,16,Lambda_x100);
#endif

So I should be able to change the Character string definition to = "AFR=x.xx"

and also where it initializes the LCD screen with LCD_DrawBG(0,0,16,Lambda_x100); change it to LCD_DrawBG(0,0,16,Lambda_x100*14.7);

I am not sure if I would need single or double quotes.

I guess my questions is....  am I even close?

Also this looks to be built/complied with Microsoft Visual studio is that correct?  How could I upgrade the code on my unit with my Mac.  I have done some .c coding using xcode and terminal but nothing while flashing a USB device.  Also Is there a cable that I can use to connect to it?  If I were to put a header pin in could I use this cable that I have 


Let me know what direction I need to get pushed in.

Thanks
Shane
Message has been deleted

Alexandr S

unread,
Apr 21, 2016, 7:33:32 AM4/21/16
to 14Point7
10simbol= lambda 1.0= 14.7 AFR;
lambda 0.63=9,26 AFR - WRONG ; must be 10AFR;
lambda 1.38=20,28 AFR - WRONG ; must be 20AFR.
(0,0,16,Lambda_x100*14.7)-wrong formula.

Reply all
Reply to author
Forward
0 new messages