通过配置WKUPCT_ENABLE_IRQ()函数并在RX行上发送字符,可以通过UART唤醒DA14580通过UART唤醒。Although, this approach to design isn’t valid enough, because the DA14580 isn’t able to receive any character, since when the character arrives the device will still be in sleep mode, so the character that would wake up the device will be lost. Also, the XTAL16 won’t be powered up and the device won’t have a valid clock in order to receive the data through UART. The waking up of the device and the powering up of the XTAL doesn’t occur immediately. A valid implementation would be if you have additional connection in order to send a signal to indicate that the device would be ready to receive data. So you can wake up your device through UART and when it is ready to receive data it would signal that to the external device. Something similar to the handshaking of RTS/CTS signal of the UART. One other idea for this kind of implementation, but more tricky than previous would be to use single connection and do the handshaking using characters. Be aware that in a single connection the protocol would require operating the UART as Rx and Tx in different time slots.
嗨Wisilica,
通过配置WKUPCT_ENABLE_IRQ()函数并在RX行上发送字符,可以通过UART唤醒DA14580通过UART唤醒。Although, this approach to design isn’t valid enough, because the DA14580 isn’t able to receive any character, since when the character arrives the device will still be in sleep mode, so the character that would wake up the device will be lost. Also, the XTAL16 won’t be powered up and the device won’t have a valid clock in order to receive the data through UART. The waking up of the device and the powering up of the XTAL doesn’t occur immediately. A valid implementation would be if you have additional connection in order to send a signal to indicate that the device would be ready to receive data. So you can wake up your device through UART and when it is ready to receive data it would signal that to the external device. Something similar to the handshaking of RTS/CTS signal of the UART. One other idea for this kind of implementation, but more tricky than previous would be to use single connection and do the handshaking using characters. Be aware that in a single connection the protocol would require operating the UART as Rx and Tx in different time slots.
谢谢,PM_DIALOG.