Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20696

BASCOM-AVR : Impulse counting : REPLY

$
0
0
How about an external interrupt and a software counter. [code:1:82a2b8b7dd]Dim Mycounter As Word On Int0 Int0_isr Enable Int0 Enable Interrupts Do Loop End Int0_isr: If Pinx.y = 1 Then Incr Mycounter Else Decr Mycounter Return [/code:1:82a2b8b7dd]

Viewing all articles
Browse latest Browse all 20696


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>