
$regfile = "m8def.dat"
$crystal = 16000000
Config Pind.0 = Output
Config Pind.1 = Output
Config Pind.2 = Output
Config Pind.3 = Output
Config Pind.4 = Output
Config Pind.5 = Output
Config Pind.6 = Output
Config Pind.7 = Output
Dim A As Byte
Dim K As Integer
Do
For K = 1 To 60
A = Lookup(k , Tab)
Portd = A
Next K
Loop
End
Tab:
Data 63 , 70 , 76 , 82 , 89 , 94 , 100 , 105 , 110 , 114 , 118 , 121 , 123 , 125 , 126 , 126 , 126 , 125 , 123 , 121 , 118 , 114 , 110 , 105 , 100 , 95 , 89 ,
Data 83 , 76 , 70 , 63 , 57 , 50 , 44 , 37 , 32 , 26 , 21 , 16 , 12 , 9 , 6 , 3 , 1 , 0 , 0 , 0 , 1 , 3 , 5 , 8 , 12 , 16 , 21 , 26 , 31 , 37 , 43 , 50 , 56 , 62