09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

General-purpose I/Os (GPIO) <strong>RM0090</strong><br />

7.3.15 Selection of RTC_AF1 and RTC_AF2 alternate functions<br />

The STM32F4xx feature two GPIO pins RTC_AF1 and RTC_AF2 that can be used for the<br />

detection of a tamper or time stamp event, or RTC_ALARM, or RTC_CALIB RTC outputs.<br />

The RTC_AF1 (PC13) can be used for the following purposes:<br />

● RTC_ALARM output: this output can be RTC Alarm A, RTC Alarm B or RTC Wakeup<br />

depending on the OSEL[1:0] bits in the RTC_CR register<br />

● RTC_CALIB output: this feature is enabled by setting the COE[23] in the RTC_CR<br />

register<br />

● RTC_TAMP1: tamper event detection<br />

● RTC_TS: time stamp event detection<br />

The RTC_AF2 (PI8) can be used for the following purposes:<br />

● RTC_TAMP1 tamper event detection<br />

● RTC_TAMP2: tamper event detection<br />

● RTC_TS: time stamp event detection<br />

The selection of the corresponding pin is performed through the RTC_TAFCR register as<br />

follows:<br />

● TAMP1INSEL is used to select which pin is used as the RTC_TAMP1 tamper input<br />

● TSINSEL is used to select which pin is used as the RTC_TS time stamp input<br />

● ALARMOUTTYPE is used to select whether the RTC_ALARM is output in push-pull or<br />

open-drain mode<br />

The output mechanism follows the priority order listed in Table 29 and Table 30.<br />

Table 29. RTC_AF1 pin (1)<br />

Pin<br />

configuration<br />

and function<br />

Alarm out<br />

output OD<br />

Alarm out<br />

output PP<br />

Calibration out<br />

output PP<br />

TAMPER1 input<br />

floating<br />

TIMESTAMP<br />

and TAMPER1<br />

input floating<br />

TIMESTAMP<br />

input floating<br />

RTC_ALARM<br />

enabled<br />

RTC_CALIB<br />

enabled<br />

Tamper<br />

enabled<br />

Time<br />

stamp<br />

enabled<br />

1 Don’t care Don’t care Don’t<br />

care<br />

1 Don’t care Don’t care Don’t<br />

care<br />

0 1 Don’t care Don’t<br />

care<br />

197/1416 Doc ID 018909 Rev 3<br />

TAMP1INSEL<br />

TAMPER1 pin<br />

selection<br />

TSINSEL<br />

TIMESTAMP<br />

pin<br />

selection<br />

ALARMOUTTYPE<br />

RTC_ALARM<br />

configuration<br />

Don’t care Don’t care 0<br />

Don’t care Don’t care 1<br />

Don’t care Don’t care Don’t care<br />

0 0 1 0 0 Don’t care Don’t care<br />

0 0 1 1 0 0 Don’t care<br />

0 0 0 1 Don’t care 0 Don’t care<br />

Standard GPIO 0 0 0 0 Don’t care Don’t care Don’t care<br />

1. OD: open drain; PP: push-pull.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!