一直都用GPIO口当SPISET用。想知道如果GPIO口配置为SPISET还需不需要手动翻转。
DSP配置为主模式,出时钟时SPISET会自动置低?
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.
一直都用GPIO口当SPISET用。想知道如果GPIO口配置为SPISET还需不需要手动翻转。
DSP配置为主模式,出时钟时SPISET会自动置低?
你好,这点在芯片TRM中有说明:
Configuring a GPIO to emulate SPISTE
In many systems, a SPI master may be connected to multiple SPI slaves using multiple instances of SPISTE. Though this SPI module does not natively support multiple SPISTE signals, it is possible to emulate this behavior in software using GPIOs. In this configuration, the SPI must be configured as the master. Rather than using the GPIO Mux to select SPISTE, the application would configure pins to be GPIO outputs, one GPIO per SPI slave. Before transmitting any data, the application would drive the desired GPIO to the active state. Immediately after the transmission has been completed, the GPIO chip select would be driven to the inactive state. This process can be repeated for many slaves which share the ***, SPISIMO, and SPISOMI lines.