How to Sleep for T ms

29 May 2011

I'm wanting to sleep the processor by a function similar to wait_ms(). The problem I have is that I'm sampling a signal at 100Hz, and I want to reduce power consumption as much as possible, so sleep between samples (if possible) would be ideal. How would I go about doing this? It has to be sample on interrupt correct, but I don't want to use the RTC to interrupt.