10.07.2015 Views

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>System Clock Timing FunctionsTMGGetSpeed – Get the system clock frequencyDescription:Prototype:Inputs:Returns:Returns the system clock frequency in kHz.ushort TMGGetSpeed(void);NoneClock frequency in kHz.TMGSetSpeed – Set the system clock frequencyDescription:Prototype:Inputs:Returns:Notes:Changes the system clock to the frequency passed to it.ushort TMGSetSpeed(ushort kHz);kHz is Clock frequency in kHz.The actual clock frequency set.The system is clocked from a voltage-controlled oscillator controlled by a phase-locked loopwhich is built into the 68332.TMGSetSysClock – Set the system clock frequency with option lock wait disableDescription:Prototype:Inputs:Returns:Set the system clock frequency with option lock wait disableshort TMGSetSysClock(ushort kHz, bool dontWaitLock);kHz is Clock frequency in kHz.dontWaitLock is TRUE if you wish execution to return immediately before the PLL re-locks onthe new frequencyPrevious speed in kHzTMGSetupCLKOUTPin – Setup the CLKOUT pinDescription:Prototype:Inputs:Returns:Setup the CLKOUT pinvoid TMGSetupCLKOUTPin(bool onRunning, bool onLPSTOP);onRunning is a boolean that indicates whether CLKOUT should be on while the machine isrunningonLPSTOP is a boolean that indicates whether CLKOUT should be on while the machine is inLPSTOP modeNothingPERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.60 of 84<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>7/19/2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!