SC65D02C40 SILAN | Alldatasheet
Document overview
- Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
- PDF pages: 16
Technical content
8-BIT MCU FOR PRESET REMOTE CONTROL (MASK TYPE)
DESCRIPTION
SC65D02C40 is a preset universal remote control transmitter which uses Silan’s 8-bit MCU core SC65X. It integrates 40K-byte MASK ROM, memory and special co de transmitting module, so a preset universal remote solution can be easily achieved only with a few periphery components. It can preset hundreds of different remote codes and data to control a plurality of home electric appliances. For universal remote control de sign, PC software auxiliary function is available for reducing design cycle and improving reliability and efficiency through code parameter setting, for which only original data is required to get code data to be masked to ROM. Another universal remote control transmitter SC65D02P40 of Silan has built-in 8K ROM and 32K OTP, and it is compatible with SC65D02C40 in memory total capacity and function. The program developed on SC65D02P40 can be directly used to generate the masking program of SC65D02C40, which can be used foe small- batch production and sample design.
FEATURES
∗ Use 8-bit MCU core SC65X. ∗ Built-in 40K-byte MASK ROM. ∗ Integrate code transmitting circuit, the carrier frequency and duty can be set flexibly, provide 32-byte code transmitting buffer. ∗ Maximum 20 pins for key function, support 96 keys. ∗ Use CMOS technology, operating voltage is 1.8V ~ 3.6V, quiescent current is less than 1μA. ∗ Together with good application software, development efficiency is high.
APPLICATIONS
∗ Preset universal remote control.
ORDERING INFORMATION
Part No. General purpose I/O ports Package Marking SC65D02C40 16 SSOP-24-300-0.65 SC65D02C40 SC65D02C40A 16 SOP-24-375-1.27 SC65D02C40A SC65D02C40B 20 SOP-28-375-1.27 SC65D02C40B SC65D02C40C 20 SSOP-28-300-0.65 SC65D02C40C HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 1 of 17
Characteristics Symbol Range Unit Power Supply VDD -0.3 ~ +5.0 V Input Voltage VIN -0.3 ~ VDD+0.3 V Storage Temperature Tstg -40 ~ +125 °C Operating Temperature Topr -20 ~ +70 °C ELECTRICAL CHARACTERISTICS(unless otherwise specified, VDD=3v,Tamb=25°c) Characteristics Symbol Test condition Min. Typ. Max. Unit Operating Voltage VDD -- 1.8 -- 3.6 V Operating Current IDD Code transmitting with no load -- -- 1 mA Quiescent Current IDS Oscillator off -- 0.1 1 μA Operating Clock Fosc -- -- 4 -- MHz High Level Input Voltage VIH -- 0.7VDD -- VDD V Low Level Input Voltage VIL -- 0 -- 0.3VDD V HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 2 of 17
Characteristics Symbol Test condition Min. Typ. Max. Unit High Level Output Voltage VOH No load 0.9VDD -- -- V Low Level Output Voltage VOL No load -- -- 0.1VDD V P0/P1/P2 -- 40 -- μA P30 -- 1.5 -- mA High Level Current On Output Pin IOH VOH=2.7V CYOUT -- 7.5 -- mA P30 -- 0.1 -- mA Low Level Current On Output Pin IOL VOL=0.3V CYOUT -- 0.5 -- mA Port Pull-Up Resistor Rpu -- 50 100 150 KΩ PIN CONFIGURATION HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 3 of 17
HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 4 of 17 PIN DESCRIPTION SC65D02C40/A Pin No. Pin Name I/O Function description
1 VDD -- Power supply
24 GND -- Ground
2 XIN I External oscillator input pin.
3 XOUT O
External oscillator output pin (connect driver resistor in series between XOUT and oscillator) 4 nRST I External reset pin (internal pull-up resistor, low active) 5~12 P00~P07 I/O I/O pin usually used for keyboard input 13~20 P20~P27 I/O I/O pin usually used for keyboard output 21 P30 O Output pin usually used for driving LED lamp directly. 22 CYOUT O Infrared signal control output pin.
23 TEST -- Test pin (Connected to VDD for normal use)
Pin No. Pin Name I/O Function description
28 GND -- Ground
2 XIN I External oscillator input pin. External oscillator output pin (connect driver resistor in series between XOUT and oscillator) 4 nRST I External reset pin (internal pull-up resistor, low active) 5~12 P00~P07 I/O I/O pin usually used for keyboard input 13~16 P10~P13 I/O I/O pin usually used for keyboard output 17~24 P20~P27 I/O I/O pin usually used for keyboard output 25 P30 O Output pin usually used for driving LED lamp directly. 26 CYOUT O Infrared signal control output pin.
27 TEST -- Test pin (Connected to VDD for normal use)
- Address space assignment SC65D02C40 distributes program and data space in uniform addressing method, shown in figure 1. HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 5 of 17 2. Oscillator circuit SC65D02C40 provides a high-gain RP-amplifie whose input is XIN and output is XOUT. By connecting a quartz crystal and two capacitors between XIN and XOUT, a stable self oscillator can be composed, shown in figure 2. The oscillation waveform generated by the oscillator circuit generates the oscillator clock after it is reshaped by the inverter. The oscillator clock provides the clock si gnal for WDT and code transmitting block, at the same time as the SC65X MCU system clock after dividing frequency by 4. 40K×8 ROM FFF0H 0000H 01A0H 019FH 6000H 5FFFH (Unused) SFR 0000H 0030H 002FH (Unused) 0080H 007FH 256×8 Customer RAM 0180H 017FH 32×8 Code transmitting buffer 019FH FFFFH 6000H 5FFFH (System reserved) Reset vector value Interrupt vector value Reset vector value in test mode Interrupt vector value in test mode (System reserved) FFFFH FFFEH FFFDH FFFCH FFFBH FFFAH FFF9H FFF8H FFF3H FFF2H FFF1H FFF0H FFF7H FFF6H FFF5H FFF4H 0100H 00FFH Zero page memory Figure 1 – Address assignment
Figure 2 – Oscillator circuit Where: Rd is drive resistor, the value is 100 Ω~ 300Ω. C1 and C2 are load capacitors with same value, the range is :10pF ~ 30pF. XTAL is crystal oscillator, frequency is 2MHz ~ 6MHz. 3. Periphery modules
3.1 WDT/timer
[Description] As shown in figure 3, in WDT/timer module, the 16-bit ti mer can also be used as the low 16-bit of 21-bit WDT. The counting clock of WDT/timer can be directly provided by oscillator clock OscClk. [Structure] Figure 3 – WDT/timer diagram HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 6 of 17
[Function description] When external reset occurs, the initial value of timer(WDT_TimerH, WDT_TimerL)and 21-bit watchdog counter are both cleared. When use the clear module to reset the watchdog timer, the high 5-bit of the watchdog counter is cleared, the low 16-bit will be loaded from the initial value register of timer again and begin to count. When the low 16-bit of watchdog counter counts to FFFFH, the timer will overflow if increasing by 1 , then reload the initial value of timer; At this time, if the interrupt mask bit (WDT_MASK)=“0” and the timer interrupt enable bit(WDT_TimerEn)=“1”, it will generate timer interrupt signal, and WDT_FLAG is set. Add 1 to the counting value of high 5-bit of watchdog timer when bit15 of watchdog counter changes from 1 to 0; the watchdog will generate reset signal if bit20 of watchdog counter changes from 1 to 0.
3.2 I/O ports
[Description] SC65D02C40 includes three groups of I/O ports: P0, P1 and P2. P0 and P2 are 8-bit parallel ports, while P1 is 4-bit parallel port. Each I/O port of SC65D02C40 can be set independently as weak pull-up input or push-pull output status. The high level output capacity of the port is much bigger than low level output capacity, so it can identify the dual- key or multi-key pressing at the same time. [Structure] Figure 4 – P0 structure Note: The structure of P1 and P2 is the same as P0. [Function description] As shown in figure 4, we take P0 for example to introduce the I/O port function. The function of P1 and P2 is the same with that of P0. When P0_Ctrl[n] is set, PMOS P1 and NMOS N1 are both off, PMOS P2 is on, pull-up resistor Rpu is active, and port P0n is input mode. When P0_Ctrl[n] is cleared, PMOS P2 is off, port P0n is output mode. At this time, when P0_Data[0] is set, PMOS P1 is on, NMOS N1 is off, and port P0n outputs high level; when P0_Data[0] is cleared, PMOS P1 is off, NMOS N1 is on, and port P0n outputs low level. HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 7 of 17
3.3 P3 port
[Description] P3 of SC65D02C40 has only one bit which is only as output port.
3.4 ROM
[Description] SC65D02C40 has built-in 40K-byte read-only memory(R OM), and the address range is 6000H ~FFFFH. The configuration area FFF0H~FFFFH cont ains reset and interrupt vectors for normal working mode and test mode.shown in figure 5: Figure 5 – MASK configuration area The reset vector value is the initial value of PC after t he circuit is reset, that is the entry address of the main program, where, the high byte is stored in FFFBH, and low byte is stored in FFFAH. For example: FFFAH stores 40H, FFFBH stores 80H, then after the circuit is reset, then PC points to 8040H. The interrupt vector value is the initial value of PC after MCU responses to the interrupt, which is the entry address of the interrupt service routi ne, where, the high byte is stored in FFF9H, and low byte is stored in FFF8H. For example: FFF8H stores 00H, FFF9H stores 80H, then the interrupt entry address is 8000H. The reset vector value and the interrupt vector value in test mode are useful in production test, and the customer should set FFF0H with 00H, FFF1H with 60H, FFF2H with 04H, FFF3H with 60H to make sure the program down load is correct, for example, the customer should add the following code in proper position: ORG FFF0H DW 6000H DW 6004H HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 8 of 17
3.5 Code transmitting module
[Description] This module is used to generate the high and low level se quence for Infrared diode control. It is comprised of carrier generating circuit and 32-byte code transmitting buffer which will realize the exact code transmitting. [Structure] Figure 6 – Code transmitting diagram [Function description] The code transmitting of SC65D02C40 defines a universal waveform (figure 7), which should be complied with when transmitting code. Figure 7 – Code transmitting format HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 9 of 17
TYPICAL APPLICATION CIRCUIT(a) HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 11 of 17 SC65D02C40A GND TEST CYOUT P30 P27 P26 P25 P20 P21 P22 P23 P24P03 P04 XIN nRST P01 P02 P06 P05 P00 P07 XOUT VDD K00 K01 K02 K03 K04 K05 K06 K07 K10 K11 K12 K13 K14 K15 K16 K17 K20 K21 K22 K23 K24 K25 K26 K27 K30 K31 K32 K33 K34 K35 K36 K37 K40 K41 K42 K43 K44 K45 K46 K47 K50 K51 K52 K53 K54 K55 K56 K57 K60 K61 K62 K63 K64 K65 K66 K67 K70 K71 K72 K73 K74 K75 K76 K77 22p 22p 100 RLED = 1K LED VDD 3V47µ 0.1µ IRD KRST
TYPICAL APPLICATION CIRCUIT(b) HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 12 of 17 SC65D02C40A GND TEST CYOUT P30 P27 P26 P25 P20 P21 P22 P23 P24P03 P04 XIN nRST P01 P02 P06 P05 P00 P07 XOUT VDD K00 K01 K02 K03 K04 K05 K06 K07 K10 K11 K12 K13 K14 K15 K16 K17 K20 K21 K22 K23 K24 K25 K26 K27 K30 K31 K32 K33 K34 K35 K36 K37 K40 K41 K42 K43 K44 K45 K46 K47 K50 K51 K52 K53 K54 K55 K56 K57 K60 K61 K62 K63 K64 K65 K66 K67 K70 K71 K72 K73 K74 K75 K76 K77 22p 22p 100 5.1K VDD 3V47µ 0.1µ IRD KRST LED1 LED2 LED3 LED4 300 300 300 300 10K
TYPICAL APPLICATION CIRCUIT(c) HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 13 of 17 SC65D02C40A GND TEST CYOUT P30 P27 P26 P25 P20 P21 P22 P23 P24P03 P04 XIN nRST P01 P02 P06 P05 P00 P07 XOUT VDD K00 K01 K02 K03 K04 K05 K06 K07 K10 K11 K12 K13 K14 K15 K16 K17 K20 K21 K22 K23 K24 K25 K26 K27 K30 K31 K32 K33 K34 K35 K36 K37 K40 K41 K42 K43 K44 K45 K46 K47 K50 K51 K52 K53 K54 K55 K56 K57 K60 K61 K62 K63 K64 K65 K66 K67 K70 K71 K72 K73 K74 K75 K76 K77 22p 22p 100 VDD 3V47µ 0.1µ IRD KRST LED4 RLED4 = 1K LED1 LED2 LED3 RLED3 = 1K RLED2 = 1K RLED1 = 1K Note: The design precondition of above three typical applic ation circuits is: if the circuit structure is not changed, the SC65D02C40 can directly take the place of SC65D02P40; Typical application circuit (a) is generally used in the situation with one LED lamp; Typical application circuit (b) is generally used in the situation with many LED lamps, if no need to light all the LEDs, you can use the typical application circuit (c) to save the cost.
SOP-24-375-1.27 Unit: mm SOP-28-375-1.27 Unit: mm HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 14 of 17
SSOP-24-300-0.65 Unit: mm SSOP-28-300-0.65 Unit: mm HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 15 of 17
MOS DEVICES OPERATE NOTES: Electrostatic charges may exist in many things. Please ta ke following preventive measures to prevent effectively the MOS electric circuit as a result of the damage which is caused by discharge: z The operator must put on wrist strap which should be earthed to against electrostatic. z Equipment cases should be earthed. z All tools used during assembly, including soldering tools and solder baths, must be earthed. z MOS devices should be packed in antistatic/conductive containers for transportation. Note:Silan reserves the right to make changes without notice in this specification for the improvement of the design and performance. Silan will supply the best possible product for customers. HANGZHOU SILAN MICROELECTRONICS CO.,LTD REV:1.1 2008.12.10 Http: //www.silan.com.cn Page 16 of 17