What can be a good solution for a very low speed counter? 2 pulse per sec.
loop:
If flagA=1 then goto check_low_pulse
If porta.o = 1 then flagA = 1
goto loop
check_low_pulse:
If porta.0 = 0 then
flagA=0
count1=count1 + 1
endif
goto loop
What can be a good solution for a very low speed counter? 2 pulse per sec.
loop:
If flagA=1 then goto check_low_pulse
If porta.o = 1 then flagA = 1
goto loop
check_low_pulse:
If porta.0 = 0 then
flagA=0
count1=count1 + 1
endif
goto loop
Bookmarks