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.

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

Figure 20. Input floating/pull up/pull down configurations<br />

Write<br />

Read<br />

Bit set/reset registers<br />

Read/write<br />

Output data register<br />

7.3.10 Output configuration<br />

TTL Schmitt<br />

trigger<br />

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

Input data register<br />

input driver<br />

output driver<br />

● The output buffer is enabled:<br />

– Open drain mode: A “0” in the Output register activates the N-MOS whereas a “1”<br />

in the Output register leaves the port in Hi-Z (the P-MOS is never activated)<br />

– Push-pull mode: A “0” in the Output register activates the N-MOS whereas a “1” in<br />

the Output register activates the P-MOS<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 />

● A read access to the output data register gets the last written value<br />

Figure 21 shows the output configuration of the I/O port bit.<br />

on<br />

VDD<br />

VDD<br />

on/off<br />

protection<br />

pull diode<br />

up<br />

I/O pin<br />

on/off<br />

pull<br />

down<br />

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

VSS<br />

VSS<br />

protection<br />

diode<br />

ai15940b

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

Saved successfully!

Ooh no, something went wrong!