| 数据搜索系统,热门电子元器件搜索 |
|
RM0352 数据表(PDF) 20 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
RM0352 数据表(HTML) 20 Page - STMicroelectronics |
|
20 / 138 page ![]() GPIO RM0352 20/138 DocID024647 Rev 1 Table 5. GPIO configuration registers Address Bit Field name Reset R/W Description 0x00 14 GPIO_WDATA 14'h0000 R/W IO0 to IO10 output value 0x04 14 GPIO_DIR 14'h0000 R/W Data direction register (1 bit per GPIO): – 0: input – 1: output 0x08 14 GPIO_PE 14'h3FFF R/W Pull enable (1 bit per GPIO) – 0: pull disabled – 1: pull enabled 0x0C 32 GPIO_MODE_W 32'h0000_0000 R/W 2 bits mux selection for each I/Os: [1:0] conf. IO0; [3:2] conf. IO1, etc. 0x10 14 GPIO_IS 14'h0000 R/W Interrupt sense register (1 bit per GPIO): – 0: edge detection – 1: level detection 0x14 14 GPIO_IBE 14'h0000 R/W Interrupt both-edges register (1 bit per GPIO): – 0: single edge – 1: both edges 0x18 14 GPIO_IVE 14'h0000 R/W Interrupt event register (1 bit per GPIO): – 0: falling edge / low level – 1: rising edge / high level 0x1C 14 GPIO_IE 14'h0000 R/W Interrupt mask register (1 bit per GPIO): –0: masked – 1: not masked 0x20 14 GPIO_RIS 14'h0000 RMW Raw interrupt status register (1 bit per GPIO) 0x24 14 GPIO_MIS 14'h0000 RMW Masked interrupt status register(1 bit per GPIO) 0x28 14 GPIO_IC 14'h0000 W Interrupt clear register (1 bit per GPIO): – 0: no effect – 1: clear interrupt 0x2C 2 I2C_CONF 2'h3 R/W Bit 0 set to 1 enable the I 2 C mode on the pads master (IO7 and IO8) Bit 1 set to 1 enables the I 2 C mode on the pads slave (IO3) Table 6. Edge/level and rising/falling edge interrupt configuration(1) Configuration Interrupt mode Falling edge Rising edge Both edges Low level High level GPIOIS 0 0 0 1 1 GPIOIBE 0 0 1 NA NA GPIOIEV 0 1 NA 0 1 1. Each I/O has to be configured according to the 3 bits above to detect a different shape of interrupt event. |
|
链接网址 |
| 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 |