29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

RM0008<br />

General-purpose <strong>and</strong> alternate-function I/Os (GPIOs <strong>and</strong> AFIOs)<br />

Figure 16.<br />

Output configuration<br />

Read<br />

Write<br />

Bit set/reset registers<br />

Read/write<br />

Output data register<br />

Input data register<br />

Input driver<br />

Output driver<br />

on<br />

TTL Schmitt<br />

trigger<br />

Output<br />

control<br />

V DD<br />

P-MOS<br />

N-MOS<br />

Push-pull or<br />

V SS Open-drain<br />

V DD or V DD_FT (1)<br />

V SS<br />

Protection<br />

diode<br />

Protection<br />

diode<br />

I/O pin<br />

ai14784<br />

1. V DD_FT is a potential specific to five-volt tolerant I/Os <strong>and</strong> different from V DD .<br />

8.1.9 Alternate function configuration<br />

When the I/O Port is programmed as Alternate Function:<br />

●<br />

The Output Buffer is turned on in Open Drain or Push-Pull configuration<br />

● The Output Buffer is driven by the signal coming from the peripheral (alternate function<br />

out)<br />

● The Schmitt Trigger Input is activated<br />

● The weak pull-up <strong>and</strong> pull-down resistors are disabled.<br />

● The data present on the I/O pin is sampled into the Input Data Register every APB2<br />

clock cycle<br />

● A read access to the Input Data Register gets the I/O state in open drain mode<br />

● A read access to the Output Data register gets the last written value in Push-Pull mode<br />

The Figure 17 on page 144 shows the Alternate Function Configuration of the I/O Port bit.<br />

Also, refer to Section 8.4: AFIO registers on page 158 for further information.<br />

A set of Alternate Function I/O registers allow you to remap some alternate functions to<br />

different pins. Refer to<br />

Doc ID 13902 Rev 9 143/995

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

Saved successfully!

Ooh no, something went wrong!