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 />

Figure 21. Output configuration<br />

Write<br />

Read<br />

Read/write<br />

Bit set/reset registers<br />

Input driver<br />

Output driver<br />

7.3.11 Alternate function configuration<br />

Output data register<br />

TTL Schmitt<br />

trigger<br />

Output<br />

control<br />

When the I/O port is programmed as alternate function:<br />

● The output buffer can be configured as open-drain or push-pull<br />

● The output buffer is driven by the signal coming from the peripheral (transmitter enable<br />

and data)<br />

● The Schmitt trigger input is activated<br />

● The weak pull-up and pull-down resistors are activated or not depending on the value in<br />

the GPIOx_PUPDR register<br />

● The data present on the I/O pin are sampled into the input data register every AHB1<br />

clock cycle<br />

● A read access to the input data register gets the I/O state<br />

Figure 22 shows the Alternate function configuration of the I/O port bit.<br />

Figure 22. Alternate function configuration<br />

To on-chip<br />

peripheral<br />

Write<br />

Read<br />

Bit set/reset registers<br />

Read/write<br />

From on-chip<br />

peripheral<br />

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

Input data register<br />

Alternate function input<br />

Output data register<br />

Input data register<br />

Alternate function output<br />

Input driver<br />

Output driver<br />

on<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 />

VSS Open-drain<br />

V DD<br />

P-MOS<br />

N-MOS<br />

V<br />

push-pull or<br />

SS open-drain<br />

on/off<br />

on/off<br />

V DD<br />

pull<br />

up<br />

V DD<br />

protection<br />

diode<br />

pull protection<br />

down diode<br />

VSS VSS on/off<br />

on/off<br />

V DD<br />

Pull<br />

up<br />

Pull<br />

down<br />

V DD<br />

V SS VSS<br />

I/O pin<br />

ai15941b<br />

protection<br />

diode<br />

I/O pin<br />

protection<br />

diode<br />

ai15942b

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

Saved successfully!

Ooh no, something went wrong!