I am using the CheetahTM SPI Host Adapter and would like to use it to program an SPI device. To set this device to programming mode, I need to do the following:
The Cheetah adapter does not have GPIOs - how do I control that signal? Also, how do I send the command?
Thanks for your question! Using the Cheetah adapter, you can set the target device reset pin and the SCK pin to low for 4.7ms when you power on the device, and then sent a 4-bypte command. Although the Cheetah adapter does not have a GPIO pin, it does have three SS (SPI slave select) output signals. You can select one of the SS signals to control the reset line of your target device, and to pull the signal low for your required 4.7 ms pulse period. You can also use tud, user insertable delay, to program the desired length of the pulse period. For information about tud, timing, and other SPI signal characteristics, please refer to section 2.5 of the Cheetah SPI Host Adapter User Manual.
For controlling the signals, you can use the Cheetah Software API. With API, commands are accumulated in a queue until a call is submitted to batch shift all of the queued commands. Following is an example of a command queue for a typical SPI transaction.
For more information, please refer to the following documents:
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 submit a request for technical support.