Jump to content
Dawid

NI USB 845x SPI Problem

Recommended Posts

Hello everyone,

 

I have a small problem with SPI communication. I'm using NI USB 8452 module and LabView 2013 with driver NI USB 845x 14.0. As a first step I ran the example from attached library called "Atmel AT25080A Write.vi". The problem manifests as logic "0" all the time on MOSI and MISO lines. No Data transferred. CS and CLK works properly. I never use pull ups when using SPI but maybe I should? The question is did anybody meet the same problem while using this usb 8452 module? All 4 SPI lines connected directly to oscilloscope. Waiting for any reply. Thanks in advance.

 


 

post-52806-0-61598700-1421671811_thumb.p

post-52806-0-76281800-1421671934_thumb.j

Share this post


Link to post
Share on other sites

I have never used a NI USB 8452 but......

 

According to the manual it has on board pull up resistors that need to be enabled for Vref ≤ 1.8 V. Whats your Vref?

Share this post


Link to post
Share on other sites

Thanks for answers!

 

I have never used a NI USB 8452 but......

 

According to the manual it has on board pull up resistors that need to be enabled for Vref ≤ 1.8 V. Whats your Vref?

 

Yes, there is info about that, but in my opinion refers mostly to I2C communication where you have to externally pull up the SDA and SCL lines. The Vref is an output pin which you can use to pull something up (not used in my application). Used mostly when you want to shift level logic between 845x and device connected. When using SPI, you are selecting I/O Voltage Level which is in my opinion the same thing, but you are doing it inside 845x. There is no info in datasheet regarding pulling up SPI lines. I see it this way.

 

 

Don't you hook it up to a device?

 

Don't understand. You mean it will not work without any device connected? I think I should see the signal on MOSI Output even if nothing is connected.

 

 

Anyway! I found the solution. The NI 8452 module I use last time is damaged! I have in my company few of them, I took the next one and problem disappears.

 

Conclusion:

Properly installed device with proper driver for your LabView version (very important) should be enough to run SPI example and see how it's working.

http://digital.ni.com/public.nsf/allkb/3F9B7A67207EF793862574BF00764C9F

Edited by Dawid

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.