GD32W51x User Manual
409
16.3.14.
Tamper detection
The RTC_TAMPx pin input can be used for tamper event detection under edge detection
mode or level detection mode with configurable filtering setting.
RTC backup registers (RTC_BKPx)
The RTC backup registers are located in the VDD backup domain that remains powered-on
by V
BAT
even if V
DD
power is switched off. The wake up action from Standby Mode or System
Reset does not affect these registers.
These registers are only reset by detected tamper event and backup domain reset.
Tamper detection function initialization
RTC tamper detection function can be independently enabled on tamper input pin by setting
corresponding TPxEN bit. Tamper detection configuration is set before enable TPxEN bit.
When the tamper event is detected, the corresponding flag (TPxF) will assert. Tamper event
can generate an interrupt if tamper interrupt enable (TPIE) is set.
The backup registers are reset when a tamper detection event occurs except if the
TAMPxNOER bit is set in the RTC_TAMP register. The backup registers and the device
secrets erased by tamp_erase signal can be reset by software by setting the BKERASE bit
in the RTC_TAMP register
Timestamp on tamper event
The TPTS bit can control whether the tamper detection function is used as time-stamp
function. If the bit is set to 1, the TSF bit will be set when the tamper event detected as if
“enable” the time-stamp function. Whatever the TPTS bit is, the TPxF will assert when tamper
event detected.
Edge detection mode on tamper input detection
When FLT bit is set to 0x0, the tamper detection is set to edge detection mode and TPxEG
bit determines the rising edge or falling edge is the detecting edge. When tamper detection is
under edge detection mode, the internal pull-up resistors on the tamper detection input pin
are deactivated.
Because of detecting the tamper event will reset the backup registers (RTC_BKPx), writing
to the backup register should ensure that the tamper event reset and the writing operation will
not occur at the same time, a recommend way to avoid this situation is disable the tamper
detection before writing to the backup register and re-enable tamper detection after finish
writing.
Note:
Tamper0 detection is still running when V
DD
power is switched off if tamper is enabled.
Содержание GD32W515 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32W51x Arm Cortex M33 32 bit MCU User Manual Revision 1 0 Nov 2021 ...
Страница 66: ...GD32W51x User Manual 66 Bits Fields Descriptions 31 0 UNIQUE_ID 95 64 Unique device ID ...
Страница 389: ...GD32W51x User Manual 389 The FWDGT timeout can be more accurate by calibrating the IRC32K ...
Страница 504: ...GD32W51x User Manual 504 ...
Страница 710: ...GD32W51x User Manual 710 ...