SPLat Logo

SPxMode m

NOTICE: We are updating our website. For product enquiries and orders please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map

SPxMode m

Sets the clock rate and clock polarity for subsequent SPx and SPiceX transfers. The argument m determines the combination according to the following table:

mClock rate (Approx)Clocks on edge ..
0 1.8MHz Falling
1 920kHz Falling
2 230kHz Falling
3 58kHz Falling
4 1.8MHz Rising
5 920kHz Rising
6 (default) 230kHz Rising
7 58kHz Rising

In general, falling edge clocking suits peripherals with a microprocessor and rising edge clocking suits peripherals with hardware shift registers.

This is a low-level instruction associated with the SPLat Expansion Framework. You will most likely never need to know how to use it unless you need to implement systems with more than about 70 I/O points. There is also a tutorial on SPiceX.

This instruction is not available on any 32-bit boards prior to Dialect 30, and will only be available on those few boards that explicitly implement it.