how to code switch inputs for pic16f877a

General discussion on mikroBasic.
Post Reply
Author
Message
sheth_ka
Posts: 2
Joined: 04 Sep 2009 04:07

how to code switch inputs for pic16f877a

#1 Post by sheth_ka » 05 Sep 2009 03:18

hi all,

can someone help me how to code switch or input on mikrobasic??i use pic16f877a microcontroller and i dont have any idea on how i could add switches on my project..actually i'm currently developing a count down timer (10min,20min,and 5min)..i need to add switches that will set 10min,20min,and 5min and switches that will control the pause and start of the time..i'm also new on using the mikrobasic..ive heard about the interrupts for mikrobasic,but i cant understand the syntax..hope you could help with my problem,thanks in advanced..

xor
Posts: 5465
Joined: 18 May 2005 00:59
Location: NYC
Contact:

#2 Post by xor » 05 Sep 2009 20:36

I have posted numerous timing code examples in mB over the years. Maybe this example will help you along:
http://www.mikroe.com/forum/viewtopic.p ... torder=asc
[color=darkred][b]xor[/b][/color]
[url=http://circuit-ed.com]CircuitED -[/url]

Post Reply

Return to “mikroBasic General”