Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN2710 Datasheet(PDF) 14 Page - STMicroelectronics

Part # AN2710
Description  Safe GPIO port configuration in STR7xx devices
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2710 Datasheet(HTML) 14 Page - STMicroelectronics

Back Button AN2710 Datasheet HTML 10Page - STMicroelectronics AN2710 Datasheet HTML 11Page - STMicroelectronics AN2710 Datasheet HTML 12Page - STMicroelectronics AN2710 Datasheet HTML 13Page - STMicroelectronics AN2710 Datasheet HTML 14Page - STMicroelectronics AN2710 Datasheet HTML 15Page - STMicroelectronics AN2710 Datasheet HTML 16Page - STMicroelectronics AN2710 Datasheet HTML 17Page - STMicroelectronics AN2710 Datasheet HTML 18Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 14 / 30 page
background image
STR75x general-purpose I/O ports (GPIO)
AN2710
14/30
And obviously, the corresponding port should not be driven externally as it will be driven by
the firmware using the GPIO controller.
●
For alternate function outputs, the port must be configured in Alternate Function Output
mode (push-pull or open-drain).
●
For bidirectional alternate functions, the port bit must be configured in Alternate
Function Output mode (push-pull or open-drain). In this case the input driver is
configured in input floating mode
Configuring a port bit as Alternate Function Output will disconnect the output latch and
connect the pin to the output signal of an on-chip peripheral.
If firmware configures a GPIO pin as Alternate Function Output, but no peripheral output
alternate function exists for that pin (refer to the datasheet pin description table), its output is
not specified.
Special case of SSP bidirectional alternate functions
When using the SSP, the MISO, MOSI, NSS and SCK alternate functions consist of
bidirectional alternate functions. They must be configured as alternate function output
through the Port Configuration register:
●
When configuring the SSP in master mode, the MISO pin is automatically used as an
alternate function input and the output driver is automatically disabled (even if still
programmed as alternated function output in the Port Configuration registers).
In addition, when configured in master mode, the MOSI pin is always driven (never left
Hi-Z) even if the SSP is in idle mode (no transmission)
●
When configuring the SSP in slave mode, the MOSI, SCK and NSS pins are
automatically configured as alternate functions inputs and the output drivers are
automatically disabled (even if still programmed as alternated function outputs in the
Port Configuration registers).
In addition, when configured in slave mode, the MISO pin is left Hi-Z when the NSS pin
is high or when the SOD control bit (Slave Output Disable) is set.
Configuring I2C alternate functions
After reset release, the I2C is able to detect a Start condition on the SDA and SCL lines even
if the I2C is not configured. (Refer to the SDA/SCL line control section in the STR75x
reference manual)
Consequently, care must be taken when configuring SDA and SCL as alternate function
open-drain in order not to create parasitic falling edges.
The states to avoid are:
●
output 0
●
input pull-down
●
analog input (because the output of the Schmitt trigger goes to 0)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com