Other Parts Discussed in Thread: SYSCONFIG
Hello team :
I want to use sample code (SPI master) to connect multiple slave.
How do i reconfigure chip select pin for different slave?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello team :
I want to use sample code (SPI master) to connect multiple slave.
How do i reconfigure chip select pin for different slave?
Hi JAN,
thanks for your reply.
I already setting 3-wire mode.But I don't know how to asign specific pin (ex:pin 04) to be CS
SMITH
Hi,
Just setup pin as GPIO in Sysconfig or pinmux. And before your SPI transaction you should set this GPIO pin to low using GPIO TI driver APIs. After SPI operation set this pin manually to high and move to next CS pin...
Jan
Hi JAN,
I already setting GPIO in Sysconfig, and control GPIO's low and high.But I doesn't get any response from SPI slave.
Any other setting I need to do ?
And I also try 4-wired SPI mode, It's work.
Smith
Hi,
I am not sure what may to be wrong. Please check your SPI pins and CS via logic analyser. Do you see expected SPI communication at MISO, MOSI, CLK and CS controlled by GPIO?
Jan
Hi,JAN
I found that I misuse GPIO Wrtie function, after correct it I can communicate with multiple SPI slave via 3-wire SPI mode.
thanks a lot .
Smith.
Hi Smith,
Thank you for a update. It is good to hear that you was able to resolve your issue.
Jan