| 数据搜索系统,热门电子元器件搜索 |
|
STMPE1601 数据表(PDF) 30 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STMPE1601 数据表(HTML) 30 Page - STMicroelectronics |
|
30 / 58 page ![]() GPIO controller STMPE1601 30/58 10.1 GPIO control registers A group of registers is used to control the exact function of each of the 16 GPIOs. All the GPIO registers are named as GPxxx_yyy, where: – Xxx represents the functional group – Yyy represents the byte position of the GPIO – Lsb registers control GPIO[7:0] – Msb registers control GPIO[8:15] The function of each bit is shown in the following table: Table 19. Bit description 765 43 21 0 GPxxx_msb IO-15 IO-14 IO-13 IO-12 IO-11 IO-10 IO-9 IO-8 GPxxx_lsb IO-7 IO-6 IO-5 IO-4 IO-3 IO-2 IO-1 IO-0 Table 20. Register description Register name Function GPIO monitor pin state Reading this bit yields the current state of the bit. Writing has no effect. GPIO set pin state Writing ‘1’ to this bit causes the corresponding GPIO to go to ‘1’ state. Writing ‘0’ has no effect. GPIO clear pin state Writing ‘1’ to this bit causes the corresponding GPIO to go to ‘0’ state. Writing ‘0’ has no effect. GPIO set pin direction ‘0’ sets the corresponding GPIO to input state, and ‘1’ sets it to output state GPIO edge detect status Set to ‘1’ by hardware when there is a rising/falling edge on the corresponding GPIO. Writing ‘1’ clears the bit. Writing ‘0’ has no effect. GPIO rising edge Set to ‘1’ to enable rising edge detection on the corresponding GPIO. GPIO falling edge Set to ‘1’ to enable falling edge detection on the corresponding GPIO. GPIO pull up Set to ‘1’ to enable internal pull-up resistor GPIO alternate function (upper bit) ‘00’ for primary function ‘01’ for Alternate Function 1 ‘10’ for Alternate Function 2 ‘11’ - Reserved GPIO alternate function (lower bit) |
|
链接网址 |
| 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 |