07-17-2006 11:53 AM
07-17-2006 02:11 PM
07-18-2006 11:16 AM
07-18-2006 01:03 PM
One point of clarification. The normal while loop using a loop timer to control the rate will not give you a compile error if the loop cannot execute in the rate you specify.
For instance, if you set the loop timer to take 4 ticks, but the code within the loop takes 10 ticks, than the loop will actually run at 10 ticks. However if you change the loop timer to take 15 ticks and the code with the loop takes 10 ticks, than the loop will run every 15 ticks.
You will however get compile errors if you cannot execute code in a Timed Loop within a single clock cycle. This occurs generally if a function takes multiple cycles to execute, or has arbitration. As Efosa said the IO in the Timed needs to have the arbitration turned off in order to be able to run in a SCTL.
Regards,
Joseph D.
07-18-2006 03:50 PM