1 out of 1 members found this post helpful.
Did you find this post helpful?

|
Re: Select case function
If I may ask, how to know the time it took from the start to end of a for/next loop or select case in a program
Depends on what's available. I usually just set a pin high at the start and low again at the end of the routine I want to measure and then look at the pin using a scope or logic analyzer. Another option is to use one of the hardware timers and send the result to the PC using whatever serial connection is available (DEBUG, SEROUT, HSEROUT) but for longer routines one has to be little bit careful as to not overflow the timer and therefor get misleading values.
/Henrik.
Bookmarks