40. Tamper and backup registers (TAMP)
40.1 TAMP introduction
The anti-tamper detection circuit is used to protect sensitive data from external attacks. 32 32-bit backup registers are retained in all low-power modes. The backup registers, as well as other secrets in the device, are protected by this anti-tamper detection circuit with 3 tamper pins and 6 internal tampers. The external tamper pins can be configured for edge detection, or level detection with or without filtering.
40.2 TAMP main features
- • A tamper detection can optionally erase the backup registers, SRAM2, ICACHE, and cryptographic peripherals. The device resources protected by tamper are named “device secrets”.
- • 32×32-bit backup registers
- • Up to 3 tamper pins for 3 external tamper detection events:
- – Passive tampers: ultra-low power edge or level detection with internal pull-up hardware management.
- – Configurable digital filter.
- • 6 internal tamper events to protect against transient attacks
- • Each tamper can be configured in two modes:
- – Confirmed mode: immediate erase of secrets on tamper detection, including backup registers erase
- – Potential mode: most of the secrets erase following a tamper detection are launched by software
- • Any tamper detection can generate a RTC timestamp event.
- • Tamper configuration and backup registers privilege protection
40.3 TAMP functional description
40.3.1 TAMP block diagram
Figure 562. TAMP block diagram

1. The number of external and internal tampers depends on products.
40.3.2 TAMP pins and internal signals
Table 399. TAMP input/output pins
| Pin name | Signal type | Description |
|---|---|---|
| TAMP_INx (x = pin index) | Input | Tamper input pin |
Table 400. TAMP internal input/output signals
| Internal signal name | Signal type | Description |
|---|---|---|
| tamp_ker_ck | Input | TAMP kernel clock, connected to rtc_ker_ck and also named RTCCLK in this document |
| tamp_pclk | Input | TAMP APB clock, connected to rtc_pclk |
| tamp_itamp[y] (y = signal index) | Inputs | Internal tamper event sources |
| tamp_evt | Output | Tamper event detection flag (internal or external tamper), whatever confirmed or potential mode configuration. |
| tamp_potential | Output | Potential tamper detection signal, used for device secrets(1) protection. This signal is active when: – a tamper event detection flag (internal or external tamper), is generated in potential mode. – or a software request is done by writing BKBLOCK to 1 |
| tamp_confirmed | Output | Confirmed tamper detection signal, used for device secrets(1) protection. This signal is active when: – a tamper event detection flag (internal or external tamper), is generated in confirmed mode. – or a software request is done by writing BKERASE to 1 |
| tamp_it | Output | TAMP interrupt (refer to Section 40.5: TAMP interrupts for details) |
| tamp_trg[x] (x = signal index) | Output | Tamper detection trigger |
1. Refer to Table 401: TAMP interconnection.
The TAMP kernel clock is usually the LSE at 32.768 kHz although it is possible to select other clock sources in the RCC (refer to RCC for more details). The TAMP kernel clock is required only for external tamper inputs level with filtering, and for external active tamper detection modes. Internal tampers detection and external tampers inputs edge detection are functional without requiring any kernel clock.
Read and write access to backup registers and all other TAMP registers are also functional without any kernel clock (only APB clock is needed).
Some detections modes are not available in some low-power modes depending on the selected clock (refer to for more details).
Table 401. TAMP interconnection| Signal name | Source/Destination |
|---|---|
| tamp_evt | rtc_tamp_evt used to generate a timestamp event |
| tamp_potential | The tamp_potential signal is used to block the read and write accesses to the device secrets listed hereafter:
The RHUK (root hardware unique key) in system flash memory hardware bus to SAES is blocked. The tamp_potential signal is used to erase the device secrets listed hereafter:
The device secrets access is blocked when erase is ongoing. |
| tamp_confirmed | The tamp_confirmed signal is used to erase the device secrets listed hereafter:
The device secrets access is blocked when erase is ongoing. The RHUK (root hardware unique key) in system flash memory hardware bus to SAES is blocked. |
| tamp_itamp3 | LSE monitoring (LSECSS)(1) |
| tamp_itamp4 | HSE monitoring (CSS)(2) |
| tamp_itamp5 | RTC calendar overflow (rtc_calovf) |
| tamp_itamp6 | Unexpected debug activation |
| tamp_itamp9 | Cryptographic peripherals fault (AES or SAES or PKA or TRNG)(3) |
| tamp_itamp11 | IWDG reset when tamper flag is set (potential tamper timeout) |
- 1. This monitoring must be enabled by setting LSECSSON in RTC domain control register (RCC_RTCCR).
- 2. This monitoring must be enabled by setting HSECSSON in RCC control register (RCC_CR).
- 3. Only TRNG on STM32C53x/C54x/C55x/C56x.
40.3.3 GPIOs controlled by the RTC and TAMP
Refer to Section 39.3.3: GPIOs controlled by the RTC and TAMP.
40.3.4 TAMP register write protection
After system reset, the TAMP registers (including backup registers) are protected against parasitic write access by the DRTCP bit in the power control peripheral (refer to the PWR
power control section). DRTCP bit must be set in order to enable TAMP registers write access.
40.3.5 Backup registers protection zones
The backup registers protection is configured thanks to BKPRW[7:0] and BKPW[7:0] (refer to the figure below):
Figure 563. Backup registers protection zones

