View Single Post
Old 04-01-2011, 11:29 PM   #157 (permalink)
Freyguy
EV Builder
 
Freyguy's Avatar
 
Join Date: Nov 2010
Location: Macungie, PA
Posts: 157
Thanks: 15
Thanked 64 Times in 40 Posts
OK guys, found the fuel gage PWM bug. It exists in both 2420 and 2480 versions of the code.
Open the asm file and remove or comment out line 1622
;MOVWF RES2

That line serves no purpose and somehow got inserted way back in my january code. Probably right after the last time I checked this function..........go figure
VR2 will then work to adjust PWM at 20% SOC.

Jackbauer, I still think you need an inverted PWM for your setup, but play with VR2 and see what impact it has on the gage needle.

-Chris
  Reply With Quote