Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

NI USB-8452 SPI clock rate

$
0
0

Hello everyone,

I have a NI USB-8452 SPI device, and the hardware and software manual states that the supported clock rates for SPI for this device are:

48 kHz, 50 kHz, 60 kHz, 75 kHz, 80 kHz, 96 kHz, 100 kHz, 120 kHz, 125 kHz, 150 kHz, 160 kHz, 200 kHz, 240 kHz, 250 kHz, 300 kHz, 375 kHz, 400 kHz, 480 kHz, 500 kHz, 600 kHz, 750 kHz, 800 kHz, 1 MHz, 1.2 MHz, 1.5 MHz, 2 MHz, 2.4 MHz, 3 MHz, 4 MHz, 6 MHz, 12 MHz

However if I use ni845xSpiConfigurationSetClockRate to set the clock rate to 1 (meaning 1 KHz) there is no error. If I retrieve the current clock rate with ni845xSpiConfigurationGetClockRate it confirms that the current clock rate is 1 KHz.

Even weirder is that if I set the clock rate to 48 (which the manual says that the board supports), I get an error:

"The passed-in clock rate was lowered to a clock rate value that the hardware supports. Refer to your hardware documentation for supported clock rates."

If I set to 15KHz it gives me the same error. For clock rates of 2, 3, 5, 10, 20, 100 or 1000 KHz it does not complain.

Am I missing something? It seems that the driver behavior does not match what is specified in the manual.

Best regards,
André


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>