| Electronic Components Datasheet Search |
|
AN2710 Datasheet(PDF) 7 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2710 Datasheet(HTML) 7 Page - STMicroelectronics |
|
7 / 30 page ![]() AN2710 STR71x & STR73x I/O ports 7/30 1.2 General-purpose I/O (GPIO) At reset the I/O ports are configured as general-purpose (memory mapped I/O). When the user writes to the I/O Data register, the data are always loaded into the output latch. The output latch holds the data to be output while the input latch captures the data present on the I/O pin. A read access to the I/O Data register reads the input latch or the output latch depending on whether the port bit is configured as an input or an output. Table 1. STR71x port bit configuration table(1) 1. AF = alternate function, AIN = analog input, HiZ = high impedance, IN = input, IPUPD = input pull-up/pull- down, OD = open drain, OUT = output, PP = push-pull, TRI = tristate, TTL = TTL input levels, WP = weak push-pull. NA = not applicable. In Output mode, a read access the port will get the output latch value). See Figure 4. Port Configuration Registers (bit) Values PC0(n) 01010101 PC1(n) 00110011 PC2(n) 00001111 Configuration HiZ/AIN IN IN IPUPD OUT OUT AF AF Output TRI TRI TRI WP OD PP OD PP Input AIN TTL CMOS CMOS NA NA CMOS CMOS Table 2. STR73x port bit configuration table(1) 1. AF = alternate function, AIN = analog input, HiZ = high impedance, IN = input, IPUPD = input pull-up/pull- down, OD = open drain, OUT = output, PP = push-pull, TRI = tristate, TTL = TTL input levels, WP = weak push-pull. Port Configuration Registers (bit) Values PC0(n) 0 1 0 10101 PC1(n) 0 0 1 10011 PC2(n) 0 0 0 01111 Configuration HiZ/AIN IN reserved IPUPD OUT OUT AF AF Output TRI TRI WP(2) 2. Depending on the PD(n) value, it behaves as weak pull-up (PD=1) or weak pull-down (PD=0) OD PP OD PP Input - TTL TTL TTL TTL TTL TTL |
|
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 |
| 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 |