| 数据搜索系统,热门电子元器件搜索 |
|
STMPE1801 数据表(PDF) 33 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STMPE1801 数据表(HTML) 33 Page - STMicroelectronics |
|
33 / 60 page ![]() STMPE1801 GPIO controller Doc ID 17884 Rev 3 33/60 10.1 GPIO control registers A group of registers is used to control the exact function of each of the 18 GPIOs. All the GPIO registers are named as GPIO_xxx_yyy, where: – xxx represents the functional group – yyy represents the byte position of the GPIO (LOW/MID/HIGH) – LOW registers control GPIO[7:0] – MID registers control GPIO[8:15] – HIGH registers control GPIO[17:16] 10.1.1 Bit description The function of each bit is shown in the following table: 76 5 4 3 2 1 0 GPIO_xxx_HIGH RESERVED IO-16 IO-17 GPIO_xxx_MID IO-15 IO-14 IO-13 IO-12 IO-11 IO-10 IO-9 IO-8 GPIO_xxx_LOW IO-7 IO-6 IO-5 IO-4 IO-3 IO-2 IO-1 IO-0 Register name Description Function GPIO_MP_yyy GPIO monitor pin state Reading this bit yields the current state of the bit. Writing has no effect. GPIO_SET_yyy GPIO set pin state Writing ‘1’ to this bit causes the corresponding GPIO to go to ‘1’ state. Writing ‘0’ has no effect. GPIO_CLR_yyy 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_DIR_yyy GPIO set pin direction ‘0’ sets the corresponding GPIO to input state, and ‘1’ sets it to output state. GPIO_RE_yyy GPIO rising edge Set to ‘1’ enable rising edge detection on the corresponding GPIO. GPIO_FE_yyy GPIO falling edge Set to ‘1’ enable falling edge detection on the corresponding GPIO. GPIO_PULL_UP_yyy GPIO pull up Set to ‘1’ enable internal pull-up resistor. |
|
链接网址 |
| 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 |