GD32F20x User Manual
74
4.3.2.
Tamper0 detection
In order to protect the important user data, the MCU provides the tamper detection function,
and it can be independently enabled on TAMPER0 pin (PC13) by setting corresponding
TPEN0 bit in the BKP_TPCTL register. To prevent the tamper event from losing, the edge
detection is logically ANDed with the TPEN0 bit, the result is used as tamper detection signal.
So the tamper detection configuration should be set before enable TAMPER0 pin. When the
tamper event is detected, the corresponding TEF0 bit in the BKP_TPCS register will be set.
Tamper event can generate an interrupt if tamper interrupt is enabled. Any tamper event will
reset all Backup data registers.
Note:
When TPAL0 = 0/1, if the TAMPER0 pin is already high/low before it is enabled(by
setting TPEN0 bit), an extra tamper event is detected although there was no rising/falling
edge on the TAMPER0 pin after TPEN0 bit was set.
4.3.3.
Tamper1 detection
In order to protect the important user data, the MCU provides the tamper detection function,
and it can be independently enabled on TAMPER1 pin (PI8) by setting corresponding TPEN1
bit in the BKP_TPCTL register. To prevent the tamper event from losing, the edge detection
is logically ANDed with the TPEN1 bit, the result is used as tamper detection signal. So the
tamper detection configuration should be set before enable TAMPER1 pin. When the tamper
event is detected, the corresponding TEF1 bit in the BKP_TPCS register will be set. Tamper
event can generate an interrupt if tamper interrupt is enabled. Any tamper event will reset all
Backup data registers.
Note:
When TPAL1 = 0/1, if the TAMPER1 pin is already high/low before it is enabled(by
setting TPEN1 bit), an extra tamper event is detected although there was no rising/falling
edge on the TAMPER1 pin after TPEN1 bit was set.
16.1.1.
Waveform detection
MCU provides two methods of square wave detection. Send a square waveform on PC13 if
TPM1 bit is set or on PC14 if TPM2 bit is set. Receive and check square waveform on PI8 if
TPM1 bit set or on PC15 if TPM2 bit is set. When the check result is wrong, the corresponding
TEF0/TEF1 bit in the BKP_TPCS register will be set. Tamper event can generate an interrupt
if tamper interrupt is enabled. Any tamper event will reset all Backup data registers.
Note
: If enable the LXTAL, set TPM2 has no effect. If set TPM1, must set TPEN0 and TPEN1
to 0.
Содержание GD32F20 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F20x ARM Cortex M3 32 bit MCU User Manual Revision 2 2 Oct 2019 ...
Страница 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Страница 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Страница 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Страница 385: ...GD32F20x User Manual 385 ...
Страница 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...