* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download SM5025A/ B
Raster scan wikipedia , lookup
Valve RF amplifier wikipedia , lookup
Operational amplifier wikipedia , lookup
Schmitt trigger wikipedia , lookup
Switched-mode power supply wikipedia , lookup
Index of electronics articles wikipedia , lookup
Opto-isolator wikipedia , lookup
SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. 64 KEYS ENCODER GENERAL DESCRIPTION FEATURES The SM5025A/B is an infrared remote control en c o d e r L SI u t i l i z i n g C MO S technology. * Low voltage operation ......V DD = 2.0 to 3.3V * Low power consumption ...... IDD < 1µA at standby mode * 64 function keys and 3 double action keys * 128 + 6 function codes are available. (Using SEL terminal) * 65536 customer codes can be selected. (Using external R, Diode-SM5025A or internal MASK ROM-SM5025B) * 24pin SOP or DIP The transmission code consists of "leader pulse", "16 bit customer code", and "1 6 bit data code". Using Micro-processors for decoder, various applications can b e realized. APPLICATIONS * Audio Remote Control * Video Remote Control * Consumer Product Remote Control PIN ASSIGNMENTS (TOP VIEW) KI2 KI3 KI4 KI5 KI6 KI7 Dout VDD SEL OSCO OSCI VSS 1 2 3 4 5 6 7 8 9 10 11 12 24 23 22 21 20 19 18 17 16 15 14 13 KI1 KI0 CODE KI/O0 KI/O1 KI/O2 KI/O3 KI/O4 KI/O5 KI/O6 KI/O7 LED KI2 KI3 KI4 KI5 KI6 KI7 Dout VDD SEL OSCO OSCI VSS 24 PIN DIP IN 300MIL 1 2 3 4 5 6 7 8 9 10 11 12 KI1 KI0 CODE KI/O0 KI/O1 KI/O2 KI/O3 KI/O4 KI/O5 KI/O6 KI/O7 LED 24 23 22 21 20 19 18 17 16 15 14 13 24 PIN SOP IN 300MIL Page 1 V.2.0 Mar 8,2002 SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. 64 KEYS ENCODER PIN DESCRIPTION No. Pin Name I/O Function Pin Name No. I/O Function KI0 23 I KI1 24 I KI2 1 I KI3 2 I KI4 3 I KI5 4 I KI6 5 I KI7 6 I Scan Key Input 0 With Pull Low Scan Key Input 1 With Pull Low Scan Key Input 2 With Pull Low Scan Key Input 3 With Pull Low Scan Key Input 4 With Pull Low Scan Key Input 5 With Pull Low Scan Key Input 6 With Pull Low Scan Key Input 7 With Pull Low Data Select KI/O0 21 I/O Key Scan 0 O Oscillator Output KI/O1 20 I/O Key Scan 1 OSCI I Oscillator Input KI/O2 19 I/O Key Scan 2 12 VSS POWER Negative Power Supply (substrate) KI/O3 18 I/O Key Scan 3 13 LED O Indicator For Transmission KI/O4 17 I/O Key Scan 4 14 KI/O7 I/O Key Scan 7 KI/O5 16 I/O Key Scan 5 15 KI/O6 I/O Key Scan 6 KI/O6 15 I/O Key Scan 6 16 KI/O5 I/O Key Scan 5 KI/O7 14 I/O Key Scan 7 17 KI/04 I/O Key Scan 4 DOUT 7 O Remote Output 18 KI/O3 I/O Key Scan 3 SEL 9 I Data Select 19 KI/O2 I/O Key Scan 2 LED 13 O Indicator For Transmission 20 KI/O1 I/O Key Scan 1 CODE 22 I/O Customer Code Select Input 21 KI/O0 I/O Key Scan 0 OSCO 10 O Oscillator Output 22 CODE I/O OSCI 11 I Oscillator Input 23 KI0 I VDD 8 24 KI1 I Vss 12 1 KI2 I 2 KI3 I 3 KI4 I 4 KI5 I 5 KI6 I 6 KI7 I Scan Key Input 2 With Pull Low Scan Key Input 3 With Pull Low Scan Key Input 4 With Pull Low Scan Key Input 5 With Pull Low Scan Key Input 6 With Pull Low Scan Key Input 7 With Pull Low 7 DOUT O Remote Output 8 VDD 9 SEL I 10 OSCO 11 POWER Postive Power Supply Customer Code Select Input Scan Key Input 0 With Pull Low Scan Key Input 1 With Pull Low Page 2 POWER Postive Power Supply POWER Negative Power Supply (substrate) V.2.0 Mar 8,2002 SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. 64 KEYS ENCODER BLOCK DIAGRAM OSCI OSCO VDD Vss OSC CIRCUIT KI0 KI1 OUTPUT KI2 KI3 KI4 TIMING GENERATION & CONTROL CONTROL CIRCUIT DOUT CIRCUIT KEY INPUT SCAN CIRCUIT LED KI5 CODE GENERATION CIRCUIT KI6 CODE KI7 KEY INPUT/OUTPUT SCAN CIRCUIT SEL KI/O0 KI/O1 KI/O2 KI/O3 KI/O4 KI/O5 KI/O6 KI/O7 FUNCTION DESCRIPTION (1) Oscillation The SM5025A/B oscillation circuit is designed for use of a 400 kHz or 500 kHz ceramic resonator, but there may be mutual influence between variations in the IC and ceramic resonator resulting in abnor mal oscillation. The oscillation circuit starts to operate when a key is depressed. C1 C2 OSCI OSCO Page 3 V.2.0 Mar 8,2002 SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. 64 KEYS ENCODER (2) Key Scan A pull-down resistor is inserte d between the key input pins and the VSS pin. If two or more keys are depressed simultaneously, transmission is disabled by the multi-depression prevention circuit. When a key is depressed, reading of the custom co de and key data code is started, and DOUT output begins 36 ms later, so that if t he key is being depressed during this 36 ms interval one transmission is performed. If a key is held down for 108 ms or long er, consecutive transmissions of the leader code only are performed while the key is depressed. Key Input Ex. f OSC = 455 kHz MIN. 36 ms 58.5 to 76.5 ms 108 ms 108 ms (3) Data Code D7 Control Data code D7 can be controlled by this pin, allowing 128 kinds of data to be transmitted. D7 is set to "0" by connecting the SEL pin to VDD, and to "1" by connecting the SEL pin to VSS . As the input of this pin is high-impedance, it must be connected to either V DD or VSS. Page 4 V.2.0 Mar 8,2002 SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. 64 KEYS ENCODER TRANSMISSION CODE (1) DOUT Output The transmission code consists of a leader code, 16-bit custom code, and 8-bit data code. The inverse code of the data code is also sent simultaneously, giving a total configuration of 32 bits per transmission. C0 C1 C2 C3 C4 C5 C6 C7 C0' C1' C2' C3' C4' C5' C6' C7' D0 D1 D2 D3 D4 D5 D6 D7 D0 D1 D2 D3 D4 D5 D6 D7 Leader Code Custom Code Custom Code' Data Code Data Code DOUT Output Code The leader code consists of a 9 ms carrier waveform plus a 4.5 ms OFF waveform, and is used as the leader for the following code. The code uses the PPM (Pulse Position Modulation) method, with "1" and "0" differentiated by the time bet ween pulses reference following diagram. Each code consists of 8 bits, and simultaneous transmission of the inverse code. 9 ms 4.5 ms 13.5 ms Custom Code 8 bits Leader Code Custom Code 8 bits Data Code 8 bits Data Code 8 bits 18 ms to 36 ms 58.5 to 76.5 ms 0.56 ms 0.56 ms 1.125 ms Bit 0 2.25 ms Bit 1 Page 5 V.2.0 Mar 8,2002 SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. 64 KEYS ENCODER Continuos Code 9 ms 11.25 ms 0.56 ms Carrier 8.77 µ s 26.3 µ s 9 ms or 0.56 ms Carrier Frequency ...... fc = f OSC/12 = 38 kHz (2) Custom Code Extension The custom code can be set by the diodes connected to the CODE pin and the KI/O pins. Connecting the CODE pin and KI/O pins via diodes gives a corresponding custom code of "1", while no connection gives "0". The above output codes can be obtained by custom code selection using diodes only. To further extend the number of custom codes, 200 kΩ pull up resi stors are added to pins KI/O0 through KI/O7, and the bit corresponding to a pin from among the custom code' outputs is output without being inverted. C0 C1 C2 C3 C4 C5 C6 C7 C0' C1' C2' C3' C4' C5' C6' C7' D0 D1 D2 D3 D4 D5 D6 D7 D0 D1 D2 D3 D4 D5 D6 D7 C0 C1 C2 C3 C4 C5 C6 C7 Leader Code Custom Code A Custom Code' B Data Code Data Code DOUT Output Code *: Pull-up resistor added to pins KI/O 0 and KI/O2. C0 and C2 output without inversion (non-inverted bits). Page 6 V.2.0 Mar 8,2002 SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. 64 KEYS ENCODER (3) Custom Code The DOUT output custom code can be set in any of 65536 ways by means of the diodes attached to the CODE (Custom Code Select) pin and the KI/O pins and the pull-up resistors attached to the KI/O pins. When a code other than code 00000000 (no diode connection) is used. (4) Custom Code Mask ROM Specification The custom code can also be set by mask ROM. When the mask ROM specification is used the custom code can be set without th e connection of external diodes and resistors, and by combining external diodes and resistors with mask ROM it is possible to output a code with different contents from those set by the mask ROM. W hen mask ROM specification is used, (Ver. I) or (Ver. II) can be selected. Custom Code High-Order 8 Bits Custom Code' Low-Order 8 Bits Ver. I Determined by logical OR of internal ROM1 and external diode positions. Determined by logical OR of in ternal ROM2 and external pull-up resistor positions. Determined by logical OR of in ternal ROM2 and external pull-up resistor (KI/O0 thru KI/O5) positions. Ver. II C0, C1, C2: Determined by wiring one of pins KI/O0 thru KI/O7 to CCS pin. C3 thru C7: Determined by internal ROM3 and absence/presence of KI/O6 & KI/O7 external pull-up resistors. * Standard product SM5025A uses the Ver. I specification Internal ROM is set as follows: ROM 1 Custom code high-order 8 bits 0 0 0 0 0 0 0 ROM 2 Custom code' low-order 8 bits 0 0 C0 C1 C2 C3 C4 C5 C6 C7 0 0 0 0 0 0 0 C0 C1 C2 C3 C4 C5 C6 C7 * Standard product SM5025B uses the Ver. II specification. Page 7 V.2.0 Mar 8,2002 SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. 64 KEYS ENCODER Internal ROM is set as follows: ROM 3 C7, C6, C5,C4,C3 of Custom Code High-Order 8 Bits Pull-Up resistor ROM3 C7 C6 C5 C4 C3 KI/O6 KI/O7 ROM 3 - 0 0 0 0 0 0 No No ROM 3 - 1 1 0 0 1 1 No Yes ROM 3 - 2 1 0 0 0 0 Yes No ROM 3 - 3 1 1 1 0 1 Yes Yes ROM2 Custom code' low-order 8 bits 0 0 0 0 0 0 0 0 C0' C1' C2' C3' C4' C5' C6' C7' Page 8 V.2.0 Mar 8,2002 ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. SM5025A/ B 64 KEYS ENCODER (Ver. I) Internal custom code ROM1 and ROM2 (total 16 bits) are effecitve, with 8 bits being the part (ROM1) corresponding to the external diodes, and 8 bits the part (ROM2) corresponding to the external pull-up resistors. (Ver. II) W ith Ver. II, the CODE pin does not have the function of reading the external diodes. Internal custom code ROM2 and ROM3 (total 28 bits) are effective, with 20 bits being the part (ROM3) for setting the 4 channels of custom code C7, C6, C5, C4 and C3 as 5 bits each, and 8 bits being the part (ROM2) corresponding to the external pull-up re sistors (excluding KI/O6 and KI/O7). With Ver . II 0/1 allocation to C2, C1 and C0 of the custom code high-order bits is set as shown in the following table according to the pin connection status of KI/O 0 through KI/O7. CCS C2 C1 C0 KI/O0 KI/O1 KI/O2 KI/O3 KI/O4 KI/O5 KI/O6 KI/O7 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 When CODE pin is open (C2 C1 C0) = ( 0, 0, 0) Page 9 V.2.0 Mar 8,2002 SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. 64 KEYS ENCODER KEY DATA CODE KEY K1 K2 K3 K4 K5 K6 K7 K8 K9 K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 K20 K21 K22 K23 K24 K25 K26 K27 K28 K29 K30 K31 K32 KEY K33 K34 K35 K36 K37 K38 K39 K40 K41 K42 K43 K44 K45 K46 K47 K48 K49 K50 K51 K52 K53 K54 K55 K56 K57 K58 K59 K60 K61 K62 K63 K64 KI0 * * * * * * * * KI4 * * * * * * * * KI1 * * * * * * * * Connection KI2 KI3 * * * * * * * KI/O KI/O0 * KI/O1 * KI/O2 * KI/O3 * KI/O4 * KI/O5 * KI/O6 * KI/O7 * Connection * KI 5 KI 6 KI 7 * * * * * * * * * * * * * * * * KI/O0 * KI/O1 * KI/O2 * KI/O3 * KI/O4 * KI/O5 * KI/O6 * KI/O7 * D0 D1 D2 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 D0 D1 D2 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 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Corp. 64 KEYS ENCODER DOUBLE KEY OPERATION When more than two keys except K21 + K22, K21 +K23 and K21 +K24 are depressed at the same time, the transmission output stops. Double key operation is useful for tape deck recording operation. Double key operation form are following. KEY K21 + K22 K21 + K23 K21 + K24 D0 1 0 1 D1 0 1 1 D2 1 1 1 D3 0 0 0 D4 1 1 1 D5 1 1 1 D6 0 0 0 D7 0/1 0/1 0/1 (a) Operation K21 Transmission K21 D5+K22 to 24 Transmission t > 126 ms push K22 to K24 push (b) No Operation No Transmission K21 Transmission K21 36 ms < t < 126 ms K22 to K24 (c) No Operation No transmission K21 -36 ms < t < 36 ms K22 to K24 (d) No Operation t > 126 ms K22 to K24 K22 to 24 Transmission K21 No Transmission Page 11 V.2.0 Mar 8,2002 SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. 64 KEYS ENCODER CUSTOMER CODE ROM FORMAT This LSI has customer code table ROM on the chip. So user can generate customer codes without external parts. The customer code ROM format is following. Ver.1 or 2 SEL C7 0 C6 0 C5 0 C4 0 C3 0 C2 0 C1 0 C0 0 ROM 1 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 ROM PULL SEL UP 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 0 0 0 0 1/0 0 0 0 0 1/0 0 0 0 0 K/IO6 NO NO YES YES K/IO7 NO YES NO YES ROM 2 ROM 3 1) 2) 3) 4) 0 1 2 3 Ver. 1 or Ver. 2 selection ..... Ver. 1 = 01 H, Ver. 2 = 02H When a user selects Ver. 1, ROM1 is available for the customer code (C 7 to C0) selection. ROM2 is available for the customer code' (C 7' to C0') selection. When a user selects Ver. 2, ROM3 is available for the customer code (C 7 to C3) selection. And a user can select ROM3-0, ROM3-1, ROM3-2 or ROM3-3 by the KI/O 6 and KI/O7 pull up resistances. Page 12 V.2.0 Mar 8,2002 SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. 64 KEYS ENCODER ABSOLUTE MAXIMUM RATINGS (Ta = 25℃ ) Characteristic Symbol Value Unit Supply Voltage VDD 6.0 V Input Voltage VIN -0.3 to VDD V Power Dissipation Pd 250 mW Operating Temperature Topt -20 to +75 ℃ Storage Temperature Tstg -40 to +125 ℃ RECOMMENDED OPERATING CONDITIONS Characteristic Symbol Min. Typ. Max. Unit Supply Voltage VDD 2.0 3.0 3.3 V Oscillation Frequency fosc 400 455 500 KHz Input Voltage VIN 0 VDD V Custom code select Pull up Resistance Rup 160 240 KΩ Page 13 200 V.2.0 Mar 8,2002 SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. 64 KEYS ENCODER ELECTRICAL CHARACTERISTICS (Ta = 25℃ , VDD = 3.0 V) Characteristic Symbol Min. Supply Voltage VDD Current Consumption 1 IDD1 Current Consumption 2 IDD2 DOUT High Level Output Current IOH1 DOUT Low Level Output Current IOL1 LED High Level Output Current IOH2 LED Low Level Output Current 2.0 Typ. Max. Unit Conditions 3.0 3.3 V 0.1 1.0 mA f osc = 455 kHz 1.0 µA f osc = STOP -8.0 mA Vo = 1.5 V 30 µA Vo = 0.3 V -15 -30 µA Vo = 2.7 V IOL2 1 1.5 mA Vo = 0.3 V KI High Level Input Current IIH1 5 30 µA VIN = 3.0 V KI Low Level Input Current IIL1 -0.2 µA VIN = 0 V KI High Level Input Voltage VIH1 0.7 VDD VDD V KI Low Level Input Voltage VIL1 0 0.3VDD V KI/O High Level Input Voltage VIH2 1.3 VDD V KI/O Low Level Input Voltage VIL2 0 0.4 V KI/O High Level Input Current IIH2 2 7 µA VIN = 3.0 V KI/O Low Level Input Current IIL2 -0.2 µA VIN = 0 V KI/O High Level Output Current IOH3 1.0 2.5 mA Vo = 2.5 V KI/O Low Level Output Current IOL3 35 100 µA Vo = 1.7 V CODE High Level Input Voltage VIH3 1.1 CODE High Level Input Current IIH3 CODE Low Level Input Current IIL3 CODE High Level Input Current IIH4 CODE Low Level Input Current IIL4 V 0.2 µA Pull up VIN = 3.0 V -3 -10 µA Pull up VIN = 0 V 5 30 µA Pull down VIN = 3.0 V -0.2 µA Pull down VIN = 0 V Page 14 V.2.0 Mar 8,2002 SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. 64 KEYS ENCODER APPLICATION CIRCUIT 200pf 455KHZ 200pf 3V 47 mF 12 11 10 9 8 7 6 5 VSS OSCI OSCO SEL VDD DOUT KI7 KI6 4 KI5 3 KI4 2 KI3 1 KI2 LED KI/O7 KI/O6 KI/O5 KI/O4 KI/O3 KI/O2 KI/O1 KI/O0 CODE KI0 KI1 13 14 15 16 17 18 Page 15 19 20 21 22 23 24 V.2.0 Mar 8,2002 SM5025A/ B ㆔合微科股份㈲限公司 SAMHOP Microelectronics Corp. AA 20 Y 19 18 17 16 21 15 22 14 23 13 24 12 1 11 2 10 3 9 4 5 6 7 Pad Coordinates in Microns 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 8 X 64 KEYS ENCODER 135;487 135;380 135;262 172;138 279;138 396;138 503;138 650;106 655;218 650;350 650;457 650;564 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 650;671 650;778 650;905 591;1315 464;1315 357;1315 213;1315 106;1315 135;933 135;826 135;719 135;604 SM5025A/B Pad Function 1. 2. 3. 4. 5. 6. 7. 8. KI2 KI3 KI4 KI5 KI6 KI7 DOUT VDD 9. 10. 11. 12. 13. 14. 15. 16. SEL OSCO OSCI VSS (Substrate) LED KIO7 KIO6 KIO5 17. 18. 19. 20. 21. 22. 23. 24. KIO4 KIO3 KIO2 KIO1 KIO0 CODE KI0 KI1 DIE SPECIFICATIONS: DIE SIZE: 785 microns x 1450 microns BOND PAD SIZE: 4 mil x 4 mil Page 16 AUG. 29, 2001