Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN2710 Datasheet(PDF) 20 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) 20 Page - STMicroelectronics

Back Button AN2710 Datasheet HTML 16Page - STMicroelectronics AN2710 Datasheet HTML 17Page - STMicroelectronics AN2710 Datasheet HTML 18Page - STMicroelectronics AN2710 Datasheet HTML 19Page - STMicroelectronics AN2710 Datasheet HTML 20Page - STMicroelectronics AN2710 Datasheet HTML 21Page - STMicroelectronics AN2710 Datasheet HTML 22Page - STMicroelectronics AN2710 Datasheet HTML 23Page - STMicroelectronics AN2710 Datasheet HTML 24Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 20 / 30 page
background image
Recommended configuration sequence
AN2710
20/30
4
Recommended configuration sequence
It appears that the safest sequence for writing the Port Configuration registers in most
situations is: PC2 - PC1 - PC0.
Exceptions to this would be in the following transitions:
1.
Input/Output to Output open drain
2.
Input/Output to Output push-pull
3.
Input/Output to Alternate Function open drain
4.
Input to Output open drain
5.
Input to Alternate Function open drain
In all of these cases the safest sequence for writing the PC registers is: PC0 - PC1 - PC2.
Note:
It is possible to have a level change on a pin during transition between open drain and push-
pull output modes. The resulting output level may be determined by the state of the GPIO
output, alternate function output and/or external pull-up/down (if any). The user needs to be
aware of the output state when changing the pin configuration.
4.1
From alternate push-pull
If the port is set to alternate push-pull, use the following sequences to change modes.
Table 4.
Alternate push-pull to analog input
PC2 - 0
IPUPD(1)
1.
Input pull-up/pull-down.
PC1 - 0
Input
PC0 - 0
No change
Table 5.
Alternate push-pull to input
PC2 - 0
IPUPD(1)
1.
Input pull-up/pull-down.
PC1 - 0
Input
PC0 - 1
No change
Table 6.
Alternate push-pull to Input pull-up/pull-down
PC2 - 0
IPUPD(1)
1.
Input pull-up/pull-down.
PC1 - 1
No change
PC0 - 1
No change
Table 7.
Alternate push-pull to output open drain
PC2 - 1
No change
PC1 - 0
Output push-pull
PC0 - 0
Output open drain



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