Too long of a 'waitcnt' step is causing the counter module to sit idle
GenRev
Posts: 9
Hello:
I placed a·'waitcnt' step between two·Repeat loops that utilize the counter module.· If the 'waitcnt' is too long (~ more than 20ms), the counter module in the following Repeat loop does not execute for about 53 seconds, but it does execute·the following·serial terminal 'debug' step.· This seems relelated to the system counter, but I'm not sure why the 'waitcnt' step is affecting the counter module.
Running the attached code with the serial terminal should illustrate the problem I'm having.
Thanks!
Mike
I placed a·'waitcnt' step between two·Repeat loops that utilize the counter module.· If the 'waitcnt' is too long (~ more than 20ms), the counter module in the following Repeat loop does not execute for about 53 seconds, but it does execute·the following·serial terminal 'debug' step.· This seems relelated to the system counter, but I'm not sure why the 'waitcnt' step is affecting the counter module.
Running the attached code with the serial terminal should illustrate the problem I'm having.
Thanks!
Mike
spin
5K
Comments