| Protection Zone 3 | TAMP_BKPI(1)R |
| Protection Zone 2 | TAMP_BKPtR (t = BKPW) TAMP_BKPzR (z = BKPW-1) |
| Protection Zone 1 | TAMP_BKPyR (y = BKPRW) TAMP_BKPxR (x = BKPRW-1) |
| TAMP_BKP0R |
MSv67557V1
1. I = last backup register index
40.3.6 TAMP privilege protection modes
By default after a backup domain power-on reset, all TAMP registers can be read or written in both privileged and unprivileged modes, except for the TAMP privilege configuration register (TAMP_PRIVCFGR) which can be written in privilege mode only. The TAMP protection configuration is not affected by a system reset.
- • When the TAMPPRIV bit is set in the TAMP_PRIVCFGR register:
- – Writing the TAMP registers is possible only in privilege mode, except for the backup registers which have their own protection setting.
- – Reading TAMP_CFGR, TAMP_PRIVCFGR is always possible in privilege and unprivilege modes. All the other TAMP registers can be read only in privileged mode, except for the backup registers which have their own protection setting.
- • When the CNT1PRIV bit is set in the TAMP_PRIVCFGR register: the TAMP_COUNT1R can be read and written only in privilege mode, and CNT1SEC can be written only in privilege mode.
- • When the BKPRWPRIV is set in the TAMP_PRIVCFGR register: the BKPW can be written only in privilege mode.
- • When the BKPWPRIV is set in the TAMP_PRIVCFGR register: the BKPRW and BKPW can be written only in privilege mode.
The backup registers protection is configured thanks to BKPRW[7:0] and BKPRWPRIV for the protection zone 1, and thanks to BKPRW[7:0], BKPW[7:0] and BKPWPRIV for the protection zone 2 (refer to Figure 563).
A unprivileged access to a privileged-protected register is denied:
- • There is no bus error generated.
- • When write protected, the bits are not written.
- • When read protected they are read as 0.
40.3.7 Tamper detection
The tamper detection main purpose is to protect the device secrets from device external attacks. The detection is made on events on TAMP_INx (x = pin index) I/Os, or on internal monitors detecting out-of-range device conditions.
The tamper detection can be configured for the following purposes:
- • erase the backup registers and other device secrets stored in SRAMs or peripherals listed in Table 401: TAMP interconnection
- • block the read/write access to the backup registers and other device secrets stored in SRAMs or peripherals listed in Table 401: TAMP interconnection
- • generate an interrupt, capable to wake-up from low-power modes
- • generate a hardware trigger for the low-power timers, or a RTC timestamp event
The external I/Os tamper detection supports passive mode: TAMP_INx I/Os are monitored and a tamper is detected either on edge or level.
A digital filter can be applied on external tamper detection to avoid false detection. In addition, it is possible to configure each tamper source in potential mode, so that the secrets erase is not launched by hardware on tamper detection. The secrets erase can then be launched by software after software checks.
40.3.8 TAMP backup registers and other device secrets erase
The backup registers (TAMP_BKPxR) are not reset by system reset or when the device wakes up from Standby mode.
The backup registers and the other device secrets are not reset when the corresponding mask is set (TAMPxMSK=1 in the TAMP_CR2 register).
Note: The backup registers are also erased when the readout protection of the flash is changed from level 1 to level 0.
Tamper detection – confirmed mode
The confirmed mode is selected for TAMPx (external tamper x) when TAMPxPOM = 0 in the TAMP_CR2 register. The confirmed mode is selected for ITAMPx (internal tamper x) when ITAMPxPOM = 0 in the TAMP_CR3 register. The effects of a tamper detection in confirmed mode are described with tamp_confirmed signal in the Table 401: TAMP interconnection.
This mode is selected to erase automatically the device secrets when the tamper is detected.
Tamper detection – potential mode
The potential mode is selected for TAMPx (external tamper x) when TAMPxPOM = 1 in the TAMP_CR2 register. The potential tamper mode is selected for ITAMPx (internal tamper x) when ITAMPxPOM = 1 in the TAMP_CR3 register. The effects of a tamper detection in potential mode are described with tamp_potential signal in the Table 401: TAMP interconnection.
This mode is selected to avoid irreversible erasure of some device secrets when the tamper is detected. In this mode, some device secrets are not erased when the corresponding tamper event is detected. In addition, the read and write accesses to these device secrets are blocked as soon as the tamper detection flag is set in potential mode, until this flag is cleared by setting the corresponding clear flag in the TAMP_SCR register. Therefore the software can perform some checks to discriminate false from true tampers, and decide to launch secrets erase only in case of the potential tamper is confirmed to be a true tamper. The device secrets are erased by software by setting the BKERASE bit in the TAMP_CR2 register.
Potential tamper to confirmed tamper timeout
Some internal tampers generate a tamper event if the independent watchdog reset occurs when another tamper flag is set (refer to Table 401: TAMP interconnection). The IWDG tamper must be configured with ITAMPxPOM = 0. This permits the erasure of device secrets to be forced by hardware after a timeout, in case the previous tamper event was in potential mode. This is equivalent to change the “potential tamper” into “confirmed tamper” if a watchdog reset occurs before any software decision following the potential tamper event.
Device secrets access blocked by software
By default, the device secrets can be accessed by the application, except if a tamper event flag is detected: the device secrets access is not possible as long as a tamper flag is set.
It is possible to block the access to the device secrets by software, by setting the BKBLOCK bit of the TAMP_CR2 register. The device secrets access is possible only when BKBLOCK = 0 and no tamper flag is set.
40.3.9 Tamper detection configuration and initialization
Each input can be enabled by setting the corresponding TAMPxE bits to 1 in the TAMP_CR register.
Each TAMP_INx tamper detection input is associated with a flag TAMPxF in the TAMP_SR register.
By setting the TAMPxIE bit in the TAMP_IER register, an interrupt is generated when a tamper detection event occurs (when TAMPxF is set). Setting TAMPxIE is not allowed when the corresponding TAMPxMSK is set.
Trigger output generation on tamper event
The tamper event detection can be used as trigger input by the low-power timers.
When TAMPxMSK bit is cleared in TAMP_CR register, the TAMPxF flag must be cleared by software in order to allow a new tamper detection on the same pin.
When TAMPxMSK bit is set, the TAMPxF flag is masked, and kept cleared in TAMP_SR register. This configuration permits the low-power timers to be triggered automatically in Stop mode, without requiring the system wake-up to perform the TAMPxF clearing. In this case, the backup registers are not cleared.
This feature is available only when the tamper is configured in level detection with filtering mode (TAMPFLT ≠ 00). Refer to Section : Level detection with filtering on tamper inputs (passive mode).
Timestamp on tamper event
With TAMPTS set to 1 in the RTC_CR, any internal or external tamper event causes a timestamp to occur. In case a timestamp occurs due to tamper event, either the TSF bit or the TSOVF bit is set in RTC_SR, in the same manner as if a normal timestamp event occurs.
Note: TSF is set up to 3 ck_apre cycles after TAMPxF flags. TSF is not set if RTCCLK is stopped (it is set when RTCCLK restarts).
Note: If TAMPxF is cleared before the expected rise of TSF, TSF is not set. Consequently, in case TAMPTS = 1, the software should either wait for timestamp flag before clearing the tamper flag, or should read the RTC counters values in the TAMP interrupt routine.
Edge detection on tamper inputs (passive mode)
If the TAMPFLT bits are 00, the TAMP_INx pins generate tamper detection events when either a rising edge or a falling edge is observed depending on the corresponding TAMPxTRG bit. The internal pull-up resistors on the TAMP_INx inputs are deactivated when edge detection is selected.
Caution: When TAMPFLT = 00 and TAMPxTRG = 0 (rising edge detection), a tamper event may be detected by hardware if the tamper input is already at high level before enabling the tamper detection.
After a tamper event has been detected and cleared, the TAMP_INx should be disabled and then re-enabled (TAMPxE set to 1) before re-programming the backup registers (TAMP_BKPxR). This prevents the application from writing to the backup registers while the TAMP_INx input value still indicates a tamper detection. This is equivalent to a level detection on the TAMP_INx input.
Level detection with filtering on tamper inputs (passive mode)
Level detection with filtering is performed by setting TAMPFLT to a non-zero value. A tamper detection event is generated when either 2, 4, or 8 (depending on TAMPFLT) consecutive samples are observed at the level designated by the TAMPxTRG bits.
The TAMP_INx inputs are precharged through the I/O internal pull-up resistance before its state is sampled, unless disabled by setting TAMPPUDIS to 1. The duration of the precharge is determined by the TAMPPRCH bits, allowing for larger capacitances on the TAMP_INx inputs.
The trade-off between tamper detection latency and power consumption through the pull-up can be optimized by using TAMPFREQ to determine the frequency of the sampling for level detection. The TAMP_IN I/O schmitt trigger is enabled only during the precharge duration to avoid any extra consumption if the tamper switch is open (floating state).
Figure 564. Tamper sampling with precharge pulse

