Anda di halaman 1dari 1

$regfile = "m8535.

dat" icro $crystal = 11059200 ency Config Kbd = Portb , Delay = 100 , Debounce = 100 $sim

' specify the used m ' used crystal frequ

Config Lcdpin = Pin , Db4 = Portc.2 , Db5 = Portc.3 , Db6 = Portc.4 , Db7 = Port c.5 , E = Portc.7 , Rs = Portc.6 Dim A As Byte Dim B As Byte Dim C As Byte 'Config Lcdbus = 4 Config Lcd = 16 * 2 n Cls Shiftlcd Shiftlcd Shiftlcd Shiftlcd 'configure lcd scree

Right Right Right Right

Locate 1 , 1 Lcd "Timer" Locate 2 , 1 Do A = Getkbd() Select Case A Case 0 : Lcd 1 Case 1 : Lcd 2 Case 2 : Lcd 3 Case 3 : Lcd "A" Case 4 : Lcd 4 Case 5 : Lcd 5 Case 6 : Lcd 6 Case 7 : Lcd "B " Case 8 : Lcd 7 Case 9 : Lcd 8 Case 10 : Lcd 9 Case 11 : Lcd "C" Case 12 : Lcd "*" Case 13 : Lcd 0 Case 14 : Lcd "#" Case 15 : Lcd "D" End Select ay Loop

'

'clear the LCD displ 'display this at the top line

Anda mungkin juga menyukai