| 数据搜索系统,热门电子元器件搜索 |
|
STLC1502 数据表(PDF) 52 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STLC1502 数据表(HTML) 52 Page - STMicroelectronics |
|
52 / 81 page ![]() STLC1502 52/81 7.8 GPIO/Keypad encoder The GPIO block is available as a cell that controls 20 input/output pins. The block includes a key scanning encoder. The encoder function is an alternative to the use of 12 I/O pins. The 12 pins are organized as a 6X6 matrix providing an interface to a 36 key keyboard. 16 pins are also multiplexed with the HPI external interface. The HPI interface is selected by external pin HPISEL. Two pins GPIO18, GPIO19 are direct in- terrupt sources in the interrupt register when programmed as inputs. The pin description of the GPIO pins can be found in the Pin Description Table in Section 4.1. 7.8.1 GPIO operation mode The GPIO operation mode is the Parallel Port mode. Each of the 20 signals may be programmed as an input or an output through a set up register. Once pro- grammed, each pin maintains its identity as an input or output. Voltages are standard process port levels, 0 and 3.3 volts. The on chip ARM processor may read or write to the port at any time. 7.8.2 Keyboard operation mode The keyboard may contain up to 36 keys. Twelve (12) port pins provide a 6x6 scanning matrix. Six of the pins are strobes and six of the pins are inputs. The application circuitry will provide small series resistors to prevent electrostatic damage to the port pins. The circuitry will scan the keys at a rate of 10, 20, 40 or 80 msecs, controlled by the software. Two suc- cessive cycles are needed to validate a key. Only one key will be allowed down in a scan cycle. Once validated as being down, the "no key down" condition must be validated for two complete cycles when the key is released. Every valid key condition will cause the value of the key to be written to a register and an interrupt shall be set. Two key rollover will not be supported unless the solution is easier to implement than the method described above. 7.8.4 GPIO registers map [0x0C400000] The base address of GPIO registers is 0x0C400000. The offset of any particular register from the base address is the following. UART_regBase+ 0x20 ASCTxReset WO Flush Transmit buffer (Fifo) UART_regBase+ 0x24 ASCRxReset WO Flush Receive buffer (Fifo) Address Register Name R/W Notes GPIO_regBase+ 0x00 Control R/W This register allows to set the block functionality GPIO_regBase+ 0x04 Mask W This register allows GPIO direc- tion setting (output enable) Address Register Name R/W Notes |
|
链接网址 |
| 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 |