5.5.13 Set UART TX Indication (STI,<hex8>,<hex8>)
Format: STI,<hex8>,<hex8>
This command is to configure the settings of the UART TX indication. The UART TX indication is to wake up the host MCU prior to UART data, so that the host MCU can receive data correctly. The first parameter is the host MCU wake-up waiting time T1. This time indicates the wait time for the host MCU, which is ready to receive data. The maximum value is 10 and the value ‘0
’ means the host MCU does not enter Sleep mode, and there is no need for a pin to wake it up. The optional second parameter T2 is the time to keep the TX indication after UART data. The unit of both parameters is millisecond (ms). The range of the optional second parameter T2 is from 1-255 ms. The dedicated pin of the UART TX indication is PA2.
Default: | 00,03 | |
Example: | STI,01,05 | // Set host MCU wake-up waiting time to 1 ms // Set the keeping time to 5 ms |
Response: | AOK | // Success |
Err | // Syntax error or invalid parameter | |
Note: The PDS stores these parameters. The parameters are effective immediately without a reboot. |