NEW 1 LCDCMD=0 2 LCDCMD=12 10 READCLOCK 11 B=S 12 A=D 13 IF A=B 10 14 D=S 20 LCDCMD=2 25 B=9 31 A=H 32 IF A>B 34 33 LCDPRN "0" 34 LCDPRN H 35 LCDPRN ":" 41 A=M 42 IF A>B 44 43 LCDPRN "0" 44 LCDPRN M 45 LCDPRN ":" 51 A=S 52 IF A>B 54 53 LCDPRN "0" 54 LCDPRN S 60 IF P1.2=1 70 61 LCDCUR=71 62 LCDPRN "1" 70 IF P1.1=1 80 71 LCDCUR=71 72 LCDPRN "2" 80 IF P1.0=1 90 81 LCDCUR=71 82 LCDPRN "3" 90 GOTO 10 this line and the lines below are comments and can be removed with a text editor or the errors caused by trying to upload them can be ignored ------------------------------- e-lcdclk.tmb For ENHANCED Tiny Machine Basic Demonstrates how to display real time clock formatted as HH:MM:SS on the T51-LCD. Also shows last switch pressed. Notice: On the T51-LCD the characters 9-16 are at cursor positions 64-71! This is typical of many LCD displays that have various line lengths and numbers of lines.