Re: GPT Jitter
Posted: Mon Feb 29, 2016 9:56 pm
AH.... Yes, not a great solution. You end up with a really long time that your processor is tied up doing nothing but looking at its watch and waiting for something to happen...
So with PWM you will select your time and just change the frequency on each output bit. you might try 0hz for off, then what ever you want for your 0-bit and 1-bit.
Then the hardware timer handles generating your 1/0 square wave signal and you only have to pay attention every 0.8ms.
WAY easier! Plus, if you really need to save every possible mwH, you might be able to research low power mode during idle.
That is a lot of work getting it sorted out however.
Another thought is that you might be able to run the '429 at a lower clock rate. Depending on what else this processor is doing, you might be able run run it under 100Mhz.
-John
So with PWM you will select your time and just change the frequency on each output bit. you might try 0hz for off, then what ever you want for your 0-bit and 1-bit.
Then the hardware timer handles generating your 1/0 square wave signal and you only have to pay attention every 0.8ms.
WAY easier! Plus, if you really need to save every possible mwH, you might be able to research low power mode during idle.
That is a lot of work getting it sorted out however.
Another thought is that you might be able to run the '429 at a lower clock rate. Depending on what else this processor is doing, you might be able run run it under 100Mhz.
-John