GL651USB [ETC]
2-PORT USB KEYBOARD HUB CONTROLLER; 2端口USB键盘集线器控制器型号: | GL651USB |
厂家: | ETC |
描述: | 2-PORT USB KEYBOARD HUB CONTROLLER |
文件: | 总16页 (文件大小:127K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
Genesys Logic, Inc.
GL651USB
2-PORT USB KEYBOARD HUB
CONTROLLER
DATA SHEET
Version 1.0, Feb. 11, 2000
Genesys Logic, Inc.
10F, No.11, Ln.3, Tsao Ti Wei, Shenkeng, Taipei, Taiwan
Tel: 886-2-2664-6655
Fax: 886-2-2664-5757
http://www.genesyslogic.com
GL651USB USB KEYBOARD HUB CONTROLLER
1
FEATURES
· High performance and low-cost solution for USB keyboard with hub solution
· USB Specification Compliance
-
-
-
-
Conforms to USB specification Rev. 1.1
Conforms to HID Class specification Rev. 1.0
Supports 1 device address for hub, 1 device address for keyboard
Supports 2 endpoints of hub, 3 endpoints for keyboard
· 8-bit micro-processor
-
-
-
-
-
RISC-like architecture
USB optimized instruction set
Single cycle instruction execution
Operation Speed: DC to 24 MHz clock input
Performance: 12 MIPS @ 24MHz
· I/O ports
-
-
-
-
Up to 20 output pins for key matrix drive pin
Up to 8 input pins for key matrix sense pin
Up to 5 I/O pins with LED drive capability : 3 for keyboard, 2 for hub
Up to 8 general purpose I/O pins for customization
· Internal memory
-
-
-
80 bytes of RAM
3.25K ´ 14 of program ROM
larger size of ROM makes it possible for customization
· On-chip 3.3v output
-
No external regulator required
· Integrated USB transceiver
· 12 MHz external clock
· Improved output drivers with slew-rate control to reduce EMI
· Internal power-on reset(POR)
· Internal power-fail detector for ESD recovery
· Support suspend/normal mode power management
· Remote wakeup is supported for both keyboard and hub
· Support power management for downstream port devices
· Automatic switching between self/bus powered mode
· Smart LED traffic indicator
-
The higher data traffic flows through the hub downstream port, the higher
frequency that port’s LED will blink.
· 100 pin LQFP package for demo, COB structure is supported
Version 1.0
2
03/06/00
GL651USB USB KEYBOARD HUB CONTROLLER
2
FUNCTION OVERVIEW
The GL651USB is an USB keyboard hub with 1 upstream port and 2 downstream ports.
It integrates USB keyboard and hub in a single chip to add extra value to traditional
keyboard and lower its total cost. The GL651USB uses an 8-bit RISC-like uC to
encode/decode the host commands and to decode the keyboard matrix data. Its 8 general-
purpose I/O(GPIO) pins and the uC-based structure make the implementation of
customization very easy. The GL651USB supports 20 drive pins to meet the diversity of
keyboard matrix. Besides, 5 GPIO pins support the LED driving, 3 for keyboard and 2
for hub. Hence vendors can decide whether or not to enable the hub LED function easily.
For giving more design flexibility, the power supply of GL651USB can be switched
automatically: self-power or bus-power. In the same way, vendors can pullup/pulldown
the SELF pin to support only self/bus power if they have cost issue. The GL651USB can
be configured as ganged/individual mode for hub functions by strapping through
pullup/pulldown the SUSPND pin. To prevent from abnormal current consumption of
downstream port devices, the GL651USB supplies power enable flags by reading the
over-current flags. By hub LED, The GL651USB also supports smart traffic indication,
i.e., the higher data traffic flows through one port, the higher frequency of that port’s
LED blinks. In order to minimize the power consumption, the GL651USB will turn LED
off and stop the clock automatically when it is suspended.
The GL651USB is the most featured and flexible product for those venders who are
looking for “USB Keyboard with Hub” solution. Besides, vendors can easily modify their
board circuits to meet their own requirement if they have product differentiation or cost
issues. Further more, if vendor has the requirement of saving their package cost, COB
component also can be supplied by request.
Version 1.0
3
03/06/00
GL651USB USB KEYBOARD HUB CONTROLLER
3
PIN DEFINITIONS AND DESCRIPTIONS
l
GL651USB
Pin No.
Name
I/O
-
Description
3
5
7
GND
DM2
DP2
DM0
DP0
VCP
DM1
DP1
Analog ground
I/O
I/O
I/O
I/O
-
I/O
I/O
-
Downstream port 2 USB data-
Downstream port 2 USB data+
Upstream port USB data-
Upstream port USB data+
3.3V output
Downstream port 1 USB data-
Downstream port 1 USB data+
VCC(5V)
9
11
13
15
17
19
21
VDD
NUMLOCK
CAPSLOCK
SCLOCK
TEST
I/O
Keyboard Num LOCK LED
Also can be used as general purpose pin GPIO0
Keyboard Caps Lock LED
Also can be used as general purpose pin GPIO1
Keyboard Scroll Lock LED
Also can be used as general purpose pin GPIO2
Test mode input: (internal pull low)
For 48 Mhz oscillator clock input, pull high
For 12 Mhz crystal clock input, floating
Key matrix drive output 1
Key matrix drive output 2
Key matrix drive output 3
Key matrix drive output 4
Key matrix drive output 5
Key matrix drive output 6
Key matrix drive output 7
Key matrix drive output 8
Key matrix drive output 9
Key matrix drive output 10
Key matrix drive output 11
Key matrix drive output 12
Key matrix drive output 13
Key matrix drive output 14
Key matrix drive output 15
GND
23
25
27
I/O
I/O
I
29
31
32
34
35
37
38
40
41
43
44
46
47
49
50
52
54
56
58
60
62
64
DRV1
DRV2
DRV3
DRV4
DRV5
DRV6
DRV7
DRV8
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
-
DRV9
DRV10
DRV11
DRV12
DRV13
DRV14
DRV15
GND
DRV16
DRV17
DRV18
DRV19
DRV20
SUSPND
O
O
O
O
O
I/O
Key matrix drive output 16
Key matrix drive output 17
Key matrix drive output 18
Key matrix drive output 19
Key matrix drive output 20
Suspend indication output and individual setting input
Pull low: individual mode.
Pull high: ganged mode
66
68
70
72
GPIO7
GPIO6
VDD
I/O
I/O
-
General purpose pin 7
General purpose pin 6
VCC(5V)
General purpose pin 5
GPIO5
I/O
Version 1.0
4
03/06/00
GL651USB USB KEYBOARD HUB CONTROLLER
73
75
76
78
79
81
82
84
85
87
88
90
91
93
94
96
97
99
GPIO4
GPIO3
RESET
SELF
I/O
I/O
I
I
I
I
I
I
I
I
I
I
O
O
I
I
O
I
General purpose pin 4
General purpose pin 3
Reset input
1: self-powered. 0: bus-powered
Keyboard matrix sense input 1
Keyboard matrix sense input 2
Keyboard matrix sense input 3
Keyboard matrix sense input 4
Keyboard matrix sense input 5
Keyboard matrix sense input 6
Keyboard matrix sense input 7
Keyboard matrix sense input 8
Power enable for downstream port 1
Power enable for downstream port 2
Over current flag for downstream port1
Over current flag for downstream port2
Ceramic resonator or crystal out
Ceramic resonator or crystal in
SENSE1
SENSE2
SENSE3
SENSE4
SENSE5
SENSE6
SENSE7
SENSE8
PWRENB1#
PWRENB2#
OVCUR1#
OVCUR2#
XTAL2
XTAL1
Note 1: “#” means low active
Table 1 GL651USB Pin Definitions and Descriptions
U?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
NC
NC
GND
NC
DM2
NC
DP2
NC
DM0
NC
DP0
NC
VCP
NC
DM1
NC
DP1
NC
VDD
NC
NUMLOCK
NC
CAPSLOCK
NC
SCLOCK
NC
TEST
NC
DRV1
NC
NC
SENSE1
SELF
NC
RESET
GPIO3
NC
GPIO4
GPIO5
NC
VDD
NC
GPIO6
NC
GPIO7
NC
SUSPND
NC
DRV20
NC
DRV19
NC
DRV18
NC
DRV17
NC
DRV16
NC
GND
NC
GL651USB
Version 1.0
5
03/06/00
GL651USB USB KEYBOARD HUB CONTROLLER
4
Functional description
PC HOST
D+
D-
drive
KEY
MATRIX
KMIF
sense
uC
HUB REPEATER
PORT
CONTROLLER
PORT
CONTROLLER
PLL
Clock48 mhz
Clock 12 mhz
D+
D-
D+
D-
DOWN PORT1
DOWN PORT2
Version 1.0
6
03/06/00
GL651USB USB KEYBOARD HUB CONTROLLER
TRANSCIVER: TRANSCIVER is the analog circuits, which takes care of the electrical
characteristics of USB.
SIE:
SIE is the serial interface engine. The main responsibility of SIE is to
code/decode USB protocol. SIE guarantee the GL651USB always
function in a correct state.
KMIF:
KMIF is the interface of key matrix and GL651USB. KMIF drives the
key matrix and sense the input. The sensed data is then output to the
registers, which provide the uC to judge the pressed key.
REGISTERS:
REPEATER:
REGISTERS is the interface of hardware and software. The used
registers will be listed in the later section.
REPEATER is the kernel of hub. It repeats the data accurately from the
upstream port to the downstream port, and vice versa.
PORT CONTROLLER: Each downstream port of hub needs a PORT CONTROLLER
respectively. It monitors the state of the port.
PLL:
PLL extracts 48 Mhz clock from input 12 Mhz clock. This 48 Mhz
clock is used to generate USB clock in the digital PLL circuit.
5
REGISTER SUMMARY
MNEMONIC
DEVCTL
OFFSET
00h
DESCRIPTION
Device control register
EVTFLG_1
01h
USB function interrupt flag
EVTFLG_2
02h
USB function interrupt flag
RXCTL0_HB
RXCTL0_KB
TXCTL0_HB
TXCTL0_KB
TXCTL123
FFDAT0_HB
FFDAT0_KB
FFDAT123
BUFCTL
DRVSEL
SENSE
ENDP_PORT_SEL
HUB_STAT_CHG
PORT_STATUS
BUS_PORT_DATA
HOST_CMD
ENP2_IND
03h
04h
05h
06h
07h
08h
09h
0Ah
0Bh
0Ch
0Dh
0Eh
0Fh
10h
11h
12h
13h
Endpoint 0 RX control of hub
Endpoint 0 RX control of keyboard
Endpoint 0 TX control of hub
Endpoint 0 TX control of keyboard
Endpoint 1,2, and 3 TX control
Data buffer (FIFO) for endpoint 0 of hub
Data buffer (FIFO) for endpoint 0 of keyboard
Data buffer (FIFO) for endpoint 1, 2, and 3
Data buffer control register
DRV1 ~ DRV18 select
SENSE1 ~ SENSE8 input
Endpoint selected and hub port to be configured
Hub status and status change indicator
Hub ports status indicator
Hub ports status change indicator
Host command to HUB
Hub interrupt indicator
Version 1.0
7
03/06/00
GL651USB USB KEYBOARD HUB CONTROLLER
LEDCTL
KBSTUS
REV
HUBSTUS
MODSEL
14h
15h
16h
17h
18h
LED control flag
Keyboard address and configuration status
Chip revision
USB hub address and configuration status
Strapping mode register
R/O:
read only
read / write
read / write “1” to clear
R/W:
R/W1C:
W/O:
write only
DEVCTL
( offset 00, default = 00h )
R/W
R/O
R/W
R/W
R/W
R/O
R/W
USBRDY
--
RW_KB RW_HUB SFRAME
SELF
PWRDN
GANG
USBRDY
: 0 - USB interface is not ready. The device drives USB with SE0.
1 - USB interface is ready. The device stops driving USB with SE0.
After power-on reset, USBRDY is cleared and the device looks like
disconnected. Set USBRDY to ‘1’ to enable USB interface.
: 0 – Individual mode. 1 – gang mode.
GANG
RW_KB
RW_HUB
SFRAME
: remote wakeup ability enable for keyboard.
: remote wakeup ability enable for hub.
: short frame option for test purpose
Set SFRAME to ‘1’ will shorten frame length to 1/15 ms. It is to shorten the
time required for test.
SELF
: 0 - HUB is bus powered.
1 - HUB is self-powered.
PWRDN
: power down mode
In suspend state, firmware can set PWRDN to put the controller into power
down mode. In this mode, the embedded micro-controller and most internal
activities are frozen.
EVTFLG
_1
( offset 01, default = 00h )
R/W1C
R/W1C
R/W1C
R/W1C
R/W1C
R/W1C
R/W1C
EP3TX
EP2TX
EP1TX
EP0TXKB EP0TXHB
EP0RXHB
--
EP0RXKB
Interrupt event flag –
EP0RXHB
: a SETUP or OUT transaction to endpoint 0 of hub is accepted
EP0RXKB
EP0TXHB
EP0TXKB
EPnTX
: a SETUP or OUT transaction to endpoint 0 of keyboard is accepted
: USB host controller accepts hub data transmitted via endpoint 0.
: USB host controller accepts keyboard data transmitted via endpoint 0.
: USB host controller accepts data transmitted via endpoint n
Version 1.0
8
03/06/00
GL651USB USB KEYBOARD HUB CONTROLLER
EVTFLG
_2
( offset 02, default = 00h )
R/W1C
R/W1C
R/W1C
R/W1C
R/W1C
--
--
WAKEUP
SUSPD
USBRST
SOF
C_LCPWR
--
Interrupt event flag –
SUSPD
: the controller goes into suspend state
WAKEUP
: remote wakeup is detected when global suspended
USBRST
: End of USB reset
SOF
C_LCPWR
: SOF detected or generated by HUB timer.
: POWER source change.
RXCTL0_HB
R/W
( offset 03, default = 40h )
R/O
R/O
R/O
R/O
R/O
R/O
R/O
RXDIS
RXSETUP RXOUT
RXSEQ
RXCNT3 RXCNT2 RXCNT1 RXCNT0
RXCTL0 of hub.
Status of endpoint 0 receiving –
RXCNT3~0
RXSEQ
: EP0 received data byte count.
: 1 - The received data PID is DATA1
0 - The received data PID is DATA0
RXOUT
RXSETUP
RXDIS
: 1 - The received token PID is OUT.
: 1 - The received token PID is SETUP.
: 0 - Endpoint 0 FIFO is empty and ready for data-packet receiving.
1 - Endpoint 0 FIFO is filled with data and will reject the new-coming data
packet.
If RXDIS = 1, the device will not accept an OUT transaction addressed to it, and will respond
with a NAK to an error-free transaction. Hardware will automatically set RXDIS after a
successful receiving. After processing, the micro-controller should clear RXDIS to enable next
data-packet receiving or free FF0 for filling of the data to transmit. Note that a SETUP
transaction addressed to the device is always accepted even though RXDIS = 1.
RXCTL0_KB
( offset 04, default = 40h )
R/W
R/O
R/O
R/O
R/O
R/O
R/O
R/O
RXDIS
RXSETUP RXOUT
RXSEQ
RXCNT3 RXCNT2 RXCNT1 RXCNT0
RXCTL0 of keyboard. Definition of each bit is the same as RXCTL0_HB.
TXCTL0_HB
--
( offset 05, default = 00h )
R/W
EP0STL
R/W
R/W
R/W
R/W
R/W
R/W
EP0OE
EP0SEQ
EP0CNT3 EP0CNT2 EP0CNT1 EP0CNT0
TXCTL0 of hub.
Endpoint 0 transmit setting –
EP0CNT3~0
: number of data bytes to transmit
EP0OE
: enable data transmit
1 – ready to transmit data packet
0 – not ready to transmit data packet (default)
: data packet type
0 –DATA0
1 –DATA1
EP0SEQ
EP0STL
: set endpoint 0 stall
1 – EP0 will respond to USB host controller with STALL packet
EP0STL will be automatically cleared when a setup transaction is accepted.
After filling the data-to-transmit into FF0, the micro-controller should setup this register to
enable endpoint 0 data transmit. If EP0OE = 0, endpoint 0 will respond to a valid IN transaction
Version 1.0
9
03/06/00
GL651USB USB KEYBOARD HUB CONTROLLER
with a NAK. EP0OE will be automatically cleared after a successful transmission, or when
endpoint 0 has incidentally accepted another SETUP or OUT transaction.
TXCTL0_KB
( offset 06, default = 00h )
R/W
R/W
R/W
R/W
R/W
R/W
R/W
--
EP0STL
EP0OE
EP0SEQ
EP0CNT3 EP0CNT2 EP0CNT1 EP0CNT0
TXCTL0 of hub. Definition of each bit is the same as TXCTL0_HB.
TXCTL123
--
( offset 07, default = 00h )
R/W
EPnSTL
R/W
R/W
R/W
R/W
R/W
R/W
EPnOE
EPnSEQ
EPnCNT3 EPnCNT2 EpnCNT1 EpnCNT0
Endpoint n(1~3) transmit setting –
EPnCNT3~0
EPnOE
: number of data bytes to transmit.
: enable data transmit
1 – ready to transmit data packet
0 – not ready to transmit data packet (default)
EPnSEQ
EPnSTL
: data packet type
0 –DATA0
1 –DATA1
: set endpoint n stall
1 – EPn will respond to USB host controller with STALL packet
0 – default
After preparing the data to transmit, the micro-controller should setup this register to enable
endpoint n data transmit. If EPnOE = 0, endpoint n will respond to a valid IN transaction with a
NAK. After a successful transmission, the device will automatically clear EPnOE. EPSEL1~3
must be set before settingTXCTL123.
FFDAT0_HB
R/W
( offset 08, default = 00h )
R/W
R/W
R/W
R/W
R/W
R/W
R/W
FFD7
FFD6
FFD5
FFD4
FFD3
FFD2
FFD1
FFD0
FFDAT0 of hub.
Each FFDAT0 read/write will automatically increase the FIFO pointer, which is a 3-bit circular
counter, by 1. Writing FPRST0 with ‘1’ (in BUFCTL) will reset the pointer. Note that to fill
FFDAT0, RXDIS (in RXCTL0) must be first cleared.
FFDAT0_KB
( offset 09, default = 00h )
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
FFD7
FFD6
FFD5
FFD4
FFD3
FFD2
FFD1
FFD0
FFDAT0 of hub. Definition of each bit is the same as FFDAT0_HB.
FFDAT123
R/W
( offset 0A, default = 00h )
R/W
R/W
R/W
R/W
R/W
R/W
R/W
FFD7
FFD6
FFD5
FFD4
FFD3
FFD2
FFD1
FFD0
Each FFDAT123 read/write will automatically increase the FIFO pointer, which is a 3-bit
circular counter, by 1. Writing FPRST1 with ‘1’ (in BUFCTL) will reset the pointer. EPSEL1~3
must be set before setting FFDAT123.
BUFCTL
--
( offset 0B)
R/W
FPRST1
R/W
FPRST0
--
--
--
--
--
Data buffer control –
FPRST[1:0]
: Reset FIFO pointer of FIFO 0~3.
Version 1.0
10
03/06/00
GL651USB USB KEYBOARD HUB CONTROLLER
Before FFRST[1:0] is used, ENDP[1~3] must have been set.
DRVSEL
--
( offset 0C)
R/W
INVDRV
R/W
DRVOE
R/W
DRV4
R/W
DRV3
R/W
DRV2
R/W
DRV1
R/W
DRV0
DRV[4:0]
: Select one of DRV1 to DRV20 port to drive if DRVOE is set.
5’h00 ~ 5’h11 stand for DRV1 to DRV20.
NOTE: 5’h14 ~5’h1f are invalid.
DROVE
: DRV[4:0] output enable. ONLY when DRVOE is set can DRV[4:0] drive
out.
INVDRV
: Set this bit to drive all DRV1-20 to low except the selected drive pin
SENSE ( offset 0D, default = 00h )
R/O
R/O
R/O
R/O
R/O
R/O
R/O
R/O
SENSE8
SENSE7
SENSE6
SENSE5
SENSE4
SENSE3
SENSE2
SENSE1
PORT_ENDP_SEL
( offset 0E, default = 00h )
R/W R/W
PORTSEL PORTSEL PORTSEL
R/W
R/W
R/W
R/W
--
--
EPSEL3
EPSEL2
EPSEL1
3
2
1
Port under host command or Endpoint under host request
PORTSEL1
PORTSEL2
PORTSEL3
EPSEL3
EPSEL2
EPSEL1
1’b1 – port 1 selected
1’b1 – port 2 selected
1’b1 – port 3 selected
1’b1 – endpoint 3 is selected
1’b1 – endpoint 2 is selected
1’b1 – endpoint 1 is selected
Before FFDAT123 and TXCTL123 is used, EPSEL1~3 must have been set.
HUB_STAT_CHG
( offset 0F, default = 00h )
R/O
R/O
R/O
R/O
LCPWR
OVCUR
--
--
--
--
C_LCPWR C_OVCUR
HUB status and status change
LCPWR : HUB local power status
1’b0 – local power good
1’b1 – local power lost
OVRCUR
: HUB over current indicator
1’b0 – No over-current condition currently exists
1’b1 – A hub over-current condition exists
C_LCPWR
C_OVRCUR
: Local power status change
1’b0 – No change has occurred to local power status
1’b1 – local power status has changed
: HUB over current indicator change
1’b0 – No change has occurred to the over-current indicator
1’b1 – Hub over-current indicator has changed
PORT_STATUS ( offset 10, default = 00h )
R/O
R/O
R/O
R/O
R/O
R/O
R/O
PT_LOW_ PT_PWR
SPD
--
PT_RST PT_OVCU PT_SUS
R
PT_EN
PT_CON
Port status indicator:
Version 1.0
11
03/06/00
GL651USB USB KEYBOARD HUB CONTROLLER
PT_LOW_SPD
:1’b0 – full speed device connected, 1’b1 – low speed device
connected.
PT_PWR
PT_RST
1’b0 – port is in power off state, 1’b1 – port is not in power
off state
:1’b0 – Reset signaling not asserted, 1b’1 – Reset signaling
asserted
PT_OVCUR
PT_SUS
: 1’b0 – No over-current condition occurred on this port
1’b1 – An over-current condition exists on this port
: 1’b0 – port not suspended, 1’b1 – port suspended or
resuming
PT_EN
PT_CON
: 1’b0 – port is disabled, 1’b1 – port is enabled
: 1’b0 – No device is present, 1’b1 – A device is present on
this port
BUS_PORT_DATA
( offset 11, default = 00h )
R/O
R/O
R/O
R/O
R/O
C_PT_
SUS
R/O
C_PT_EN
R/O
C_PT_
CON
VP
VM
--
C_PT_RST C_PT_
OVCUR
Bus state and Port status change indicator:
VP
: VP state on the downstream port
VM
: VM state on the downstream port
C_PT_RST
C_PT_OVCUR
: 1’b0 – No change, 1’b1 – Reset complete
: 1’b0 – No change has occurred to over-current indicator
: 1’b1 – over-current indicator has changed
: 1’b0 – No change, 1’b1: – Resume complete
: Set to one when a port is disabled because of a Port_error
condition
C_PT_SUS
C_PT_EN
C_PT_CON
: 1’b0 – No change has occurred to current connect status
: 1’b1 – Current connect status has changed
HOST_CMD
( offset 12, default = 0Fh )
W/O W/O
W/O
W/O
W/O
W/O
W/O
W/O
HB_CMD3 HB_CMD2 HB_CMD1 HB_CMD0 PT_CMD3 PT_CMD2 PT_CMD1 PT_CMD0
Host command to the hub:
PT_CMD3~0
: 4’h0 –SetPortFeature(PORT_SUSPEND)
: 4’h1 –SetPortFeature(PORT_RESET)
: 4’h2 –SetPortFeature(PORT_POWER)
: 4’h3 –ClearPortFeature(PORT_ENABLE)
: 4’h4 –ClearPortFeature(PORT_SUSPEND)
: 4’h5 –ClearPortFeature(PORT_POWER)
: 4’h6 –ClearPortFeature(C_PORT_RESET)
: 4’h7 –ClearPortFeature(C_PORT_OVER_CURRENT)
: 4’h8 –ClearPortFeature(C_PORT_SUSPEND)
: 4’h9 –ClearPortFeature(C_PORT_ENABLE)
: 4’hA –ClearPortFeature(C_PORT_CONNECTION)
: 1’b1 –SetHubFeature(C_HUB_LOCAL_POWER)
: 1’b1 –SetHubFeature(C_HUB_OVER_CURRENT)
: 1’b1 –ClearHubFeature(C_HUB_LOCAL_POWER)
: 1’b1 –ClearHubFeature(C_HUB_OVER_CURRENT)
HB_CMD3
HB_CMD2
HB_CMD1
HB_CMD0
ENP2_IND
--
( offset 13, default = 00h )
-- --
R/O
PT3
R/O
PT2
R/O
PT1
R/O
HUB
--
Version 1.0
12
03/06/00
GL651USB USB KEYBOARD HUB CONTROLLER
Endpoint2 (HUB) interrupt change indicator
LEDCTL
( offset 14, default = 00h )
R/W1C
R/W1C
R/W1C
R/W1C
--
--
P2_ON
P1_ON
--
--
P2_TRX
P1_TRX
Hub LED control flag:
P1_TRX
P2_TRX
P1_ON
: upstream traffic happens on downstream port 1
: upstream traffic happens on downstream port 2
: if 1’b1, LED is always on, otherwise, judge according to TRXFLAG
register.
P2_ON
: if 1’b1, LED is always on, otherwise, judge according to TRXFLAG
register.
KBSTUS
R/W
( offset 15, default = 0Fh )
R/W
R/W
R/W
R/W
R/W
R/W
R/W
KCONFIG KBADR6 KBADR5 KBADR4 KBADR3 KBADR2 KBADR1 KBADR0
Keyboard address and keyboard configuration.
REV
( offset 16, default = current revision )
R/O
R/O
R/O
R/O
R/O
R/O
R/O
R/O
REV7
REV6
REV5
REV4
REV3
REV2
REV1
REV0
This register returns current silicon revision number of this device.
Current revision is 8’h11. (Revision 1.1)
HUBSTUS
( offset 17, default = 00h )
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
HCONFIG DEVADR6 DEVADR5 DEVADR4 DEVADR3 DEVADR2 DEVADR1 DEVADR0
USB hub status registers. Procedure to set the device address:
1. After USB reset, the device responds to default address 0, and hub configuration = 0.
2. USB host controller issues SET_ADDRESS request to the device. (INTRB asserted)
3. Micro-controller recognizes the request, then set DEVADR register with appropriate value.
4. Micro-controller prepares the status stage of SET_ADDRESS request by programming
TXCTL0 register.
5. When the hub configuration value is not equal zero, HCONFIG is set to one.
USB reset will clear this register.
MODSEL
(offset 18, default = 07h)
R/O
R/O
R/O
R/O
R/O
R/O
R/O
R/O
MOD7
MOD6
MOD5
MOD4
MOD3
MOD2
MOD1
MOD0
MOD[7:0] is strapping value at initial state from GPIO[7:0]. GPIO[2:0] is default pull high for
keyboard LED control. F/W can utilize these bits for customization.
Version 1.0
13
03/06/00
GL651USB USB KEYBOARD HUB CONTROLLER
6
MAXIMUM RATINGS
Maximum ratings are the extreme limits to which the GL651USB can be exposed without permanently
damaging it. The GL651USB contains circuitry to protect the inputs against damage from high static
voltages; however, do not apply voltages higher than those shown in the table. Keep VIN and VOUT within
the range GND £ (VIN or VOUT) £ VCC. Connect unused inputs to the appropriate voltage level, either GND
or VDD
.
Symbol
TSTG
TOP
VCC
Characteristic
Storage temperature
Operating temperature
Value
-55 to +150
0 to +70
Unit
°C
°C
V
Supply voltage
-0.5 to +7.0
V
IN
DC input voltage
-0.5 to +VDD + 0.5
V
I
Maximum current per pin excluding VDD and VSS
Maximum current out of GND
Maximum current out of VCC
Static discharge voltage
25
mA
mA
mA
V
IMGND
IMVCC
VESD
100
100
>4000
7
ELECTRICAL CHARACTERISTICS
Symbol
Supply
VDD
VDDA Analog Power Supply
IDD Digital Supply Current
Parameter
Tese Conditions
Min.
Typ.
Max.
Unit
Digital Power Supply
4.5
4.5
5.0
5.0
5.5
5.5
V
V
mA
mA
IDDA Analog Supply Current
USB Bus: DP and DM
VCP
VDI
VDO
Regulated Voltage Output
Static Input Voltage
Static Output Voltage
3.0
0
0
3.3
-
-
3.6
VCP
VCP
V
V
V
Digital I/O Pins
Input Logic Low Voltage
V
IL
-
2.0
-
-
-
-
-
0.8
-
0.1xVDD
-
V
V
V
V
V
Input Logic High Voltage
Output Logic Low Voltage
Output Logic High Voltage
IH
VOL
VOH
IO=-4.0mA
IO=+4.0mA
0.9xVDD
Version 1.0
14
03/06/00
8. Application Circuit
A
B
C
D
E
Y1
C1
12 MHz
C2
30P
30P
4
3
2
1
4
3
2
1
U1
KEYBOARD
MATRIX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
NC
NC
GND
NC
DM2
NC
DP2
NC
DM0
NC
DP0
NC
VCP
NC
DM1
NC
DP1
NC
VDD
NC
NUMLOCK
NC
CAPSLOCK
NC
NC
SENSE1
SELF
NC
RESET
GPIO3
NC
GPIO4
GPIO5
NC
VDD
NC
GPIO6
NC
GPIO7
NC
SUSPND
NC
DRV20
NC
DRV19
NC
DRV18
NC
DRV17
NC
DRV16
NC
SENSE1
SELF
SENSE1
DM2
SENSE1
SENSE2
SENSE3
SENSE4
SENSE5
SENSE6
SENSE7
SENSE8
SENSE2
SENSE3
SENSE4
SENSE5
SENSE6
SENSE7
SENSE8
GPIO3
DP2
DM0
DP0
B_VCC
C3
GPIO4
GPIO5
4.7U
VCP
GPIO6
GPIO7
SUSPND
DRV20
DRV19
DRV18
DRV17
DRV16
DM1
DP1
GL651USB
B_VCC
NUMLOCK
C4
0.1U
C5
CAPSLOCK
0.1U
SCLOCK
1
GPIO3~GPIO7 are for customization usage. Different
strap combinations can make different code options.
SCLOCK
NC
TEST
NC
DRV1
NC
DRV1
2.GPIO6~GPIO7 can be used as hub LED indication also.
GND
NC
3.For individual mode hub, SUSPND should be pulled low.
For ganged mode hub, SUSPND should be pulled up.
B_VCC
Rev.
1.0
Date
'00/03/03
Description
1. First Product Release
D1 LED
R1 1K
R8 1K
R9 1K
R10 1K
R17 1K
NUMLOCK
R2
R3
R4
R5
R6
1M, NI
R7
1.1
1. ADD Q4 to prevent current leakage when adapter is plugged in but USB
cable isn't.
'00/03/16
D2 LED
1M, NI
1M, NI
1M, NI
1M, NI
1M, NI
CAPSLOCK
D3 LED
SCLOCK
SUSPND
GPIO3
GPIO4
GPIO5
GPIO6
GPIO7
D4 LED
GPIO6
R11
1M
R12
1M
R13
1M
R14
1M
R15
1M
R16
1M
D5 LED
GPIO7
Title
GENESYS USB KEYBOARD HUB
Size
B
Document Number
KBHUB.DSN
Rev
1.1
Date:
Thursday, March 16, 2000
Sheet
E
1
of
2
A
B
C
D
A
B
C
D
E
VCC
B_VCC
B_VCC
C6
R18
R19
VCP
B_VCC
U2
C7
10U
PWRENB1#
FLG1#
VOUT1
VOUT2
0.1U
10K
10K
1
2
3
4
8
7
6
5
ENA#
OUTA#
IN
FLG1#
FLG2#
R20
OVRCUR1#
OVRCUR2#
4
3
2
1
4
3
2
1
C8
C9
FLGA#
FLGB#
ENB#
1.5K
L1 FB
R21 10K
R22 10K
J1
FLG2#
PWRENB2#
0.22U
0.22U
22
1
2
3
4
GND
R23
DM0
DP0
OUTB#
R2422
C10
47P
C11
47P
L2 FB
MIC2526-8
USB-B
VCC
S_VCC
D6
L3
FB
J2
VOUT1
U3
MIC 29302
R25
1M
1
2
3
4
DM1
DP1
R26 22
R27 22
1N400X
+
C12
C13
R28
Q2
TP0610T
R32 10K
G
G
100U
0.1U
NI (0)
Q1
USB-A
L4
FB
FDN360P
Q3
2N7002
G
R29
R30
15K
R31
15K
CON1
VCC
B_VCC
4.7K
S_VCC
VCC
1
2
3
R33
1M
C14
C15
47U
R34 56.2K,%1
R35
C16 C17
0.1U 47U
G
Q4
POWERJACK
0.1U
2N7002
18K,%1
R36 1M
R37
510K
SELF
R38
C18
L5
L6
FB
FB
J3
VOUT2
NI (10K)
0.1U
1
2
3
4
DM2
DP2
R39 22
R40 22
+
C19
C20
100U
0.1U
USB-A
R41
15K
R42
15K
1
For pure bus-powered keyboard hub, please DO NOT implement
those components in the dotted line, and mount R28 with
0 Ohm and R38 with 10K.
2.For self-bus powered auto-switching keyboard hub, please
remove R28, R38 and implement those components in dotted line.
Title
GENESYS USB KEYBOARD HUB
Size
B
Document Number
KBHUB.DSN
Rev
1.1
Date:
Thursday, March 16, 2000
Sheet
E
2
of
2
A
B
C
D
相关型号:
©2020 ICPDF网 联系我们和版权申明