In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tdg8934 wrote: Try adding what is in bold to your subroutines below: [code] ' Display timer in MM.SS (00.00 .. 59.59) format with solid DP SUB CLOCK_MMSS ' display mins & secs tmpB1 = mins / 10 ' get 10's digit tmpB2 = __REMAINDER ' save 1's digit READ SegMap + tmpB1, display(3) READ SegMap + tmpB2, display(2) display(2) = display(2) | DecPnt ' add DP to hr01 digit tmpB1 = secs / 10 tmpB2 = __REMAINDER READ SegMap + tmpB1, display(1) READ SegMap + tmpB2, display(0) [b]IF display(0) = %00111111 THEN ' if 1st digit is a 0 then blank display(0) = %00000000 ENDIF[/b] HIGH LED PAUSE 500 LOW LED PAUSE 500 IF TmrEnable = TmrRun THEN GOTO Main ELSE ChangeSec ENDIF ENDSUB ' ------------------------------------------------------------------------- ' Display timer in HH.MM (00.00 .. 23.59) format with blinking DP CLOCK_HHMM: ' display hours & mins tmpB1 = hrs / 10 tmpB2 = __REMAINDER READ SegMap + tmpB1, display(3) READ SegMap + tmpB2, display(2) IF blink = Yes THEN display(2) = display(2) | DecPnt ' blink DP on hr01 digit ENDIF tmpB1 = mins / 10 tmpB2 = __REMAINDER READ SegMap + tmpB1, display(1) READ SegMap + tmpB2, display(0) [b] IF display(0) = %00111111 THEN ' if 1st digit is a 0 then blank display(0) = %00000000[/b] [b] ENDIF[/b] HIGH LED PAUSE 500 LOW LED PAUSE 500 IF TmrEnable = TmrRun THEN GOTO Main ELSE ChangeMin ENDIF ENDSUB [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=386206#m386230 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)