Kschwiggy
New Member
got my speedo code tweaked... here it is for sharing. the processor is 16f877 and coding is done in PICBasic Pro
Define LOADER_USED 1
define osc 4
define hpwm2_tmr 1
define ccp1_reg portc
define ccp1_bit 3
f var word
sf var word
TRISB = 0
TRISC = %01000000 ;C2 output
Cycle:
count PORTC.1,125,F ;count pulses for 1/8 second
sf = f * 312 ; f * 39* 8
case select sf
case is <=244 then hpwm 0, 127, sf
case is >= 245 then hpwm 1, 127, sf
end select
goto Cycle
with the ECT code from orthello .... i dont know why but my cluster is just showing full bars constantly. im working on that now. orthello - did u use different PICs for vss and ect? right now i'm trying to run both ECT and VSS on the same 16f877 and maybe theyre conflicting
Define LOADER_USED 1
define osc 4
define hpwm2_tmr 1
define ccp1_reg portc
define ccp1_bit 3
f var word
sf var word
TRISB = 0
TRISC = %01000000 ;C2 output
Cycle:
count PORTC.1,125,F ;count pulses for 1/8 second
sf = f * 312 ; f * 39* 8
case select sf
case is <=244 then hpwm 0, 127, sf
case is >= 245 then hpwm 1, 127, sf
end select
goto Cycle
with the ECT code from orthello .... i dont know why but my cluster is just showing full bars constantly. im working on that now. orthello - did u use different PICs for vss and ect? right now i'm trying to run both ECT and VSS on the same 16f877 and maybe theyre conflicting