I2C SPI USB CAN eSPI Cable Testing View All Videos Quick Start Guides Software Downloads App Notes White Papers User Manuals Knowledge Base Sales Support About Us
Products Blog Sales Support Contact Search
What Are My Options for Sending Commands at Specific Intervals with the Cheetah SPI Host Adapter?
Rena

Question from the Customer:

I’m using the Cheetah SPI Host Adapter to send command frames at specific intervals.  It appears the Cheetah adapter has a scheduler based sleep function in cheetah.dll which is currently set at a tick rate of 1 ms. For my project, I need to send command frames every 2 ms. Do you have a multimedia timer or some other way to schedule the sleep function?

Response from Technical Support:

Thanks for your question! You are on the right path. With the Cheetah Software API, you have the ability to customize many operations, including the sleep function. The ch_sleep_ms is a convenient cross-platform function to sleep the current thread using standard operating system functions

Cheetah-250 Figure 1: Cheetah SPI Host Adapter

For the control you are seeking, sending commands at 2 ms intervals, we recommend using other API command functions: ch_spi_queue_delay_ns and ch_spi_queue_delay_cycles. These functions can be used  to queue a delay after an SPI frame. For more information about these commands, please refer to the API Documentation section of the Cheetah SPI Host Adapter Manual. Also, functional examples are provided with the API, which can be used as is or modified for your specifications.

Additional resources that you may find helpful include the following:

We hope this answers your question. If you have other questions about our host adapters or other Total Phase products, feel free to email us at sales@totalphase.com, or if you already own one of our devices and have a technical question, please submit a request for technical support.