User's Manual

Table Of Contents
WSL05-A0_User_Manual
Page
29
/
58
Figure 5- 7 SPI connection
After the module detects that the SPI_NSS pin is pulled low, it wakes up from sleep mode (if
in sleep mode) and begins to initialize the SPI peripherals. The peripheral controller must
wait until the BUSY pin is pulled low to start the transmission.The module will pull the BUSY
pin high again before the current byte transfer is completed. After the module receives a
byte of data and stores the data in the receive buffer it pulls the BUSY pin low again. The
peripheral controller must wait until BUSY is pulled low before transmitting the next byte. The
transmission timing is shown below:
Figure 5- 8 SPI communication timing diagram
4.3.3 Communication Port Selection
By default, the UART interface is used as a communication interface with the user's external
host. The UART interface is forced to open when the module is powered on or reset. When
both UART and SPI interfaces are enabled, the module can adaptively switch the interface
according to user input.