tmarko
07-03-2009, 02:46 PM
Hello, I have problem.
I want to sending 2 different high frequency pulses (propeller must run high·XTAL1 + PLL16X frequency during generating pulses) in differnet·periods. So i am using·two cogs.·Delays betwen pulses of one frequency must be synchronized.
During delays, for battery saving,·I·need to·change·propeller frequency to low XTAL1.
The problem is that when the CLKFREQ of propeller is changed to high freq during delay, CNT is rising faster and the delay is shorter.
So if I start·WAITCNT·delay after first pulse(low freq on XTAL1) and send signal from secound cog during waiting(high freq) delay will be shorter.
Have you got some idea how to sort out this problem? thanks
I want to sending 2 different high frequency pulses (propeller must run high·XTAL1 + PLL16X frequency during generating pulses) in differnet·periods. So i am using·two cogs.·Delays betwen pulses of one frequency must be synchronized.
During delays, for battery saving,·I·need to·change·propeller frequency to low XTAL1.
The problem is that when the CLKFREQ of propeller is changed to high freq during delay, CNT is rising faster and the delay is shorter.
So if I start·WAITCNT·delay after first pulse(low freq on XTAL1) and send signal from secound cog during waiting(high freq) delay will be shorter.
Have you got some idea how to sort out this problem? thanks