07-07-2008 05:45 AM
07-07-2008 07:10 AM
07-08-2008 05:17 PM
Hi Sumsum,
I'm not exactly sure what your doing with your modulation but if I understand your question correctly you are wanting to slow down the rate that the single cycle timed loop is executing. You can simply use a loop timer to do this or you could decimate the timed loop rate. The loop timer would be the easiest way to do this, you just put a timer in the loop and tell it how long to wait before executing. To decimate the loop rate you will need to use a shift register and case structure inside your timed loop. There is an example of this in the knowledgebase linked here. This knowledgebase deals with a separate issue but shows how to decimate the loop rate as part of the solution.