| Electronic Components Datasheet Search |
|
CS9211 Datasheet(PDF) 38 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
CS9211 Datasheet(HTML) 38 Page - National Semiconductor (TI) |
|
38 / 62 page ![]() www.national.com 38 Revision 2.1 Functional Description (Continued) 3.2.13 General Purpose I/O Pins The CS9211 provides eight GPIO (General Purpose I/O) pins. There are two 32-bit registers used for programming the GPIO pins: • GPIO Control Register (Offset 438h): — TYPE Bits [7:0] - Allows for setting each GPIO pin’s direction (i.e., input or output). — MODE Bits [15:8] - Selects pins mode (i.e., normal mode or weak pull-up/down mode). — PUPD Bits [23:16] - Enables selected pull-up/down mode (as long as corresponding MODE bit is enabled and TYPE bit is set as an output). • GPIO Data Register (Offset 434h) — DATA Bits [7:0] - Contain direct values of the GPIO pins. Write operations to the corresponding GPIO pins should be done only for bits defined as outputs. Reads from the data register will read the last written value if the pin is an output. — STS Bits [15:8] are read only status bits. The valid GPIO pins’ status can be read from those pins. Table 3-19 "GPIO Pin Programming Registers" on page 38 gives the bit formats of the registers used for programming the GPIO pins. Table 3-19. GPIO Pin Programming Registers Bit Name Description Offset 434h-437h GPIO Data Register (R/W) Reset Value = xxxxxx00h 31:16 RSVD Reserved (Read Only) 15 GPIO7_STS GPIO7 Pin State (Read Only): Reports the value of pin GPIO7 when it is configured as an input. 14 GPIO6_STS GPIO6 Pin State (Read Only): Reports the value of pin GPIO6 when it is configured as an input. 13 GPIO5_STS GPIO5 Pin State (Read Only): Reports the value of pin GPIO5 when it is configured as an input. 12 GPIO4_STS GPIO4 Pin State (Read Only): Reports the value of pin GPIO4 when it is configured as an input. 11 GPIO3_STS GPIO3 Pin State (Read Only): Reports the value of pin GPIO3 when it is configured as an input. 10 GPIO2_STS GPIO2 Pin State (Read Only): Reports the value of pin GPIO2 when it is configured as an input. 9 GPIO1_STS GPIO1 Pin State (Read Only): Reports the value of pin GPIO1 when it is configured as an input. 8 GPIO0_STS GPIO0 Pin State (Read Only): Reports the value of pin GPIO0 when it is configured as an input. 7 GPIO7_DATA GPIO7 Pin Configuration: Reflects the level of GPIO7. 0 = Low, 1 = High. (Note) 6 GPIO6_DATA GPIO6 Pin Configuration: Reflects the level of GPIO6. 0 = Low, 1 = High. (Note) 5 GPIO5_DATA GPIO5 Pin Configuration: Reflects the level of GPIO5. 0 = Low, 1 = High. (Note) 4 GPIO4_DATA GPIO4 Pin Configuration: Reflects the level of GPIO4. 0 = Low, 1 = High. (Note) 3 GPIO3_DATA GPIO3 Pin Configuration: Reflects the level of GPIO3. 0 = Low, 1 = High. (Note) 2 GPIO2_DATA GPIO2 Pin Configuration: Reflects the level of GPIO2. 0 = Low, 1 = High. (Note) 1 GPIO1_DATA GPIO1 Pin Configuration: Reflects the level of GPIO1. 0 = Low, 1 = High. (Note) 0 GPIO0_DATA GPIO0 Pin Configuration: Reflects the level of GPIO0. 0 = Low, 1 = High. (Note) Note: Bits [7:0] contain the direct values of the GPIO pins. Write operations can be done only for GPIOs that are defined as outputs. Reads from these bits read the last written value if the GPIO pin is configured as an output. The direction of the GPIO pins is con- trolled through Offset 438h[7:0]. Offset 438h-43Bh GPIO Control Register (R/W) Reset Value = 00000000h 31:24 RSVD Reserved:Set to 0. 23 GPIO7_PUPD GPIO7 Pin Pull-up or Pull-down Mode: 0 = Pull-down mode; 1 = Pull-up mode. (Note) 22 GPIO6_PUPD GPIO6 Pin Pull-up or Pull-down Mode: 0 = Pull-down mode; 1 = Pull-up mode. (Note) 21 GPIO5_PUPD GPIO5 Pin Pull-up or Pull-down Mode: 0 = Pull-down mode; 1 = Pull-up mode. (Note) 20 GPIO4_PUPD GPIO4 Pin Pull-up or Pull-down Mode: 0 = Pull-down mode; 1 = Pull-up mode. (Note) 19 GPIO3_PUPD GPIO3 Pin Pull-up or Pull-down Mode: 0 = Pull-down mode; 1 = Pull-up mode. (Note) 18 GPIO2_PUPD GPIO2 Pin Pull-up or Pull-down Mode: 0 = Pull-down mode; 1 = Pull-up mode. (Note) 17 GPIO1_PUPD GPIO1 Pin Pull-up or Pull-down Mode: 0 = Pull-down mode; 1 = Pull-up mode. (Note) 16 GPIO0_PUPD GPIO0 Pin Pull-up or Pull-down Mode: 0 = Pull-down mode; 1 = Pull-up mode. (Note) 15 GPIO7_MODE GPIO7 Pin Mode: 0 = Normal mode; 1 = Weak pull-up or weak pull-down mode. 14 GPIO6_MODE GPIO6 Pin Mode: 0 = Normal mode; 1 = Weak pull-up or weak pull-down mode. 13 GPIO5_MODE GPIO5 Pin Mode: 0 = Normal mode; 1 = Weak pull-up or weak pull-down mode. 12 GPIO4_MODE GPIO4 Pin Mode: 0 = Normal mode; 1 = Weak pull-up or weak pull-down mode. 11 GPIO3_MODE GPIO3 Pin Mode: 0 = Normal mode; 1 = Weak pull-up or weak pull-down mode. 10 GPIO2_MODE GPIO2 Pin Mode: 0 = Normal mode; 1 = Weak pull-up or weak pull-down mode. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |