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 4 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
Forum Posts: 7
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: 304
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
Forum Posts: 7
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: 33

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

John: 18

RTSLVU: 15

Dan6077: 11

Member Stats:

Guest Posters: 0

Members: 80

Moderators: 0

Admins: 3

Forum Stats:

Groups: 1

Forums: 2

Topics: 58

Posts: 289

Newest Members: Geraldkix, ThomasSoogs, Angelvor, AngelaMuh, Nsneilohone

Administrators: geadmin: 5, filipealtoe: 35, Steffan: 89