wina procka ?
PS Jestem nowy w te klocki więc proszę mi wybaczyć jeśli jest to jakaś banalna sprawa...
Kod: Zaznacz cały
$regfile = "m162def.dat"
$crystal = 6000000
Config Portd = Output
Config Pinb.0 = Input
Config Pinb.1 = Input
Config Pinb.2 = Input
Config Pinb.3 = Input
Config Pinb.4 = Output
Config Pinb.5 = Output
Config Pinb.6 = Output
Config Pinb.7 = Output
Config Lcdpin = Pin , Db4 = Portb.4 , Db5 = Portb.5 , Db6 = Portb.6 , Db7 = Portb.7 , E = Portd.4 , Rs = Portd.2
Cursor Off Noblink
Cls
Lcd "RESET"
Wait 1
Cls
Dim L As Byte
L = 0
Do
If Pinb.0 = 1 Then
Incr L
Cls
Lcd L
Wait 1
End If
Loop