• 0

PmodACL DSPI library for Arduino


Question

A customer on our website asked the following question:

I have buy PmodACL, I want to connect it to Arduino with SPI. But I can't find dspi.h file, would you send me? Thank you very much.

The response is below.

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hello,

You can download Digilent's SPI library from the SPI page on our Documentation site here. Alternatively, the DSPI library is included with the the chipKIT Core for the Arduino IDE.

However, the DSPI library was originally created to be streamlined for Digilent boards, so I do not think it supports non-Digilent boards (or at least I am not able to successfully compile programs that include dspi.h that are targeting an Arduino Uno). I will see if any of our applications engineers know if a library exists for the PmodACL that uses the standard SPI, but unfortunately I am personally not aware of any.

Thanks,
JColvin

Link to post
Share on other sites
  • 0

Hello,

As James wrote, you will need to port the library to your available SPI library.

PmodACL performs very simple (basic) SPI operations (read and write), therefore porting will be very easy. Just replace the calls to DSPI transfer functions with calls to SPI transfer functions.

And, after you've done it, you may chose to share your work with other potentials users.

Good luck !

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now