Elektro Garage
Newbie
- Joined
- Nov 28, 2023
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Location
- Rawalpindi Pakistan
- Activity points
- 16
I am using the Counter on Button and Count on depressing the button, which means on falling edge. After lots of searching and different experiments, I have done it.
MikroC code chunk:
while(1)
{// UP counting using Falling Edge
led=0;
if(up==1){up_pr++;}
if(up==0 && up_pr>=1){count++;led=1;Delay_ms(100);up_pr=0;}
for more details, You can Visit this Link
MikroC code chunk:
while(1)
{// UP counting using Falling Edge
led=0;
if(up==1){up_pr++;}
if(up==0 && up_pr>=1){count++;led=1;Delay_ms(100);up_pr=0;}
for more details, You can Visit this Link