GENESYS GL600USB-A, GL600USB, GL600USB-B Datasheet

Genesys Logic, Inc.
GL600USB
Genesys Logic, Inc.
GL600USB-A GL600USB-B
USB MOUSE MICROCONTROLLER
SPECIFICATION 1.3 Jun 19, 2000
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
GL600USB/GL600USB-A/GL600USB-B
TABLE OF CONTENTS
TABLE OF CONTENTS.............................................................................................................................................1
TABLE OF CONTENTS.............................................................................................................................................2
TABLE OF FIGURES .................................................................................................................................................3
1 FEATURES ............................................................................................................................................................4
2 FUNCTIONAL OVERVIEW ...........................................................................................................................5
3 PIN DEFINITIO NS AND DESCRIPTIONS ................................................................................................6
3.1 GL600USB ......................................................................................................................................................6
3.2 GL600USB-A ..................................................................................................................................................8
3.3 GL600USB-B ..................................................................................................................................................9
4 FUNCTIONAL DESCRIPTION....................................................................................................................10
4.1 MEMORY ORGANIZATION......................................................................................................................10
4.1.1 Program Memory Organization ...................................................................................................10
4.1.2 Data Memory Organization ........................................................................................................... 10
4.2 USB FUNCTION REGISTERS..................................................................................................................11
4.3 MCU FUNCTION REGISTERS ................................................................................................................14
4.4 FULL-RANGE DETECTION AND ANALOG -TO-DIGITAL CONVERTER.....................................18
4.5 GENERAL PURPOSE I/O PORTS ...........................................................................................................19
4.6 TIMER INTERRUPT ...................................................................................................................................19
4.7 USB ENGINE................................................................................................................................................19
4.7.1 Voltage Regulator .............................................................................................................................19
4.7.2 USB Transceiver................................................................................................................................20
4.7.3 Serial Interface Engine (SIE).........................................................................................................22
4.8 INSTRUCTION SET SUMMARY..............................................................................................................22
4.8.1 Operand Field Descriptions ...........................................................................................................22
4.8.2 Instruction Set....................................................................................................................................22
5 ABSOLUTE MAXIMUM RATINGS ...........................................................................................................31
6 ELECTRICAL CHARACTERISTICS........................................................................................................31
7 PACKAGE DIAGRAMS ..................................................................................................................................33
7.1 16-pin P-DIP..............................................................................................Error! Bookmark not defined.
7.2 18-pin P-DIP..............................................................................................Error! Bookmark not defined.
2 06/19/2000
Revision 1. 3
GL600USB/GL600USB-A/GL600USB-B
7.3 20-pin P-DIP..............................................................................................Error! Bookmark not defined.
7.4 16-pin SOP.................................................................................................Error! Bookmark not defined.
7.5 18-pin SOP....................................................................................................................................................37
7.6 20-pin SOP....................................................................................................................................................38
TABLE OF FIGURES
Figure 2-1 Block Diagram of GL600USB .......................................................................... 5
Figure 3-1 20-pin DIP (GL600USB) .................................................................................. 7
Figure 3-2 18-pin DIP (GL600USB-A).............................................................................. 8
Figure 3-3 16-pin DIP (GL600USB-B) .............................................................................. 9
Figure 4-1 Program Memory Space .................................................................................. 10
Figure 4-2 Data Memory Space........................................................................................ 11
Figure 4-3 Differential Input Sensitivity over Entire Common Mode Range .................. 20
Figure 4-4 Receiver Jitter Tolerance ................................................................................. 21
Figure 4-5 Data Signal Rise and Fall Time ...................................................................... 22
Figure 7-1 Package outline dimension for 16-pin P-DIP.....Error! Bookmark not defined.
Figure 7-2 Package outline dimension for 18-pin P-DIP.....Error! Bookmark not defined.
Figure 7-3 Package outline dimension for 20-pin P-DIP.....Error! Bookmark not defined.
Figure 7-4 Package outline dimension for 16-pin SOP .................................................... 36
Figure 7-5 Package outline dimension for 18-pin SOP .................................................... 37
Figure 7-6 Package outline dimension for 20-pin SOP .................................................... 38
3 06/19/2000
Revision 1. 3
GL600USB/GL600USB-A/GL600USB-B
1 FEATURES
Low-cost solution for low-speed USB mouse
8-bit micro-controller
Operation Speed: DC to 6MHz clock input
Performance: 3 MIPS @ 6MHz
Single cycle instruction execution
RISC-like architecture
USB optimized instruction set
USB Specification Compliance
Conforms to USB 1.5Mbps Specification, Version 1.1
Conforms to USB HID Class Specification, Version 1.1
Supports 1 device address and 2 endpoints (include endpoint 0)
I/O ports
Up to 13(GL600USB)/11(GL600USB-A)/9(GL600USB-B) general purpose I/O pins (OTP type is
less a GPIO pin than mask type)
Internal RC clock to wakeup periodically (about 500ms) when suspend
Up to 8(GL600USB)/6(GL600USB-A)/4(GL600USB-B) special purpose I/O pins optimized for
photo-sensor (Internal build in 4 bits ADC)
Up to 2 I/O pins with large current drive capability to drive LED (Sink current up to 16 mA)
Internal memory
64 bytes of RAM (special purpose register is not included)
1.75K x 14 of program ROM
Integrated USB transceiver
Patented full-range detection for photo-sensor
Removes the expensive process of matching LED and photo-sensor
On-chip 3.3v output
No external regulator required
Improved output drivers with slew -rate control to reduce EMI
6 MHz external clock
Internal power -on reset(POR)
Internal power -fail detector
Supports suspend/normal mode power management
Suspend current lower than 400µA for whole mouse system (mask type)
8-bits free-running timer
Available in cost saving 20-pin(GL600USB) PDIP, 18-pin(GL600USB-A) PDIP and 16-
pin(GL600USB-B) PDIP
4 06/19/2000
Revision 1. 3
GL600USB/GL600USB-A/GL600USB-B
2 FUNCTIONAL OVERVIEW
The GL600USB is a 8-bits RISC-like high performance microcontroller with a built-in 1.5Mbps SIE and transceiver. The microcontroller features 33 instructions optimized for USB applications. There are 64 bytes on-chip RAM and 1.75K x 14 program ROM incorporated into the microcontroller. The GL600USB accepts a 6MHz ceramic resonator or a crystal as its clock source. The microcontroller features 12 general purpose I/Os (GPIOs). 8 GPIO pins build in 4 bits ADC for photo-sensor input to remove the expensive process of matching LED and photo-sensor. Additionally, 2 GPIO pins are strong enough to drive LEDs. All GPIO ports feature low EMI emissions as a result of improved output drivers with slew -rate control.
USB Registers
&
FIFO Control
Micro-
controller
Endpoint 0
8 Bytes FIFO
D+
USB
Interface
D-
Endpoint 1
8 Bytes FIFO
Figure 2-1 Block Diagram of GL600USB
5 06/19/2000
Revision 1. 3
GL600USB/GL600USB-A/GL600USB-B
3 PIN DEFINITIONS AND DESCRIPTIONS
3.1 GL600USB
Pin No. Name I/O Description
1 P1.2/LB
2 P1.3/MB I/O Port 1 bit 3/mouse middle button
3 P1.4/RB I/O Port 1 bit 4/mouse right button
4 P2.7/W2 I/O Port 2 bit 7/photo-sensor input for horizontal scroll 2
5 VCC - Voltage supply 6 XTAL2 O Ceramic resonator or crystal out 7 XTAL1 I Ceramic resonator or crystal in 8 P2.4/Z1 I/O Port 2 bit 4/photo-sensor input for vertical scroll 1
9 D+ I/O USB data+ 10 D- I/O USB data­11 V3.3 O 3.3V output, a 0.1uF to 1uF capacitor should be added
12 P2.5/Z2 I/O Port 2 bit 5/photo-sensor input for vertical scroll 2
13 P2.6/W1 I/O Port 2 bit 6/photo-sensor input for horizontal scroll 1
14 P1.0 I/O Port 1 bit 0 with LED drive capability 15 P1.1 I/O Port 1 bit 1 with LED drive capability 16 GND - Ground 17 P2.3/Y1 I/O Port 2 bit 3/photo-sensor input for Y axis 1
18 P2.2/Y2 I/O Port 2 bit 2/photo-sensor input for Y axis 2
19 P2.1/X1 I/O Port 2 bit 1/photo-sensor input for X axis 1
20 P2.0/X2 I/O Port 2 bit 0/photo-sensor input for X axis 2
Note 1: Name or description after “/” means default function specified by Genesys Logic firmware
[1]
I/O Port 1 bit 2/mouse left button
Internal pull up 10K
Internal pull up 10K
Internal pull up 10K
Optional internal pull down from 4K ~ 32K or no pull down resistor
Optional internal pull down from 4K ~ 32K or no pull down resistor
on external circuit for this pin
Optional internal pull down from 4K ~ 32K or no pull down resistor
Optional internal pul l down from 4K ~ 32K or no pull down resistor
Optional internal pull down from 4K ~ 32K or no pull down resistor
Optional internal pull down from 4K ~ 32K or no pull down resistor
Optional internal pull down from 4K ~ 32K or no pull down resistor
Optional internal pull down from 4K ~ 32K or no pull down resistor
Table 3-1 GL600USB Pin Definitions and Descriptions
6 06/19/2000
Revision 1. 3
GL600USB/GL600USB-A/GL600USB-B
P1.2 P1.3 P1.4 P2.7
V
CC
XTAL2 XTAL1
P2.4
D+
D-
1 20 2 19 3 18 4 17 5 16 6 15 7 14 8 13 9 12 10 11
P2.0 P2.1 P2.2 P2.3
GND P1.1 P1.0 P2.6 P2.5 V3.3
Figure 3-1 20-pin DIP & SOP (GL600USB)
7 06/19/2000
Revision 1. 3
GL600USB/GL600USB-A/GL600USB-B
V3.3
9 10
3.2 GL600USB-A
Pin No. Name I/O Description
1 P1.2/LB
2 P1.3/MB I/O Port 1 bit 3/mouse middle button
3 P1.4/RB I/O Port 1 bit 4/mouse right button
4 VCC - Voltage supply
5 XTAL2 O Ceramic resonator or crystal out
6 XTAL1 I Ceramic resonator or crystal in
7 P2.4/Z1 I/O Port 2 bit 4/photo-sensor input for vertical scroll 1
8 D+ I/O USB data+
9 D- I/O USB data­10 V3.3 O 3.3V output, a 0.1uF to 1uF capacitor should be added
11 P2.5/Z2 I/O Port 2 bit 5/photo-sensor input for vertical scroll 2
12 P1.0 I/O Port 1 bit 0 with LED drive capability 13 P1.1 I/O Port 1 bit 1 with LED drive capability 14 GND - Ground 15 P2.3/Y1 I/O Port 2 bit 3/photo-sensor input for Y axis 1
16 P2.2/Y2 I/O Port 2 bit 2/photo-sensor input for Y axis 2
17 P2.1/X1 I/O Port 2 bit 1/photo-sensor input for X axis 1
18 P2.0/X2 I/O Port 2 bit 0/photo-sensor input for X axis 2
[1]
I/O Port 1 bit 2/mouse left button
Table 3-2 GL600U SB-A Pin Definitions and Descriptions
8 06/19/2000
Internal pull up 10K
Internal pull up 10K
Internal pull up 10K
Optional internal pull down from 4K ~ 32K or no pull down resistor
on external circuit for this pin
Optional internal pull down from 4K ~ 32K or no pull down resistor
Optional internal pull down from 4K ~ 32K or no pull down resistor
Optional internal pull down from 4K ~ 32K or no pull down resistor
Optional internal pull down from 4K ~ 32K or no pull down resistor
Optional internal pull down from 4K ~ 32K or no pull down resistor
P1.2 P1.3 P1.4
V
CC
XTAL2 XTAL1
P2.4
D+
D-
Figure 3-2 18-pin DIP & SOP (GL600USB-A)
1 18 2 17 3 16 4 15 5 14 6 13 7 12 8 11
P2.0 P2.1 P2.2 P2.3
GND P1.1 P1.0 P2.5
Revision 1. 3
GL600USB/GL600USB-A/GL600USB-B
8 9
D-
3.3 GL600USB-B
Pin No. Name I/O Description
1 P1.2/LB
2 P1.3/MB I/O Port 1 bit 3/mouse middle button
3 P1.4/RB I/O Port 1 bit 4/mouse right button
4 VCC - Voltage supply
5 XTAL2 O Ceramic resonator or crystal out
6 XTAL1 I Ceramic resonator or crystal in
7 D+ I/O USB data+
8 D- I/O USB data-
9 V3.3 O 3.3V output, a 0.1uF to 1uF capacitor should be added
10 P1.0 I/O Port 1 bit 0 with LED drive capability 11 P1.1 I/O Port 1 bit 1 with LED drive capability 12 GND - Ground 13 P2.3/Y1 I/O Port 2 bit 1/photo-sensor input for X axis 1
14 P2.2/Y2 I/O Port 2 bit 1/photo-sensor input for X axis 2
15 P2.1/X1 I/O Port 2 bit 2/photo-sensor input for Y axis 1
16 P2.0/X2 I/O Port 2 bit 3/photo-sensor input for Y axis 1
Table 3-3 GL600USB-B Pin Definitions and Descriptions
[1]
I/O Port 1 bit 2/mouse left button
Internal pull up 10K
Internal pull up 10K
Internal pull up 10K
on external circuit for this pin
Optional internal pull down from 4K ~ 32K or no pull down resistor
Optional internal pull down from 4K ~ 32K or no pull down resistor
Optional internal pull down from 4K ~ 32K or no pull down resistor
Optional internal pull down from 4K ~ 32K or no pull down resistor
P1.2 P1.3 P1.4
V
CC
XTAL2 XTAL1
D+
Figure 3-3 16-pin DIP & SOP (GL600USB-B)
1 16 2 15 3 14 4 13 5 12 6 11 7 10
P2.0 P2.1 P2.2 P2.3
GND P1.1 P1.0 V3.3
9 06/19/2000
Revision 1. 3
GL600USB/GL600USB-A/GL600USB-B
4 FUNCTIONAL DESCRIPTION
The Genesys Logic GL600USB microcontroller is optimized for USB 2D/3D/4D mouse. This USB microcontroller conforms to the low -speed (1.5Mbps) requirements of the USB Specification version 1.1. The microcontroller is a self-contained unit with an USB SIE, an USB transceiver, an 8-bits RISC-like microcontroller, a timer, data and program memories. It supports one USB device address and two endpoints (include endpoint 0).
4.1 MEMORY ORGANIZATION
The memory in the microcontroller is organized into user program memory in program ROM and data memory in SRAM space.
4.1.1 Program Memory Organization
The 11-bit Program Counter (PC) is capable of addressing 2K x 14 of program space. However , the program space of the GL600USB is 1.75K x 14. The program memory space is divided into two functional groups: Interrupt Vectors and program code. After a reset, the Program Counter points to location zero of the program space. After a timer interrupt, the Program Counter points the location 0x0004 of the program space.
After Reset 0x0000 Reset Vector
After Timer Interrupt 0x0005
0x06FF
Figure 4-1 Program Memory Space
4.1.2 Data Memory Organization
The data memory is partitioned into two banks which contain the General Purpose Registers, MCU Function Registers and USB Function Registers. Bit RP0 is the bank select bit. RP0 (STATUS<5>) = 1 Bank 1
RP0 (STATUS<5>) = 0 Bank 0 The lower locations of each Bank are reserved for MCU Function Registers and USB Function Registers. Above the MCU Function Registers and USB Function Registers are General Purpose Registers implemented as SRAM. Both Bank 0 and Bank 1 contain MCU Function Registers. USB Function Registers are located in Bank 0. Some “high use” MCU Function Registers from Bank 0 are mirrored in Bank 1 for code reduction and quicker access.
Data Memory
Address
00h INDR 80h INDR 01h TIMER 81h PSCON
Data Memory
Address
0x0004 Timer Interrupt Vector
1.75K x 14 ROM
Address
10 06/19/2000
Revision 1. 3
GL600USB/GL600USB-A/GL600USB-B
02h PCL 82h PCL 03h STATUS 83h STATUS 04h INDAR 84h INDAR 05h 85h 06h PORT1 86h PORT1CON 07h PORT2 87h PORT2CON 08h 88h 09h 89h
0Ah PCHBUF 8Ah PCHBUF
0Bh INTEN 8Bh INTEN 0Ch 8Ch
0Dh PHVAL 8Dh
0Eh PHSEL 8Eh 0Fh DMODE 8Fh
10h DEVCTL 10h 11h 11h 12h EVTFLG 12h 13h DEVADR 13h 14h FFCNT0 14h 15h FFCNT1 15h 16h FFCTL 16h 17h FFDAT0 17h 18h FFDAT1 18h 19h EP0RXST 19h
1Ah
1Fh
20h
5Fh
60h
7Fh
Bank 0 Bank 1
4.2 USB FUNCTION REGISTERS
Address Name Function
10h DEVCTL Device control register 12h EVTFLG Event flag register 13h DEVADR USB device address register 14h FFCNT0 Byte count buffer for endpoint 0 15h FFCNT1 Byte count buffer for endpoint 1 16h FFCTL FIFO control register
General
Purpose
Registers
(64 bytes)
FFh
Figure 4-2 Data Memory Space
11 06/19/2000
Revision 1. 3
GL600USB/GL600USB-A/GL600USB-B
17h FFDAT0 Endpoint 0 FIFO port 18h FFDAT1 Endpoint 1 FIFO port 19h EP0RXST Endpoint 0 receiving status register
Table 4-1 USB Function Register Summary
DEVCTL (Address 10h, Device control register)
[1]
R/W
R/W R/W R/W R/W R/W
TXSE0 EP0STL EP1STL WAKE WKDIS PWRDN TXSE0: Set and clear transmitting SE0 bit 1: Set transmitting SE0 0: Clear transmitting SE0 EP0STL: Endpoint 0 stall bit. This bit will be cleared automatically by hardware when SETUP packet is
received 1: Endpoint 0 will respond with a STALL to a valid transaction except SETUP 0: Endpoint 0 will not respond with a STALL to a valid transaction EP1STL: Endpoint 1 stall bit 1: Endpoint 1 will respond with a STALL to a valid IN transaction 0: Endpoint 1 will not respond with a STALL to a valid IN transaction WAKE: Wake-up bit 1: Set this bit to wake up host controller by placing USB bus into K state 0: Clear this bit to force USB bus leave K state WKDIS: Wake-up disable bit. The WAKE bit has no effect if WKDIS bit is set to 1. 1: Disable remote wake-up capability 0: Enable remote wake-up capability PWRDN: Power -down mode bit. Writing 1 to this bit will enter power-down mode
If USB suspend is detected, firmware can set this bit to enter power -down mode. In power-down mode, crystal/resonator will stop. The PWRDN bit will be cleared automatically by hardware and crystal/resonator will restart when the internal RC timer ti meout (about 500ms). Firmware should check buttons and photo position encoders of the mouse. If mouse status is not changed, Firmware should set the PWRDN bit to enter power down mode again. Power consumption in suspend mode depends on how much time the firmware checking mouse status changed. Hardware will also clear PWRDN bit automatically when USB D+ or D- is toggled. 0: Normal mode, not power -down
Value on POR: “1 - 0 - 0 0 0 0”
[2]
Note 1: “R/W” means readable and writable bit. All reserved fields should not be changed by firmware. Note 2: “-“ means unimplemented read as 0
EVTFLG (Address 12h, Event flag register) R/W1C
[1]
R/W1C R/W1C R/W1C R/W1C RESUME SUSPD EP1TX EP0TX EP0RX RESUME: Global resume bit 1: Global resume (USB D+/D - toggle) was detected 0: Global resume was not detected SUSPD: Global suspend bit 1: Global suspend (USB idle more than 3ms) was detected 0: Global suspend was not detected EP1TX: Endpoint 1 transmitting status bit 1: Data has been sent from endpoint 1 0: Data has not been sent from endpoint 1 EP0TX: Endpoint 0 transmitting status bit 1: Data has been sent from endpoint 0 0: Data has not been sent from endpoint 0 EP0RX: Endpoint 0 receiving status bit
12 06/19/2000
Revision 1. 3
Loading...
+ 26 hidden pages