| Electronic Components Datasheet Search |
|
GMS8160XPL Datasheet(PDF) 27 Page - Hynix Semiconductor |
|
|
|||||||||||||||||||||||||||||
GMS8160XPL Datasheet(HTML) 27 Page - Hynix Semiconductor |
|
27 / 79 page ![]() I/O PORTS The GMS81604/08 have five ports, R0, R1, R4, R5, R6. These ports pins may be multiplexed with an alternate function for the peripheral features on the device. In general, when a initial reset state, all ports are used as a general purpose input port. All pins have data direction registers which can con- figure these pins as output or input. A "1" in the port direction register configures the corresponding port pin as output. Conversely, write "0" to the corresponding bit to specify as an input pin. For example, to use the even numbered bit of R1 as output ports and the odd numbered bits as input ports, write "55H" to address C1H (R0 direction register) during initial setting as shown in Figure 10. Reading data register reads the status of the pins whereas writing to it will write to the port latch. R0 and R0DD registers: R0 is a 8-bit bidirectional I/O port (address C0H). Each pin is individually con- figurable as input and output through the R0DD regis- ter (address C1H). R1 and R1DD registers: R1 is an 8-bit bidirectional I/O port (address C2H). Each pin is individually con- figurable as input and output through the R1DD regis- ter (address C3H). R4 and R4DD registers: R4 is an 8-bit bidirectional I/O port (address C8H). Each pin is individually con- figurable as input and output through the R4DD regis- ter (address C9H). In addition, Port R4 is multiplexed with various special features. The control register PMR4 (address D0H) controls to select alternate function. After reset, this value is "0", port may be used as general I/O ports. To select alternate function such as External interrupt or External counter or Timer clock out, write "1" to the corresponding bit of PMR4. Port Pin Alternate Function R40 R41 R42 R43 INT0 (External Interrupt 0) INT1 (External Interrupt 1) INT2 (External Interrupt 2) INT3 (External Interrupt 3) R44 R45 EC0 (External Count Input to Timer/ Counter 0) EC2 (External Count Input to Timer/ Counter 2) R46 R47 T1O (Timer 1 Clock-Out) T3O (Timer 3 Clock-Out) Regardless of the direction register R4DD, PMR4 is selected to use as alternate functions, port pin can be used as a corresponding alternate features. 0 1 0 1 0 1 0 1 I I O I O I O O WRITE "55H" TO PORT R0 DIRECTION REGISTER 7 6 5 4 3 2 1 0 BIT 7 6 5 4 3 2 1 0 PORT R0 DATA R0 DIRECTION R1 DATA R1 DIRECTION C0H C1H C2H C3H I: INPUT PORT O: OUTPUT PORT Figure 10. Example port I/O assignment R07 R06 R05 R04 R03 R02 R01 R00 Port 0 Data Register ADDRESS: C0H RESET VALUE: Undefined R07 R06 R05 R04 R03 R02 R01 R00 R0DD ADDRESS: C1H RESET VALUE: 00000000 Direction select 0: Input 1: Output Input/ Output data R0 Port 0 Direction Register R17 R16 R15 R14 R13 R12 R11 R10 Port 1 Data Register ADDRESS: C2H RESET VALUE: Undefined R17 R16 R15 R14 R13 R12 R11 R10 R1DD ADDRESS: C3H RESET VALUE: 00000000 Direction select 0: Input 1: Output Input/ Output data R1 Port 1 Direction Register LG Semicon GMS81604/08 23 |
|
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 |