Preliminary eKM6211 RF Mouse Rx Controller GENERAL DESCRIPTOR The eKM6211 is standard RF Mouse Receiver (Rx) Controller for PS/2 compatible interface. It’s receives the RF packet data from RF Rx module (circuits). And decode the RF packet data and transmitting the data to PC by PS/2 interface. The eKM6211 have two way to set device ID, it’s DIP switch select and EEPROM(93C46) to storage. It’s have built-in RF signal sampling and noise immunity function to improve the RF data decode efficiency. FEATURE Operating voltage: 2.5V~5.5V Built-in regulator to generate 3.3V Operating frequency: 4.00Mhz Support PS/2 compatible interface. Device ID: DIP switch to select 8 sets ID EEPROM interface to storage 255 sets Device ID Support a LED to display RF packet receive status and ID set mode. Using jump connect to set Device ID into default ID. To match with RF Mouse Tx controller: eKM6611 series : RF Mouse Tx eKM6711 : Optical RF Mouse Tx Package: 16 pin DIP and SOP (300mil) APPLICATION PS/2 RF Mouse Rx * This specification are subject to be changed without notice. 1 2002/11/15 eKM6211 RF Mouse Rx Controller Preliminary PIN ASSIGNMENT U1 1 2 3 4 5 6 7 8 9 RFD RxLED NC /RESET VSS DI/ID0 SK/ID1 CS/ID2 PD DATA CLK OSCI OSCO VDD IDM NC CONN DO 18 17 16 15 14 13 12 11 10 eKM6211 PIN DESCRIPTOR Pin No. Symbol I/O Function 1 RFD I RF data input 2 RxLED O Rx LED output 3 NC - NC 4 /RESET I Reset pin 5 VSS - Ground pin 6 DI/ID0 I/O EEPROM DI pin, DIP switch ID0 7 SK/ID1 I/O EEPROM SK pin, DIP switch ID1 8 CS/ID2 I/O EEPROM CS pin, DIP switch ID2 9 PD I Plug-in detect 10 DO I EEPROM DO pin 11 CONN I Connect pin 12 NC - NC 13 IDM I ID mode select, Ground= EEPROM ID, other is DIP switch 14 VDD - Power supply pin 15 OSCO O Crystal oscillator clock output pin 16 OSCI I External crystal input pin 17 CLK I/O PS/2 CLK line 18 DATA I/O PS/2 Data line FUNCTION DESCRIPTOR 1. Legacy PS/2 Mouse Operating: * This specification are subject to be changed without notice. 2 2002/11/15 eKM6211 RF Mouse Rx Controller Preliminary (A) Operating Mode There are four operating modes in PS/2 mouse: a. Reset Mode: In this mode a self-test is initiated during power-on or by a Reset command. After reset signal, PS/2 mouse will (a) Send completion code AA & ID code 00. (b) Set default: Sampling rate: 100 reports/s Non-auto-speed Stream mode 2 dot/count Disable b. Stream Mode: The maximum rate of transfer is the programmed sample rate. Data report is transmitted if (a) Switch is pressed (b) Movement has been detect c. Remote Mode: Data is transmitted only in response to a Read Data command. d. Wrap Mode: Any byte of data sent by the system, except hex EC (Reset wrap mode) or hex FF (Reset), is returned by eKM6211. (B) PS/2 Mouse Data Report: a. In stream mode: A data report is sent at the end of a sample interval. b. In remote mode: A data report is sent in response to Read Data command. c. Data report format: Byte Bit Description 1 0 Left button status; 1 Right button status; 1 = pressed * This specification are subject to be changed without notice. 3 1 = pressed 2002/11/15 eKM6211 RF Mouse Rx Controller Preliminary 2 Middle button status; pressed 3 Reserved 4 X data sign; 1 = negative 5 Y data sign; 1 = negative 6 X data overflow; 1 = overflow 7 Y data overflow; 1 = overflow 2 0-7 X data ( D0 - D7 ) 3 0-7 Y data ( D0 - D7 ) 1 = (C) PS/2 Mouse Data Transmission: eKM6211 generates the clocking signal when sending data to and receiving data from the system. The system requests eKM6211 receive system data output by forcing the DATA line to an inactive level and allowing CLK line to go to an active level. Data transmission frame: Bit Function 1 Start bit ( always 0 ) 2-9 Data bits ( D0 - D7 ) 10 Parity bit ( odd parity ) 11 Stop bit ( always 1 ) Data Output (data from eKM6211 to system): If CLK is low (inhibit status), data is no transmission. If CLK is high and DATA is low (request-to-send), data is updated.Data is received from the system and no transmission are started by eKM6211 until CLK and DATA both high. If CLK and DATA both are high, the transmission is ready. DATA is valid prior to the falling edge of CLK and beyond the rising edge of CLK. During transmission, eKM6211 check for line contention by checking for an inactive level on CLK at intervals not to exceed 100u sec. Contention occurs when the system lowers CLK to inhibit eKM6211 output after eKM6211 has started a transmission. If this occurs before the rising edge of the tenth clock, eKM6211 internal store its data in its buffer and returns DATA and CLK to an active level. If the contention does not occur by the tenth clock, the transmission is complete. Following a transmission, the system inhibits eKM6211 by holding CLK low until it can service the input or until the system receives a request to send a response from eKM6211. * This specification are subject to be changed without notice. 4 2002/11/15 Preliminary eKM6211 RF Mouse Rx Controller Data Input (from system to eKM6211): The System first checks if eKM6211 is transmitting data. If eKM6211 is transmitting, the system can override the output forcing CLK to an inactive level prior to the tenth clock. If eKM6211 transmission is beyond the tenth clock, the system receives the data. If eKM6211 is not transmitting or if the system choose to override the output, the system force CLK to an inactive level for a period of not less than 100u sec while preparing for output. When the system is ready to output start bit (0), it allows CLK go to active level. If request-to-send is detected, eKM6211 clocks 11 bits. Following the tenth clock, eKM6211 checks for an active level on the DATA line, and if found, force DATA low, and clock once more. If occurs framing error, eKM6211 continue to clock until DATA is high, then clocks the line control bit and request a Resend. When the system sends out a command or data transmission that requires a response, the system waits for eKM6211 to response before sending its next output. (D) PS/2 Mouse Error Handling: a. A Resend command (FE) following receipt of an invalid input or any input with incorrect polarity. b. If two invalid inputs are received in succession, an error code of hex (FC) is send to the system. c. The counter accumulators are cleared after receiving any command except "Resend". d. eKM6211 receives a Resend command (FE), it transmits its last packet of data. e. In the stream mode "Resend" is received by eKM6211 following a 3-byte data packet transmission to the system. eKM6211 resend the 3-byte data packet prior to clearing the counter. f. A response is sent within 25 ms if (a) The system requires a response (b) An error is detected in the transmission g. If eKM6211 is in the stream mode: (a) The system disables eKM6211 before issuing any command requiring a response. (b) When a command requiring a response is issued by the system, another command should not be issue until either the response is received or 25 ms has passed. * This specification are subject to be changed without notice. 5 2002/11/15 eKM6211 RF Mouse Rx Controller Preliminary (E) PS/2 Mouse Commands Description: There are 16 valid commands that transmit between the system and eKM6211. The "FA" code is always the first response to any valid input received from the system other than a Set Wrap Mode or Resend command. The following table lists the commands: Hex Code Command Echo code FF Reset FA,AA,00 FE Resend XX,(XX,XX) F6 Set Default FA F5 Disable FA F4 Enable FA F3,XX Set Sampling Rate FA,FA F2 Read Device Type FA,00 F0 Set Remote Mode FA EE Set Wrap Mode FA EC Reset Wrap Mode FA EB Read Data FA,XX,XX,XX EA Set Stream Mode FA E9 Status Request FA,XX,XX,XX E8,XX Set Resolution FA,FA E7 Set Auto-speed FA E6 Reset Auto-speed FA The following describes valid commands: a. Reset (FF) eKM6211 operation: (a) Completion the reset. (b) Transmit FA, AA, 00 to the system. (c) Set default: Sampling rate: 100 reports/s Non auto-speed Stream mode 2 dot/count Disable * This specification are subject to be changed without notice. 6 2002/11/15 Preliminary eKM6211 RF Mouse Rx Controller b. Resend (FE) (a) Any time eKM6211 receives an invalid command, it returns a Resend command to the system. (b) When eKM6211 receives a Resend command, it retransmits its last packet of data. If the last packet was a Resend command, it transmits the packet just prior to the Resend command. (c) In stream mode, if a Resend command is received by eKM6211 immediately following a 3-byte data packet transmission to the system. c. Set Default (F6) The command reinitializes all conditions to the power-on defaults. d. Disable (F5) This command is used in the stream mode to stop transmissions from eKM6211. e. Enable (F4) Begins transmissions, if in stream mode. f. Set Sampling Rate (F3, XX) In the stream mode, this command set the sampling rate to the value indicated by byte hex XX, shown in following: Second byte XX Sample Rate 0A 10/sec 14 20/sec 28 40/sec 3c 60/sec 50 80/sec 64 100/sec C9 200/sec g. Read Device Type (F2) eKM6211 always echoes " FA, 00" following this command. h. Set Remote Mode (F0) Data values are reported only in response to a Read Data command. i. Set Wrap Mode (EE) Wrap mode remains until Reset (FF) or Reset Wrap Mode (EC) is received. * This specification are subject to be changed without notice. 7 2002/11/15 Preliminary eKM6211 RF Mouse Rx Controller j. Reset Wrap Mode (EC) eKM6211 returns to the previous mode of operation after receiving this command. k. Read Data (EB) This command is executed in either remote or stream mode. The data is transmitted even if there has been no movement since the last report or the button status is unchanged. Following a Read Data command, the registers are cleared after a data transmission. l. Set Stream Mode (EA) This command sets eKM6211 in stream mode. m. Status Request (E9) When this command is issued by the system, eKM6211 responds with a 3-byte status report as follows: Byte Bit Description 1 0 1 = Right button pressed 1 1 = Middle button pressed 2 1 = Left button pressed 3 Reserved 4 0 = Normal speed, 1 = Auto-speed 5 0 = Disabled, 1 = Enabled 6 0 = Stream mode, 1 = Remote mode 7 Reserved 2 0-7 Current resolution setting (D0 - D7) 3 0-7 Current sampling rate (D0 - D7) n. Set Resolution (E8, XX) eKM6211 provides four resolutions selected by the second byte of this command as follows: Second Byte XX Resolution 00 8 dot/count 01 4 dot/count 02 2 dot/count 03 1 dot/count o. Set Auto-speed (E7) At the end of a sample interval in the stream mode, the current X and Y data values are converted new values. The sign bits are not involved in this conversion. The conversion is only in stream * This specification are subject to be changed without notice. 8 2002/11/15 eKM6211 RF Mouse Rx Controller Preliminary mode. The relationship between the input and output count follows: Input Output 0 0 1 1 2 1 3 3 4 6 5 9 N(>=6) 2.0*N p. Reset Auto-speed (E6) This command restores normal speed. (Ⅲ). Microsoft PS/2 Scrolling Mouse Mode: (A) Entering procedure: Except in WRAP mode, while eKM6211 received the following consecutive command. a. F3 C8 ---- set sampling rate 200/sec b. F3 64 ---- set sampling rate 100/sec c. F3 50 ---- set sampling rate 80/sec (B) Operating: a. All of the commands in legacy mode still are valid. b. The ID code of read device type command (F2) will changed from "00" to be "03". c. Data report will be four bytes format: Byte Bit Description 1 0 Left button status; 1 Right button status; 2 Middle button status; pressed 3 Reserved 4 X data sign; 1 = negative 5 Y data sign; 1 = negative 6 X data overflow; 1 = overflow 7 Y data overflow; 1 = overflow 2 0-7 X data (D0 - D7) 3 0-7 Y data (D0 - D7) * This specification are subject to be changed without notice. 9 1 = pressed 1 = pressed 1 = 2002/11/15 Preliminary 4 0-7 eKM6211 RF Mouse Rx Controller Z data (D0 - D7) (C) Exiting Microsoft Scrolling Mode: There are two ways to exit: a. Power off. b. Reset command (FF). (IV). Microsoft PS/2 IntlliMouse Mode: (A) Entering procedure: Except in WRAP mode, while eKM6211 received the following consecutive command. a. F3 C8 ---- set sampling rate 200/sec b. F3 C8 ---- set sampling rate 200/sec c. F3 50 ---- set sampling rate 80/sec (B) Operating: a. All of the commands in legacy mode still are valid. b. The ID code of read device type command (F2) will changed from "00" to be "04". c. Data report will be four bytes format: Byte Bit Description 0 Left button status; 1 = pressed 1 Right button status; 1 = pressed 2 Middle button status; 1 = pressed 3 Reserved 4 X data sign; 1 = negative 5 Y data sign; 1 = negative 6 X data overflow; 1 = overflow 7 Y data overflow; 1 = overflow 2 0-7 X data (D0 – D7) 3 0-7 Y data (D0 – D7) 0-3 Z data (D0 – D3) 4 PreviousPage button status; 1= pressed 5 NextPage button status; 1=pressed 6-7 Reserved 1 4 (C) Exiting Microsoft IntelliMouse Mode: There are two ways to exit: * This specification are subject to be changed without notice. 10 2002/11/15 eKM6211 RF Mouse Rx Controller Preliminary a. Power off. b. Reset command (FF). APPLICATION CIRCUIT VCC 330ohm RxLED 4.7Kohm 4.7Kohm VCC VCC U1 4.00Mhz 1 2 3 4 5 6 7 8 9 RF Data SW1 1 2 3 6 5 4 RFD RxLED NC /RESET VSS DI/ID0 SK/ID1 CS/ID2 PD DATA CLK OSCI OSCO VDD IDM NC CONN DO 18 17 16 15 14 13 12 11 10 20pF CLK 1 GND 2 DATA 3 20pF VCC 6 5 VDD 4 PS2/KB Device ID eKM6211 DIP switch ID VCC 330ohm RxLED 4.7Kohm 4.7Kohm VCC VCC U1 4.00Mhz RF Data VCC U2 5 6 7 8 GND ORG DC VCC DO DI SK CS 4 3 2 1 1 2 3 4 5 6 7 8 9 RFD RxLED NC /RESET VSS DI/ID0 SK/ID1 CS/ID2 PD DATA CLK OSCI OSCO VDD IDM NC CONN DO 18 17 16 15 14 13 12 11 10 20pF CLK 1 GND 2 DATA 3 20pF VCC 6 5 VDD 4 PS2/KB SW2 CONNECT 93C46 eKM6211 EEPROM ID * This specification are subject to be changed without notice. 11 2002/11/15