Hello,
I have a cc2540 device, powered by a pwm-signal with varying pause times, which is continuously scanning. There are some back-up capacitors on the board, but I still have to conserve some power to keep it running through longer pause times. For this I want to stop my device from scanning on each falling edge and let it start on each rising edge again if the pause time is longer than 2 ms. the pwm-frequency lies between 70 Hz and 300 Hz.
I have an interrupt which is triggered by the external pwm. I found I can't start and stop scanning directly from the interrupt routine. I tried to set an event, but the delay for the execution of the event-handler was often bigger than 1 ms which is too slow. So I wonder if there is any faster way to start and stop scanning accurately. Especially the stopping needs to be accurate.
I set the scan -window and -interval to 4 ms each. I need to have my device scan as continuously as possible.
Any idea?
Thanks in advance and please tell me if you need any further information.
Robin