| 数据搜索系统,热门电子元器件搜索 |
|
AN2466 数据表(PDF) 9 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2466 数据表(HTML) 9 Page - STMicroelectronics |
|
9 / 13 page ![]() AN2466 Pin description of STMPE801 9/13 2.5.1 Configuring GPIO registers The GPIO pin direction can be selected as input or output by writing into the GPDR register (0x12). The GPIO output state can be set high or low by writing into the corresponding bit in the GPSR register (0x11). If the GPIO is configured as an input, the pin state is monitored by reading the corresponding bit in the GPMR register (0x10). Each GPIO can be individually programmed to generate an interrupt on change of state. Table 5. GPIO Direction register GPDR Bit 7654321 0 IO_7 IO_6 IO_5 IO_4 IO_3 IO_2 IO_1 IO_0 Reset value 0000000 0 Bits Name Description 7:0 GPIO[x] ‘0’: The corresponding GPIO pin is set to Input. ‘1’: The corresponding GPIO pin is set to Output. Table 6. GPIO State register GPSR Bit 7654321 0 IO_7 IO_6 IO_5 IO_4 IO_3 IO_2 IO_1 IO_0 Reset value 0000000 0 Bits Name Description 7:0 GPIO[x] ‘0’: The corresponding GPIO output is set LOW ‘1’: The corresponding GPIO output is set HIGH Table 7. GPIO Monitor register GPMR Bit 7654321 0 IO_7 IO_6 IO_5 IO_4 IO_3 IO_2 IO_1 IO_0 Reset value 0000000 0 Bits Name Description 7:0 GPIO[x] Reading ‘0’: The corresponding GPIO input state is LOW Reading ‘1’: The corresponding GPIO input state is HIGH |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |