DrOldies

TM4C129 Does support SPI.h with 2 SlaveSelect pins?

2 posts in this topic

Looking thru the lm4f library's SPI.h it appears that while I can instantiate 3 SPI objects (SSI1, SSI2, and SSI3), on 3 sets of pins, I cannot use any slaveSelect pin other than the default slaveSelect pin.

 

I would like to control 2 devices by using the default SS pin and a second SS2 pin. Some other boards' SPI libraries leave the SS pin control to the user, making this simple. Any suggestions?

 

 

Share this post


Link to post
Share on other sites

Hi,

Chip select pins (SSIFSS) cannot be borrowed functionally from one module to another, if you mean that. You may use those pins (or any others) as GPIO output pins and manage them manually for any module.

In your case, with only two slaves to drive, two separate GPIO output pins can be used ( or two separate modules if the protocol is not the same)

L

Share this post


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