SPI Transfer vi CS pin not doing anything | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar
Please consider registering
guest
sp_LogInOut Log In sp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
SPI Transfer vi CS pin not doing anything
March 1, 2017
12:53 pm
Avatar
ddowning1327
Member
Members
Forum Posts: 8
Member Since:
August 1, 2016
sp_UserOfflineSmall Offline

Hello, I am trying to communicate with an AD board via SPI but I am having a problem with the SPI Transfer vi.  I set the CS pin to 8 but pin 8 does not do anything when I call the vi.  I got around this by manually pulsing the CS pin before calling the SPI Transfer vi.  Has anyone else had this problem?

March 3, 2017
5:40 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

What type of board are you using?  If it is the Due, there are only certain allowable CS pins and 8 is not one of them.  The only pins allowed on the Due are 4, 10, 52, and 54.  Otherwise, for standard Arduino boards this API just configures it as a digital I/O as you are doing manually, so you should not have to do this and pin 8 should work.  Take a look at the included SPI example and the help for SPI Open Express.vi which explains how the CS works.

March 3, 2017
7:33 pm
Avatar
ddowning1327
Member
Members
Forum Posts: 8
Member Since:
August 1, 2016
sp_UserOfflineSmall Offline

Yes, you are correct.  I am using the Due so I had to switch it to pin 10.  Thank you.  

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
1
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrol
Administrators: geadmin: 22, filipealtoe: 96, Steffan: 356