PWM filter w/buffer
Ian,
Attached is a circuit that you could build on a little breadboard and interface to TB1 of the LCD brd. Filtering should be adequate with these values although you could also change line 592 in the code-
(Under the PWM fuel gauge setup section).
Change MOVLW 0x05 to 0x04 ; prescaler changed from 4 to 1 (PWM freq should now be 7.8kHz rather than 1.95kHz)
The code mod listed in post 285 should still be done to invert PWM.
Short across R20 also.
-Chris
|