www.geehy.com Page 243
Field
Name
R/W
Description
0: Rising edge
1: Falling edge
2
TPIEN
R/W
Tamper Interrupt Enable
0: Disable
1: Enable
3
TP2EN
R/W
RTC_TAMP2 Input Detection Enable
0: Disable
1: Enable
4
TP2ALCFG
R/W
RTC_TAMP2 Input Active Level Configure
When TPFCSEL!=00, this bit determines that RTC_TAMP2 will trigger a
tamper detection event when the input maintains high/low level.
0: Low level
1: High level
When TPFCSEL=00, this bit determines that RTC_TAMP2 triggers a tamper
detection event on rising/falling edge
0: Rising edge
1: Falling edge
6:5
Reserved
7
TPTSEN
R/W
Tamper Detection Event Timestamp Enable
This bit determines whether the timestamp generated by the tamper
detection event is saved
0: Not saved
1: Saved
This bit is still valid when TSEN=0 for RTC_CTRL register.
10:8
TPSFSEL
R/W
Tamper Sampling Frequency Select
These bits determine the sampling frequency of each input of RTC_TAMPx.
0x0
:
RTCCLK/32768
0x1
:
RTCCLK/16384
0x2
:
RTCCLK/8192
0x3
:
RTCCLK/4096
0x4
:
RTCCLK/2048
0x5
:
RTCCLK/1024
0x6
:
RTCCLK/512
0x7
:
RTCCLK/256
12:11
TPFCSEL
R/W
RTC_TAMPx Filter Count Select
These bits detemine the number of sampling times after which the tamper
event is activated on specific level (TAMP*TRG).
TPFCSEL is valid for each input of RTC_TAMPx.
0x0: Activate the tamper event on the edge where RTC_TAMPx input is
converted into valid level
0x1: Continuous sampling twice
0x2: Continuous sampling four
0x3: Continuous sampling eight
14:13 TPPRDUSEL R/W
RTC_TAMPx Precharge Duration Select
These bits determine the number of RTCCLK cycles which are enabled by
pull-up resistor before sampling; which is valid in each input of RTC_TAMPx.
0x0
:
1
0x1
:
2
0x2
:
4
0x3
:
8
15
TPPUDIS
R/W
RTC_TAMPx Pull-up Function Disable
This bit determines whether all RTC_TAMPx pins are precharged before
sampling.
0: Enable (internal pull-up is enabled)
1: Disable