سلام :angry: :applause: :cry2: :read:
میتونین بگین چرا این کانتر وقتی سر ریز میشه به b اضافه نمیکنه؟یا اونو نشون نمیده؟(البته افزایش counter0 رو lcdنشون داده میشه)
$regfile "m32def.dat"
$crystal = 12000000
Dim B As Byte
Config Timer0 = Counter , Edge = Rising
Enable Interrupts
On Counter0 Ali
Counter0 = 250
Do
Locate 1 , 1
Lcd Counter0
Loop
End
Ali:
Incr B
Locate 1 , 5
Lcd B
Return
تنظیمات lcd رو از تو بسکام انجام دادم که اون درسته
:angry:
میتونین بگین چرا این کانتر وقتی سر ریز میشه به b اضافه نمیکنه؟یا اونو نشون نمیده؟(البته افزایش counter0 رو lcdنشون داده میشه)
$regfile "m32def.dat"
$crystal = 12000000
Dim B As Byte
Config Timer0 = Counter , Edge = Rising
Enable Interrupts
On Counter0 Ali
Counter0 = 250
Do
Locate 1 , 1
Lcd Counter0
Loop
End
Ali:
Incr B
Locate 1 , 5
Lcd B
Return
تنظیمات lcd رو از تو بسکام انجام دادم که اون درسته
:angry:
دیدگاه