MSv30115V2
Figure 565. Low level detection with precharge and filtering

Configuration:
TAMPxTRG=0: Low level detection
TAMPPRCH=1: 1 RTCCLK cycle pre-charge duration (internal pull-up is applied)
TAMPFLT=1: Tamper event is activated after 2 consecutive samples at active level
MSv74148V1
Note: Refer to the microcontroller datasheet for the electrical characteristics of the pull-up resistors.
40.4 TAMP low-power modes
Table 402. Effect of low-power modes on TAMP
| Mode | Description |
|---|---|
| Sleep | No effect. TAMP interrupts cause the device to exit the Sleep mode. |
| Stop | No effect on all features, except for level detection with filtering mode which remain active only when the clock source is LSE or LSI. TAMP interrupts cause the device to exit the Stop mode. |
| Standby | No effect on all features, except for level detection with filtering mode which remain active only when the clock source is LSE or LSI. TAMP interrupts cause the device to exit the Standby mode. |
Table 403. TAMP pins functionality over modes
| Pin name | Functional in all low-power modes |
|---|---|
| TAMP_IN[3:1] | Yes |
40.5 TAMP interrupts
Table 404. Interrupt requests
| Interrupt acronym | Interrupt event | Event flag(1) | Enable control bit | Interrupt clear method | Exit from low-power modes |
|---|---|---|---|---|---|
| TAMP | Tamper x(2) | TAMPxF | TAMPxIE | Write 1 in CTAMPxF | Yes(3) |
| Internal tamper y(2) | ITAMPyF | ITAMPyIE | Write 1 in CITAMPyF | Yes(3) |
- 1. The event flags are in the TAMP_SR register.
- 2. The number of tampers and internal tampers events depend on products.
- 3. Refer to Table 402: Effect of low-power modes on TAMP for more details about available features in the low-power modes.
40.6 TAMP registers
Refer to Section 1.2 of the reference manual for a list of abbreviations used in register descriptions. The peripheral registers can be accessed by words (32-bit).
40.6.1 TAMP control register 1 (TAMP_CR1)
This register can be protected against unprivileged access. Refer to Section 40.3.6: TAMP
Address offset: 0x00
RTC domain reset value: 0x0000 0000
System reset: not affected
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | ITAMP11E | Res. | ITA- MP9E | Res. | Res. | ITAMP6E | ITAMP5E | ITAMP4E | ITAMP3E | Res. | Res. |
| rw | rw | rw | rw | rw | rw | ||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TAMP3E | TAMP2E | TAMP1E |
| rw | rw | rw |
Bit 31 Reserved, must be kept at reset value.
Bit 30 Reserved, must be kept at reset value.
Bit 29 Reserved, must be kept at reset value.
Bit 28 Reserved, must be kept at reset value.
Bit 27 Reserved, must be kept at reset value.
Bit 26 ITAMP11E: Internal tamper 11 enable
0: Internal tamper 11 disabled.
1: Internal tamper 11 enabled.
Bit 25 Reserved, must be kept at reset value.
Bit 24 ITAMP9E: Internal tamper 9 enable
0: Internal tamper 9 disabled.
1: Internal tamper 9 enabled.
Bit 23 Reserved, must be kept at reset value.
Bit 22 Reserved, must be kept at reset value.
Bit 21 ITAMP6E: Internal tamper 6 enable
0: Internal tamper 6 disabled.
1: Internal tamper 6 enabled.
Bit 20 ITAMP5E: Internal tamper 5 enable
0: Internal tamper 5 disabled.
1: Internal tamper 5 enabled.
Bit 19 ITAMP4E: Internal tamper 4 enable
0: Internal tamper 4 disabled.
1: Internal tamper 4 enabled.
Bit 18 ITAMP3E: Internal tamper 3 enable
0: Internal tamper 3 disabled.
1: Internal tamper 3 enabled.
Bit 17 Reserved, must be kept at reset value.
Bit 16 Reserved, must be kept at reset value.
Bits 15:8 Reserved, must be kept at reset value.
Bit 7 Reserved, must be kept at reset value.
Bit 6 Reserved, must be kept at reset value.
Bit 5 Reserved, must be kept at reset value.
Bit 4 Reserved, must be kept at reset value.
Bit 3 Reserved, must be kept at reset value.
Bit 2 TAMP3E: Tamper detection on TAMP_IN3 enable(1)
0: Tamper detection on TAMP_IN3 is disabled.
1: Tamper detection on TAMP_IN3 is enabled.
Bit 1 TAMP2E: Tamper detection on TAMP_IN2 enable(1)
0: Tamper detection on TAMP_IN2 is disabled.
1: Tamper detection on TAMP_IN2 is enabled.
Bit 0 TAMP1E: Tamper detection on TAMP_IN1 enable(1)
0: Tamper detection on TAMP_IN1 is disabled.
1: Tamper detection on TAMP_IN1 is enabled.
- 1. Tamper detection mode (selected with TAMP_FLTCR register and TAMPxTRG bits in TAMP_CR2), must be configured before enabling the tamper detection.
40.6.2 TAMP control register 2 (TAMP_CR2)
This register can be protected against unprivileged access. Refer to Section 40.3.6: TAMP privilege protection modes.
Address offset: 0x04
RTC domain reset value: 0x0000 0000
System reset: not affected
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | TAMP3 TRG | TAMP2 TRG | TAMP1 TRG | BK ERASE | BK BLOCK | Res. | Res. | Res. | TAMP3 MSK | TAMP2 MSK | TAMP1 MSK |
| rw | rw | rw | w | rw | rw | rw | rw | ||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TAMP3 POM | TAMP2 POM | TAMP1 POM |
| rw | rw | rw |
Bit 31 Reserved, must be kept at reset value.
Bit 30 Reserved, must be kept at reset value.
Bit 29 Reserved, must be kept at reset value.
Bit 28 Reserved, must be kept at reset value.
Bit 27 Reserved, must be kept at reset value.
Bit 26 TAMP3TRG: Active level for tamper 3 input
0: If TAMPFLT ≠ 00 tamper 3 input staying low triggers a tamper detection event.
If TAMPFLT = 00 tamper 3 input rising edge triggers a tamper detection event.
1: If TAMPFLT ≠ 00 tamper 3 input staying high triggers a tamper detection event.
If TAMPFLT = 00 tamper 3 input falling edge triggers a tamper detection event.
- Bit 25 TAMP2TRG: Active level for tamper 2 input
0: If TAMPFLT ≠ 00 tamper 2 input staying low triggers a tamper detection event.
If TAMPFLT = 00 tamper 2 input rising edge triggers a tamper detection event.
1: If TAMPFLT ≠ 00 tamper 2 input staying high triggers a tamper detection event.
If TAMPFLT = 00 tamper 2 input falling edge triggers a tamper detection event. - Bit 24 TAMP1TRG: Active level for tamper 1 input
0: If TAMPFLT ≠ 00 tamper 1 input staying low triggers a tamper detection event.
If TAMPFLT = 00 tamper 1 input rising edge triggers a tamper detection event.
1: If TAMPFLT ≠ 00 tamper 1 input staying high triggers a tamper detection event.
If TAMPFLT = 00 tamper 1 input falling edge triggers a tamper detection event. - Bit 23 BKERASE: Backup registers and device secrets(1) erase
Writing '1' to this bit reset the backup registers and device secrets(1). Writing 0 has no effect.
This bit is always read as 0. - Bit 22 BKBLOCK: Backup registers and device secrets(1) access blocked
0: backup registers and device secrets(1) can be accessed if no tamper flag is set
1: backup registers and device secrets(1) cannot be accessed - Bits 21:19 Reserved, must be kept at reset value.
- Bit 18 TAMP3MSK: Tamper 3 mask
0: Tamper 3 event generates a trigger event and TAMP3F must be cleared by software to allow next tamper event detection.
1: Tamper 3 event generates a trigger event. TAMP3F is masked and internally cleared by hardware. The backup registers and device secrets(1) are not erased.
The tamper 3 interrupt must not be enabled when TAMP3MSK is set. - Bit 17 TAMP2MSK: Tamper 2 mask
0: Tamper 2 event generates a trigger event and TAMP2F must be cleared by software to allow next tamper event detection.
1: Tamper 2 event generates a trigger event. TAMP2F is masked and internally cleared by hardware. The backup registers and device secrets(1) are not erased.
The tamper 2 interrupt must not be enabled when TAMP2MSK is set. - Bit 16 TAMP1MSK: Tamper 1 mask
0: Tamper 1 event generates a trigger event and TAMP1F must be cleared by software to allow next tamper event detection.
1: Tamper 1 event generates a trigger event. TAMP1F is masked and internally cleared by hardware. The backup registers and device secrets(1) are not erased.
The tamper 1 interrupt must not be enabled when TAMP1MSK is set. - Bits 15:8 Reserved, must be kept at reset value.
- Bit 7 Reserved, must be kept at reset value.
- Bit 6 Reserved, must be kept at reset value.
- Bit 5 Reserved, must be kept at reset value.
- Bit 4 Reserved, must be kept at reset value.
- Bit 3 Reserved, must be kept at reset value.
- Bit 2 TAMP3POM: Tamper 3 potential mode
- 0: Tamper 3 event detection is in confirmed mode(1).
- 1: Tamper 3 event detection is in potential mode(2).
- Bit 1 TAMP2POM: Tamper 2 potential mode
- 0: Tamper 2 event detection is in confirmed mode(1).
- 1: Tamper 2 event detection is in potential mode(2).
- Bit 0 TAMP1POM: Tamper 1 potential mode
- 0: Tamper 1 event detection is in confirmed mode(1).
- 1: Tamper 1 event detection is in potential mode(2).
- 1. The effects of tamper detection in confirmed mode is described with tamp_confirmed signal in Table 401: TAMP interconnection.
- 2. The effects of tamper detection in potential mode is described with tamp_potential signal in Table 401: TAMP interconnection.
40.6.3 TAMP control register 3 (TAMP_CR3)
This register can be protected against unprivileged access. Refer to Section 40.3.6: TAMP privilege protection modes.
Address offset: 0x08
RTC domain reset value: 0x0000 0000
System reset: not affected
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | ITAMP11POM | Res. | ITAMP9POM | Res. | Res. | ITAMP6POM | ITAMP5POM | ITAMP4POM | ITAMP3POM | Res. | Res. |
| rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bit 15 Reserved, must be kept at reset value.
Bit 14 Reserved, must be kept at reset value.
Bit 13 Reserved, must be kept at reset value.
Bit 12 Reserved, must be kept at reset value.
Bit 11 Reserved, must be kept at reset value.
Bit 10 ITAMP11POM: Internal tamper 11 potential mode
- 0: Internal tamper 11 event detection is in confirmed mode(1).
- 1: Internal tamper 11 event detection is in potential mode(2).
Bit 9 Reserved, must be kept at reset value.
Bit 8 ITAMP9POM: Internal tamper 9 potential mode
- 0: Internal tamper 9 event detection is in confirmed mode(1).
- 1: Internal tamper 9 event detection is in potential mode(2).
Bit 7 Reserved, must be kept at reset value.
Bit 6 Reserved, must be kept at reset value.
Bit 5 ITAMP6POM: Internal tamper 6 potential mode
- 0: Internal tamper 6 event detection is in confirmed mode(1).
- 1: Internal tamper 6 event detection is in potential mode(2).
Bit 4 ITAMP5POM: Internal tamper 5 potential mode
- 0: Internal tamper 5 event detection is in confirmed mode(1).
- 1: Internal tamper 5 event detection is in potential mode(2).
Bit 3 ITAMP4POM: Internal tamper 4 potential mode
- 0: Internal tamper 4 event detection is in confirmed mode(1).
- 1: Internal tamper 4 event detection is in potential mode(2).
Bit 2 ITAMP3POM: Internal tamper 3 potential mode
- 0: Internal tamper 3 event detection is in confirmed mode(1).
- 1: Internal tamper 3 event detection is in potential mode(2).
Bit 1 Reserved, must be kept at reset value.
Bit 0 Reserved, must be kept at reset value.
- 1. The effects of internal tamper detection in confirmed mode is described with tamp_confirmed signal in Table 401: TAMP interconnection
- 2. The effects of internal tamper detection in potential mode is described with tamp_potential signal in Table 401: TAMP interconnection.
40.6.4 TAMP filter control register (TAMP_FLTCR)
This register can be protected against unprivileged access. Refer to Section 40.3.6: TAMP privilege protection modes.
Address offset: 0x0C
RTC domain reset value: 0x0000 0000
System reset: not affected
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TAMP PUDIS | TAMPPRCH [1:0] | TAMPFLT [1:0] | TAMPFREQ [2:0] | ||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bit 7 TAMPPUDIS: TAMP_INx pull-up disable
This bit determines if each of the TAMPx pins are precharged before each sample.
- 0: Precharge TAMP_INx pins before sampling (enable internal pull-up)
- 1: Disable precharge of TAMP_INx pins.
Bits 6:5 TAMPPRCH[1:0]: TAMP_INx precharge duration
These bit determines the duration of time during which the pull-up/is activated before each sample. TAMPPRCH is valid for each of the TAMP_INx inputs.
- 0x0: 1 RTCCLK cycle
- 0x1: 2 RTCCLK cycles
- 0x2: 4 RTCCLK cycles
- 0x3: 8 RTCCLK cycles
Bits 4:3 TAMPFLT[1:0]: TAMP_INx filter count
These bits determines the number of consecutive samples at the specified level (TAMP*TRG) needed to activate a tamper event. TAMPFLT is valid for each of the TAMP_INx inputs.
- 0x0: Tamper event is activated on edge of TAMP_INx input transitions to the active level (no internal pull-up on TAMP_INx input).
- 0x1: Tamper event is activated after 2 consecutive samples at the active level.
- 0x2: Tamper event is activated after 4 consecutive samples at the active level.
- 0x3: Tamper event is activated after 8 consecutive samples at the active level.
Bits 2:0 TAMPFREQ[2:0]: Tamper sampling frequency
Determines the frequency at which each of the TAMP_INx inputs are sampled.
- 0x0: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz)
- 0x1: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz)
- 0x2: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz)
- 0x3: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz)
- 0x4: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz)
- 0x5: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz)
- 0x6: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz)
- 0x7: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz)
Note: This register concerns only the tamper inputs in passive mode.
40.6.5 TAMP configuration register (TAMP_CFGR)
This register can be globally write-protected, or each bit of this register can be individually write-protected against unprivileged access depending on the TAMP_PRIVCFGR configuration (refer to Section 40.3.6: TAMP privilege protection modes).
Address offset: 0x20
RTC domain reset value: 0x0000 0000
System reset: not affected
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | BKPW[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | BKPRW[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bit 31 Reserved, must be kept at reset value.
Bit 30 Reserved, must be kept at reset value.
Bits 29:24 Reserved, must be kept at reset value.
Bits 23:16 BKPW[7:0]: Backup registers write protection offset
BKPW value must be from 0 to 32.
Protection zone 2 is defined for backup registers from TAMP_BKPyR (y = BKPRW) to TAMP_BKPzR (z = BKPW-1, with BKPW > BKPRW):
If BKPW = 0 or if BKPW ≤ BKPRW: there is no protection zone 2.
Protection zone 3 is defined for backup registers from TAMP_BKPtR (t = BKPW if BKPW ≥ BKPRW, else t = BKPRW).
If BKPW = 32: there is no protection zone 3.
Refer to Figure 563: Backup registers protection zones.
Note: If BKPWPRIV is set, BKPW[7:0] can be written only in privileged mode.
Bit 15 Reserved, must be kept at reset value.
Bits 14:8 Reserved, must be kept at reset value.
Bits 7:0 BKPRW[7:0]: Backup registers read/write protection offset
BKPRW value must be from 0 to 32.
Protection zone 1 is defined for backup registers from TAMP_BKP0R to TAMP_BKPxR (x = BKPRW-1, with BKPRW ≥ 1).
If BKPRW = 0: there is no protection zone 1.
Refer to Figure 563: Backup registers protection zones.
Note: If BKPRWPRIV or BKPWPRIV is set, BKPRW[7:0] can be written only in privileged mode.
40.6.6 TAMP privilege configuration register (TAMP_PRIVCFGR)
This register can be written only when the APB access is privileged.
Address offset: 0x24
RTC domain reset value: 0x0000 0000
System reset: not affected
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TAMP PRIV | BKP WPRIV | BKPR WPRIV | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| rw | rw | rw | |||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
- 0: Tamper configuration and interrupt can be written with privileged or unprivileged access.
- 1: Tamper configuration and interrupt can be written only with privileged access.
- 0: Backup registers zone 2 can be written with privileged or unprivileged access.
- 1: Backup registers zone 2 can be written only with privileged access.
- 0: Backup registers zone 1 can be read and written with privileged or unprivileged access.
- 1: Backup registers zone 1 can be read and written only with privileged access
Bits 28:16 Reserved, must be kept at reset value.
Bit 15 Reserved, must be kept at reset value.
Bits 14:0 Reserved, must be kept at reset value.
40.6.7 TAMP interrupt enable register (TAMP_IER)
This register can be protected against unprivileged access. Refer to Section 40.3.6: TAMP privilege protection modes .Address offset: 0x2C
RTC domain reset value: 0x0000 0000
System reset: not affected
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | ITAMP1 1IE | Res. | ITAMP9 IE | Res. | Res. | ITAMP6 IE | ITAMP5 IE | ITAMP4 IE | ITAMP3 IE | Res. | Res. |
| rw | rw | rw | rw | rw | rw | ||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TAMP 3IE | TAMP 2IE | TAMP 1IE |
| rw | rw | rw |
- Bit 31 Reserved, must be kept at reset value.
- Bit 30 Reserved, must be kept at reset value.
- Bit 29 Reserved, must be kept at reset value.
- Bit 28 Reserved, must be kept at reset value.
- Bit 27 Reserved, must be kept at reset value.
- Bit 26 ITAMP11IE: Internal tamper 11 interrupt enable
- 0: Internal tamper 11 interrupt disabled.
- 1: Internal tamper 11 interrupt enabled.
- Bit 25 Reserved, must be kept at reset value.
- Bit 24 ITAMP9IE: Internal tamper 9 interrupt enable
- 0: Internal tamper 9 interrupt disabled.
- 1: Internal tamper 9 interrupt enabled.
- Bit 23 Reserved, must be kept at reset value.
- Bit 22 Reserved, must be kept at reset value.
- Bit 21 ITAMP6IE: Internal tamper 6 interrupt enable
- 0: Internal tamper 6 interrupt disabled.
- 1: Internal tamper 6 interrupt enabled.
- Bit 20 ITAMP5IE: Internal tamper 5 interrupt enable
- 0: Internal tamper 5 interrupt disabled.
- 1: Internal tamper 5 interrupt enabled.
- Bit 19 ITAMP4IE: Internal tamper 4 interrupt enable
- 0: Internal tamper 4 interrupt disabled.
- 1: Internal tamper 4 interrupt enabled.
- Bit 18 ITAMP3IE: Internal tamper 3 interrupt enable
- 0: Internal tamper 3 interrupt disabled.
- 1: Internal tamper 3 interrupt enabled.
- Bit 17 Reserved, must be kept at reset value.
- Bit 16 Reserved, must be kept at reset value.
- Bits 15:8 Reserved, must be kept at reset value.
- Bit 7 Reserved, must be kept at reset value.
- Bit 6 Reserved, must be kept at reset value.
- Bit 5 Reserved, must be kept at reset value.
- Bit 4 Reserved, must be kept at reset value.
- Bit 3 Reserved, must be kept at reset value.
- Bit 2 TAMP3IE: Tamper 3 interrupt enable
- 0: Tamper 3 interrupt disabled.
- 1: Tamper 3 interrupt enabled..
- Bit 1 TAMP2IE: Tamper 2 interrupt enable
- 0: Tamper 2 interrupt disabled.
- 1: Tamper 2 interrupt enabled.
- Bit 0 TAMP1IE: Tamper 1 interrupt enable
- 0: Tamper 1 interrupt disabled.
- 1: Tamper 1 interrupt enabled.
40.6.8 TAMP status register (TAMP_SR)
This register can be protected against unprivileged access. Refer to Section 40.3.6: TAMP privilege protection modes.
Address offset: 0x30
RTC domain reset value: 0x0000 0000
System reset: not affected
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | ITAMP11F | Res. | ITAMP9F | Res. | Res. | ITAMP6F | ITAMP5F | ITAMP4F | ITAMP3F | Res. | Res. |
| r | r | r | r | r | r | ||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TAMP3F | TAMP2F | TAMP1F |
| r | r | r |
- Bit 31 Reserved, must be kept at reset value.
- Bit 30 Reserved, must be kept at reset value.
- Bit 29 Reserved, must be kept at reset value.
- Bit 28 Reserved, must be kept at reset value.
- Bit 27 Reserved, must be kept at reset value.
- Bit 26 ITAMP11F: Internal tamper 11 flag
- This flag is set by hardware when a tamper detection event is detected on the internal tamper 11.
- Bit 25 Reserved, must be kept at reset value.
- Bit 24 ITAMP9F: Internal tamper 9 flag
- This flag is set by hardware when a tamper detection event is detected on the internal tamper 9.
- Bit 23 Reserved, must be kept at reset value.
- Bit 22 Reserved, must be kept at reset value.
- Bit 21 ITAMP6F: Internal tamper 6 flag
- This flag is set by hardware when a tamper detection event is detected on the internal tamper 6.

- Bit 20 ITAMP5F: Internal tamper 5 flag
This flag is set by hardware when a tamper detection event is detected on the internal tamper 5. - Bit 19 ITAMP4F: Internal tamper 4 flag
This flag is set by hardware when a tamper detection event is detected on the internal tamper 4. - Bit 18 ITAMP3F: Internal tamper 3 flag
This flag is set by hardware when a tamper detection event is detected on the internal tamper 3. - Bit 17 Reserved, must be kept at reset value.
- Bit 16 Reserved, must be kept at reset value.
- Bits 15:8 Reserved, must be kept at reset value.
- Bit 7 Reserved, must be kept at reset value.
- Bit 6 Reserved, must be kept at reset value.
- Bit 5 Reserved, must be kept at reset value.
- Bit 4 Reserved, must be kept at reset value.
- Bit 3 Reserved, must be kept at reset value.
- Bit 2 TAMP3F: TAMP3 detection flag
This flag is set by hardware when a tamper detection event is detected on the TAMP3 input. - Bit 1 TAMP2F: TAMP2 detection flag
This flag is set by hardware when a tamper detection event is detected on the TAMP2 input. - Bit 0 TAMP1F: TAMP1 detection flag
This flag is set by hardware when a tamper detection event is detected on the TAMP1 input.
40.6.9 TAMP masked interrupt status register (TAMP_MISR)
This register can be protected against unprivileged access. Refer to Section 40.3.6: TAMP privilege protection modes.
Address offset: 0x34
RTC domain reset value: 0x0000 0000
System reset: not affected
| RM0522 40.6.9 | column_2 | Bit 20 Bit 19 Bit 18 Bit 2 Bit 1 Bit 0 | ITAMP5F ITAMP4F ITAMP3F TAMP3F TAMP2F TAMP1F | tamper 5. tamper 4. tamper 3. | column_6 | . | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | column_16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | ITAMP1 | ITAMP5 | ITAMP4 | ITAMP3 | |||||||
| 1MF | Res. | ITAMP9 | |||||||||||||
| MF | Res. | Res. | ITAMP6 | ||||||||||||
| MF | MF | MF | MF | Res. | Res. | ||||||||||
| r | r | r | r | r | r | ||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TAMP | TAMP | TAMP |
| 3MF | 2MF | 1MF | |||||||||||||
| r | r | r |
- Bit 31 Reserved, must be kept at reset value.
- Bit 30 Reserved, must be kept at reset value.
- Bit 29 Reserved, must be kept at reset value.
- Bit 28 Reserved, must be kept at reset value.
- Bit 27 Reserved, must be kept at reset value.
- Bit 26 ITAMP11MF: internal tamper 11 interrupt masked flag
This flag is set by hardware when the internal tamper 11 interrupt is raised. - Bit 25 Reserved, must be kept at reset value.
- Bit 24 ITAMP9MF: internal tamper 9 interrupt masked flag
This flag is set by hardware when the internal tamper 9 interrupt is raised. - Bit 23 Reserved, must be kept at reset value.
- Bit 22 Reserved, must be kept at reset value.
- Bit 21 ITAMP6MF: Internal tamper 6 interrupt masked flag
This flag is set by hardware when the internal tamper 6 interrupt is raised. - Bit 20 ITAMP5MF: Internal tamper 5 interrupt masked flag
This flag is set by hardware when the internal tamper 5 interrupt is raised. - Bit 19 ITAMP4MF: Internal tamper 4 interrupt masked flag
This flag is set by hardware when the internal tamper 4 interrupt is raised. - Bit 18 ITAMP3MF: Internal tamper 3 interrupt masked flag
This flag is set by hardware when the internal tamper 3 interrupt is raised. - Bit 17 Reserved, must be kept at reset value.
- Bit 16 Reserved, must be kept at reset value.
- Bits 15:8 Reserved, must be kept at reset value.
- Bit 7 Reserved, must be kept at reset value.
- Bit 6 Reserved, must be kept at reset value.
- Bit 5 Reserved, must be kept at reset value.
- Bit 4 Reserved, must be kept at reset value.
- Bit 3 Reserved, must be kept at reset value.
- Bit 2 TAMP3MF: TAMP3 interrupt masked flag
This flag is set by hardware when the tamper 3 interrupt is raised. - Bit 1 TAMP2MF: TAMP2 interrupt masked flag
This flag is set by hardware when the tamper 2 interrupt is raised. - Bit 0 TAMP1MF: TAMP1 interrupt masked flag
This flag is set by hardware when the tamper 1 interrupt is raised.
40.6.10 TAMP status clear register (TAMP_SCR)
This register can be protected against unprivileged access. Refer to Section 40.3.6: TAMP privilege protection modes.
Address offset: 0x3C
System reset value: 0x0000 0000
| RM0522 | column_2 | column_3 | column_4 | column_5 | column_6 | . | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | column_16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | C | C | C | C | C | C | |||||||||
| Res. | Res. | Res. | Res. | ITAMP | Res. | ITAMP | Res. | Res. | ITAMP | ITAMP | ITAMP | ITAMP | Res. | Res. | |
| 11F | 9F | 6F | 5F | 4F | 3F | ||||||||||
| w | w | w | w | w | w | ||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CTAMP | CTAMP | CTAMP |
| 3F | 2F | 1F | |||||||||||||
| w | w | w | |||||||||||||
| Bit 26 | CITAMP11F | : Clear ITAMP11 detection flag | |||||||||||||
| Bit 24 | CITAMP9F | : Clear ITAMP9 detection flag | |||||||||||||
| Bit 21 | CITAMP6F | : Clear ITAMP6 detection flag | |||||||||||||
| Bit 20 | CITAMP5F | : Clear ITAMP5 detection flag | |||||||||||||
| Bit 19 | CITAMP4F | : Clear ITAMP4 detection flag | |||||||||||||
| Bit 18 | CITAMP3F | : Clear ITAMP3 detection flag |
- Bit 31 Reserved, must be kept at reset value.
- Bit 30 Reserved, must be kept at reset value.
- Bit 29 Reserved, must be kept at reset value.
- Bit 28 Reserved, must be kept at reset value.
- Bit 27 Reserved, must be kept at reset value.
- Bit 26 CITAMP11F: Clear ITAMP11 detection flag
Writing 1 in this bit clears the ITAMP11F bit in the TAMP_SR register. - Bit 25 Reserved, must be kept at reset value.
- Bit 24 CITAMP9F: Clear ITAMP9 detection flag
Writing 1 in this bit clears the ITAMP9F bit in the TAMP_SR register. - Bit 23 Reserved, must be kept at reset value.
- Bit 22 Reserved, must be kept at reset value.
- Bit 21 CITAMP6F: Clear ITAMP6 detection flag
Writing 1 in this bit clears the ITAMP6F bit in the TAMP_SR register. - Bit 20 CITAMP5F: Clear ITAMP5 detection flag
Writing 1 in this bit clears the ITAMP5F bit in the TAMP_SR register. - Bit 19 CITAMP4F: Clear ITAMP4 detection flag
Writing 1 in this bit clears the ITAMP4F bit in the TAMP_SR register. - Bit 18 CITAMP3F: Clear ITAMP3 detection flag
Writing 1 in this bit clears the ITAMP3F bit in the TAMP_SR register. - Bit 17 Reserved, must be kept at reset value.
- Bit 16 Reserved, must be kept at reset value.
- Bits 15:8 Reserved, must be kept at reset value.
- Bit 7 Reserved, must be kept at reset value.
- Bit 6 Reserved, must be kept at reset value.
- Bit 5 Reserved, must be kept at reset value.
- Bit 4 Reserved, must be kept at reset value.
- Bit 3 Reserved, must be kept at reset value.
- Bit 2 CTAMP3F: Clear TAMP3 detection flag
Writing 1 in this bit clears the TAMP3F bit in the TAMP_SR register. - Bit 1 CTAMP2F: Clear TAMP2 detection flag
Writing 1 in this bit clears the TAMP2F bit in the TAMP_SR register. - Bit 0 CTAMP1F: Clear TAMP1 detection flag
Writing 1 in this bit clears the TAMP1F bit in the TAMP_SR register.
40.6.11 TAMP option register (TAMP_OR)
This register can be protected against unprivileged access. Refer to Section 40.3.6: TAMP privilege protection modes.
Address offset: 0x50
RTC domain reset value: 0x0000 0000
System reset: not affected
| column_1 | column_2 | Bit 2 Bit 1 Bit 0 | CTAMP3F CTAMP2F CTAMP1F | column_5 | column_6 | . | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | RM0522 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IN3_R | ||
| MP rw | Res. | IN2_ RMP rw | |||||||||||||
| Bit 2 | IN3_RMP | : TAMP_IN3 pin select | |||||||||||||
| Bit 0 | IN2_RMP | : TAMP_IN2 pin select |
Bits 31:3 Reserved, must be kept at reset value.
- Bit 2 IN3_RMP: TAMP_IN3 pin select
0x0: TAMP_IN3 is mapped on PA1
0x1: TAMP_IN3 is mapped on PA2 - Bit 1 Reserved, must be kept at reset value.
- Bit 0 IN2_RMP: TAMP_IN2 pin select
0x0: TAMP_IN2 is mapped on PA0
0x1: TAMP_IN2 is mapped on PC1
40.6.12 TAMP backup x register (TAMP_BKPxR)
This register can be protected against unprivileged access. Refer to Section 40.3.6: TAMP privilege protection modes.
Address offset: 0x100+0x04*x, (x = 0 to 31)
RTC domain reset value: 0x0000 0000
System reset: not affected
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BKP[31:16] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| BKP[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | w | rw | rw |
Bits 31:0 BKP[31:0]:
The application can write or read data to and from these registers.
In the default (ERASE) configuration this register is reset on a tamper detection event. It is forced to reset value as long as there is at least one internal or external tamper flag being set. This register is also reset when the readout protection (RDP) is disabled.
40.6.13 TAMP register map
Table 405. TAMP register map and reset values
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x00 | TAMP_CR1 | Res. | Res. | Res. | Res. | Res. | ITAMP11E | Res. | ITAMP9E | Res. | Res. | ITAMP6E | ITAMP5E | ITAMP4E | ITAMP3E | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TAMP3E | TAMP2E | TAMP1E |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||
| 0x04 | TAMP_CR2 | Res. | Res. | Res. | Res. | Res. | TAMP3TRG | TAMP2TRG | TAMP1TRG | BKERASE | BKBLOCK | Res. | Res. | Res. | Res. | TAMP3MSK | TAMP2MSK | TAMP1MSK | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TAMP3POM | TAMP2POM | TAMP1POM |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||
| 0x08 | TAMP_CR3 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ITAMP11POM | Res. | ITAMP9POM | Res. | Res. | Res. | Res. | ITAMP6POM | ITAMP5POM | ITAMP4POM | |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| 0x0C | TAMP_FLTCR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TAMPPUDIS | TAMPPRCH[1:0] | TAMPFLT[1:0] | TAMPFREQ[2:0] | ||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||
| 0x20 | TAMP_CFGR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | BKPW[7:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | BKPRW[7:0] | |||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x24 | TAMP_PRIVCFGR | TAMPPRIV | BKPWPRIV | BKPRWPRIV | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| Reset value | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x2C | TAMP_IER | Res. | Res. | Res. | Res. | Res. | ITAMP11IE | Res. | ITAMP9IE | Res. | Res. | ITAMP6IE | ITAMP5IE | ITAMP4IE | ITAMP3IE | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TAMP3IE | TAMP2IE | TAMP1IE |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||
| 0x30 | TAMP_SR | Res. | Res. | Res. | Res. | Res. | ITAMP11F | Res. | ITAMP9F | Res. | Res. | ITAMP6F | ITAMP5F | ITAMP4F | ITAMP3F | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TAMP3F | TAMP2F | TAMP1F |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||
| 0x34 | TAMP_MISR | Res. | Res. | Res. | Res. | Res. | ITAMP11MF | Res. | ITAMP9MF | Res. | Res. | ITAMP6MF | ITAMP5MF | ITAMP4MF | ITAMP3MF | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TAMP3MF | TAMP2MF | TAMP1MF |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||
| 0x3C | TAMP_SCR | Res. | Res. | Res. | Res. | Res. | CITAMP11F | Res. | CITAMP9F | Res. | Res. | CITAMP6F | CITAMP5F | CITAMP4F | CITAMP3F | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CTAMP3F | CTAMP2F | CTAMP1F |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||
Table 405. TAMP register map and reset values (continued)
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x50 | TAMP_OR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IN3_RMP | Res. | IN2_RMP |
| Reset value | 0 | 0 | |||||||||||||||||||||||||||||||
| 0x100 + 0x04*x, (x= 0 to 31) | TAMP_BKPxR | BKP[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
Refer to Section 2.2: Memory organization for the register boundary addresses.