Mike - K8LH
Well-Known Member
To suppress the leading zero for 01.2 to 09.9 volts, I think you would just need to insert a couple lines. Can you try this?
Code:
fire_MSD
btfss INDEX,0 ;âûáîð ÷åòâåðêè ñåãìåíòîâ äëÿ îòîáðàæåíèÿ
goto fire_MSD_A
fire_MSD_C
movf D1,w
bz display_end ; <------------------------
call LEDTABLE_C
iorwf PORTC,f
btfsc mode ;ðåæèì èçìåðåíèÿ íàïðÿæåíèÿ?
goto display_end ;íåò, èçìåðåíèå òîêà
Bank1 ;äà, çàñâå÷èâàåì òî÷êó âî 2-ì ðàçðÿäå
movlw TRIS_C_dot_ON
movwf TRISC
Bank0
bsf coma
goto display_end
fire_MSD_A
movf D1,w
bz display_end ; <------------------------
call LEDTABLE_A
movwf PORTA
goto display_end