| поискавой системы для электроныых деталей |
|
WM8945ECS/R датащи(PDF) 91 Page - Wolfson Microelectronics plc |
|
|
|||||||||||||||||||||||||||||
WM8945ECS/R датащи(HTML) 91 Page - Wolfson Microelectronics plc |
|
91 / 169 page ![]() Production Data WM8945 w PD, May 2011, Rev 4.1 91 CONTROL INTERFACE MODE GPIO PIN AVAILABILITY 2-wire (I2C) GPIO1 GPIO2 GPIO3 GPIO4 3-wire (SPI) GPIO1 GPIO3 GPIO4 4-wire (SPI) GPIO1 GPIO3 Table 61 GPIO Pin Availability Note that CIFMODE/GPIO3 pin selects between I2C and SPI Control Interface modes (see “Control Interface”). To enable GPIO functions on GPIO3, the MODE_GPIO register bit must be set in order to disconnect this pin from the Control Interface circuit. Setting the MODE_GPIO register bit causes the Control Interface mode selection to be latched; it will remain latched until a Software Reset or Power On Reset occurs. The register fields that control the GPIO pins are described in Table 62. For each GPIO, the selected function is determined by the GPn_FN field, where n identifies the GPIO pin (1 to 4). The pin direction, set by GPn_DIR, must be set according to function selected by GPn_SEL. When a pin is configured as a GPIO output, its level can be set to logic 0 or logic 1 using the GPn_LVL field. When a pin is configured as a GPIO input, the logic level can be read from the respective GPn_LVL bit. The GPIO output is inverted with respect to the GPn_LVL register when the polarity bit GPn_POL is set; the equivalent is true of GPIO inputs also. Internal pull-up and pull-down resistors may be enabled using the GPn_PULL fields; this allows greater flexibility to interface with different signals from other devices. Each of the GPIO pins is an input to the Interrupt control circuit and can be used to trigger an Interrupt event. This may be configured as level-triggered or edge-triggered using the GPn_FN registers. Edge detect raises an interrupt when the GPIO status changes; level detect asserts the interrupt for as long as the GPIO status is asserted. See “Interrupts”. An edge-triggered GPIO can be configured to trigger on a single edge or on both edges of the input signal; this is selected using the GPn_INT_MODE registers. A level-triggered or single-edge-triggered input may be configured using the GPn_POL registers to respond to a high level/edge (when GPn_POL = 0) or a low level/edge (when GPn_POL = 1). The GPIO control fields are defined in Table 60. REGISTER ADDRESS BIT LABEL DEFAULT DESCRIPTION R11 (0Bh) GPIO Config 0 GPIO_MODE 0 CIFMODE/GPIO3 pin configuration 0 = Pin configured as CIFMODE 1 = Pin configured as GPIO3 Note – when this bit is set to 1, it is latched and cannot be reset until Power-Off or Software Reset. R12 (0Ch) GPIO1 Control 15 GP1_DIR 1 GPIO1 Pin Direction 0 = Output 1 = Input 14:13 GP1_PULL [1:0] 00 GPIO1 pull-up / pull-down Enable 00 = no pull-up or pull-down 01 = pull-down 10 = pull-up 11 = reserved 12 GP1_INT_ MODE 0 GPIO1 Interrupt Mode 0 = GPIO interrupt is rising edge triggered (if GP1_POL=0) or falling edge triggered (if GP1_POL =1) 1 = GPIO interrupt is triggered on rising and falling edges |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |