| 数据搜索系统,热门电子元器件搜索 |
|
STMPE2401 数据表(PDF) 29 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STMPE2401 数据表(HTML) 29 Page - STMicroelectronics |
|
29 / 55 page ![]() STMPE2401 GPIO controller 29/55 10.1 GPIO control registers A group of registers are used to control the exact function of each of the 24 GPIO. All GPIO registers are named as GPxxx_yyy, where Xxx represents the functional group Yyy represents the byte position of the GPIO Lsb registers controls GPIO[7:0] Csb registers controls GPIO[15:8] Msb registers controls GPIO[23:16] Note: This convention does not apply to the GPIO Alternate Function Registers The function of each bit is shown in the following table: Address Register name Description Auto-Increment (during sequential R/W) 0x9B GPAFR_U_msb GPIO Alternate Function Register (Upper Bit) Yes 0x9C GPAFR_U_csb Yes 0x9D GPAFR_U_lsb Yes 0x9E GPAFR_L_msb GPIO Alternate Function Register (Lower Bit) Yes 0x9F GPAFR_L_csb Yes 0xA0 GPAFR_L_lsb Yes 0xA5 – 0xAF RESERVED Reserved Yes Table 26. GPIO controller Table 27. Register Bit 7 65 43 210 GPxxx_msb IO-23 IO-22 IO-21 IO-20 IO-19 IO-18 IO-17 IO-16 GPxxx_csb 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 28. Bit’s function 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 |
|
链接网址 |
| 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 |