2008-06-25 08:30 AM
How to program a Interrupt for a stop watch
2011-05-17 12:54 AM
Hi everybody!
I know this must be a small problem but as a beginner I just don't know how to configure an Interrupt. The interrupt should inkrement a variable every 0.1 ms. The variable would then serve me as basic for my stop watch.Code:
if (Interrupt) overflow++; if(overflow>=10){ overflow=0; millisec++;} if(millisec>=100) overflow=0; sec++;} and so on My board: MCBSTR-9 Best wishes adrian