0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
SC63C0316

SC63C0316

  • 厂商:

    SILAN(士兰)

  • 封装:

  • 描述:

    SC63C0316 - AUDIO CONTROL SYSTEM WITH BUILTIN - Silan Microelectronics Joint-stock

  • 数据手册
  • 价格&库存
SC63C0316 数据手册
SC63C0316 AUDIO CONTROL SYSTEM WITH BUILT-IN 4-BIT MCU DESCRIPTION The SC63C0316 single-chip CMOS microcontroller is designed for very high performance. With an up-to-14-digit LCD direct drive capability, 4-channel A/D converter, 8-bit timer/counter, PLL frequency synthesizer. The SC63C0316 offers you an excellent design solution for a wide variety of applications, especially those requiring DTS support. Up to 56 pins of the 80-pin QFP package can be dedicated to I/O. Eight vectored interrupts provide fast response to internal and external events. In addition, the SC63C0316's advanced CMOS technology ensures low power consumption and a wide operating voltage range. QFP-80-14×20-0.8 FEATURES Memory * 512-nibble RAM * 16K-byte ROM I/O Pins * Input only: 4 pins * Output only: 28 pins * I/O: 24 pins LCD Controller/Driver * Maximum 14-digit LCD direct drive capability * 28 segment x 4 common signals * Display modes: Static, 1/2 duty (1/2 bias) 1/3 duty (1/2 or 1/3 bias), 1/4 duty (1/3 bias) 8-Bit Basic Timer * Programmable interval timer functions * Watch-dog timer function 8-Bit Timer/Counter * Programmable 8-bit timer * External event counter * Arbitrary clock frequency output * External clock signal divider * Serial I/O interface clock generator 8-Bit Serial I/O Interface * 8-bit transmit/receive mode * 8-bit receive mode * Data direction selectable (LSB-first or MSB-first) * Internal or external clock source ORDERING INFORMATION Device SC63C0316 A/D Converter * 4-channels with 8-bit resolution Bit Sequential Carrier Buffer * Support 16-bit serial data transfer in arbitrary format PLL Frequency Synthesizer * Level = 300 mVp-p (min) * AMVCO range = 0.5 MHz to 30 MHz * FMVCO range = 30 MHz to 150 MHz 16-Bit Intermediate Frequency (IF) Counter * Level = 300 mVp-p (min) * AMIF range = 100 kHz to 1 MHz * FMIF range =5MHz to 15 MHz Watch Timer * Time interval generation 0.5 s, 3.9 ms at 32.768 kHz * Frequency outputs to BUZ pin * Clock source generation for LCD Interrupts * Four internal vectored interrupts * Four external vectored interrupts * Two quasi-interrupts Memory-Mapped I/O Structure * Data memory bank 15 Package QFP-80-14 x 20-0.8 HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 1 of 24 SC63C0316 Three Power-Down Modes * Idle: Only CPU clock stops * Stop1: Main system or subsystem clock stops * Stop2: Main system and subsystem clock stop * CE low: PLL and IFC stop Oscillation Sources * Crystal or ceramic oscillator for main system clock * Crystal for subsystem clock * Main system clock frequency: 4.5 MHz (Typ) * Subsystem clock frequency: 32.768 kHz (Typ) * CPU clock divider circuit (by 4, 8, or 64) Instruction Execution Times * 0.9, 1.8, 14.2 µs at 4.5 MHz * 122 µs at 32.768 kHz (subsystem) Operating Temperature * – 40 °C to 85 °C Operating Voltage Range * 1.8 V to 5.5 V at 3MHz * PLL/IFC operation: 2.5V to 3.5V or 4.0V to 5.5V APPLICATIONS * Auto audio system * Other audio system BLOCK DIAGRAM ABSOLUTE MAXIMUM RATINGS (Tamb=25°C) Characteristics Supply Voltage Input Voltage Output Voltage Output Current High Symbol VDD VI1 VI2 VO IOH Value -0.3 - 6.5 -0.3 - VDD +0.3 -0.3 - VDD +0.3 -0.3 - VDD +0.3 -15 -30 V mA (To be continued) Unit V V HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 2 of 24 SC63C0316 (Continued) Characteristics Output Current Low Symbol Value +30 Peak value IOL Unit mA +100 Peak value Operating Temperature Storage Temperature Tamb Tstg -40 ~ 85 -65~150 °C °C DC CHARACTERISTICS (Tamb=-40°C to +85°C, VDD=3.5V to 6.0V) Characteristics Symbol VIH1 VIH2 Input High Voltage VIH3 All Test condition input pins except those specified below for VIH2-VIH4 Port 0, 1, 6, 7, and RESET Ports 4, 5, 7 and 8 with pull- up resistors assigned Ports 4, 5, 7 and 8 are opendrain VIH4 VIL1 Input Low Voltage VIL2 VIL3 VOH1 Output High Voltage VOH2 Xin, Xout and Xtin All input pins except those ----specified below for CIL2-Vil3 Ports 0, 1, 6, 7, 9, 10 and RESET Min. 0.7VDD 0.8VDD 0.7VDD 0.7VDD VDD -0.5 Typ. Max. VDD VDD Unit --- VDD 9 VDD 0.3VDD 0.2VDD 0.4 V V Xin, Xout and XTin VDD=4.5V to 6.0V, IOH=-1mA, Ports 0, 2-10 IOH=-100µA VDD=4.5V to 6.0V, IOH=-100µA, Ports 11-13 only IOH=-30µA VDD=4.5V to 6.0V, IOL=1.6mA, Ports 4,5,7 and 8only IOL=-1.6mA, Ports 0,2,3,6,9,10, EO1, and Eo2 only IOL=400µA, Ports 0, 2, 3, 6, 9, 10, EO1 and EO2 only VDD=4.5V to 6.0V, IOL=100µA, ----VDD -1.0 VDD -0.5 VDD -2.0 VDD -1.0 0.8 --- --- V 2 0.4 0.2 1 1 V VOL1 Output Low Voltage VOL2 Port 11, 12 and 13 only IOL=50µA VI=VDD, all input pins except Input High Leakage Current ILIH1 RESET and those specified --- --- 3 µA below for ILIH2-ILIH3 (To be continued) HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 3 of 24 SC63C0316 (Continued) Characteristics Input High Leakage Current Symbol ILIH2 ILIH3 ILIL1 ILIL2 Output Current Output Current Low Leakage High Leakage ILOH1 ILOH2 ILOL Test condition VI=VDD, Xin, Xout, Xtin only VI=9V, Ports 4,5,7 and 8 are open-drain VI=0V, all input pins except Xin, Xout, XTin and RESET VI=0V, Xin, Xout, and XTin only VO=VDD, all output pins except for ports 4, 5, 7 and 8 VO=9V, Ports 4, 5, 7 and 8 are open-drain VO=0V VI=0V; VDD=5V±10%, Port 0-3, RL1 6, 9, and 10 (except P1.3) VDD=3V±10%, Pull-up Resistor VO=VDD-2V, RL2 VDD=3V±10%, RL3 LCD Drive Voltage LCD Resistor COM Output Impedance SEG Output Impedance Voltage Dividing VLCD RLCD RCOM RSEG VI=0V; VDD=5V±10%, RESET VDD=3V±10%, --VDD=5V±10%, VDD=3V±10%, VDD=5V±10%, VDD=3V±10%, VDD=5V±10%,(3), IDD1 (2) CE high; PLL operates Idle IDD2 mode; VDD=5V±10%, 4.5MHz crystal oscillator, CPU Supply Current (1) clock =fxx/4, CE low; PLL stops. VDD=3V±10%, =fxx/64 IDD3 (4) IDD4 (5) VDD=3V±10%, 32kHz crystal --20 30 oscillator, CE low; PLL stops. Idle mode; VDD=3V±10%, 32kHz crystal oscillator. CPU clock 0.23 25 1.0 120 µA --1.4 1.8 mA 4.5MHz 12 25 crystal oscillator, C1=C2=22pF, VDD=5V±10%, Ports 4, 5, 7 and 8 only --15 30 15 10 100 200 2.5 50 ----100 3 10 3 10 230 490 --46 90 40 ----20 3 80 200 70 60 400 800 VDD 140 6 15 20 60 V kΩ kΩ kΩ kΩ µA ----Min. Typ. Max. 25 20 -3 -20 3 µA Unit µA µA Input Low Leakage Current µA HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 4 of 24 SC63C0316 DC CHARACTERISTICS (concluded) (Tamb=-40°C to +85°C, VDD=2.7V to 6.0V) Characteristics Symbol Test condition Stop 1 mode; XTin=0V IDD5 VDD=5V±10%, CPU clock=fxx/4, CE low; PLL stops VDD=3V±10%, CPU clock=fxx/64 VDD=5V±10%, 4.5MHz crystal Supply Current (cont) IDD6 oscillator, CPU clock=fxx/4, CE low; PLL stops VDD=3V±10%, CPU clock=fxx/64 Stop 2 mode; Xtin=0V, IDD7 (2) NOTES: 1. Currents in the following circuits are not included; on-chip pull-up resistors, output port drive currents, internal LCD voltage dividing resistors and A/D converter. 2. IDD1 and IDD7 are guaranteed in Tamb = – 20 °C to + 85 °C 3. Data includes power consumption for subsystem clock oscillation. 4. For high-speed controller operation, the power control register (PCON) must be set to 0011B. 5. For low-speed controller operation, the power control register (PCON) must be set to 0000B. 6. When the system clock control register, SCMOD, is set to 1001B, main system clock oscillation stops and the subsystem clock is used. VDD=5V±10%, CPU clock=fxx/4, CE low; PLL stops 0.12 2.0 µA 0.7 1.2 --4.2 8 mA 0.2 3 0.6 5 µA Min. Typ. Max. Unit MAIN SYSTEM OSCILLATOR CHARACTERISTICS (Tamb=-40°C to +85°C, VDD=2.7V to 6.0V) Oscillator Ceramic Oscillator Stabilization time (2) Characteristics Oscillation frequency (1) -Stabilization occurs when VDD is equal to the mini mum oscillator voltage range Oscillation frequency (1) Crystal Oscillator VDD=4.5V~6.0V Stabilization (2) VDD=2.7V~4.5V ----0.4 111 ----10 30 4.5 1250 ms -0.4 4.5 6.0 MHz --4 ms Test condition Min 0.4 Typ -Max 5.0 Units MHz External Clock NOTES: XIN input frequency (1) XIN input high and low level width MHz ns 1. Oscillation frequency and Xin input frequency data are for oscillator characteristics only. 2. Stabilization time is the interval required for oscillator stabilization after a power-on occurs, or when Stop mode is terminated. HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 5 of 24 SC63C0316 SUBSYSTEM CLOCK OSCILLATOR CHARACTERISTICS Oscillator Crystal Oscillator External clock Characteristics Oscillation frequency(1) Stabilization time (2) XTIN input frequency (1) XTIN input high and low level width (tXH, tXL) Test condition -VDD=4.5V~5.5V VDD=1.8V~4.5V --Min 32 --32 5 Typ 32.768 1.0 ---Max 35 2 10 100 15 Units kHz s kHz µs Note:1. Oscillation frequency and XTIN input frequency data are for oscillator characteristics only. 2. Stabilization time is the interval required for oscillator stabilization after a power-on occurs. PIN CONFIGURATIONS P0.1/TCLO0 P0.0/BTCO P0.2/TCL0 P1.2/INT2 P1.1/INT1 P1.0/INT0 P4.0/SCK P0.3/BUZ PI.3/INT4 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 FMIF 63 AMIF 62 VSS1 61 VCOAM 60 VCOFM 59 P2.3 58 P2.2 57 P2.1 56 P2.0 55 SEG27/P13.3 54 SEG26/P13.2 P4.1/SO P4.2/SI P4.3/CLO P5.0/ADC0 P5.1/ADC1 P5.2/ADC2 P5.3/ADC3 P6.0/KS0 P6.1/KS1 1 2 3 4 5 6 7 8 9 SDAT/P6.2/KS2 10 SCLK/P6.3/KS3 11 VDD/VDD0 l2 VDD1 53 SEG25/P13.1 52 SEG24/P13.0 51 SEG23/P12.3 50 SEG22/P12.2 49 SEG21/P12.1 48 SEG20/P12.0 47 SEG19/P11.3 46 SEG18/P11.2 45 SEG17/P11.1 44 SEG16/P11.0 43 SEG15/P10.3 42 SEG14/P10.2 41 SEG13/P10.1 40 SEG12/P10.0 P3.3 P3.2 P3.1 P3.0 CE 38 SEG10/P9.2 VSS/VSS0 13 XOUT 14 XIN 15 VPP/TEST 16 XTIN 17 XTOUT 18 RESET/RESET 19 BIAS 20 VLC0 21 SC63C0316 VLC1 22 VLC2 23 COM0 24 25 COM1 26 COM2 27 COM3 28 SEG0/P7.0 3 29 SEG1/P7.1 30 SEG2/P7.2 31 SEG3/P7.3 32 SEG4/P8.0 33 SEG5/P8.1 34 SEG6/P8.2 35 SEG7/P8.3 36 SEG8/P9.0 37 SEG9/P9.1 39 SEG11/P9.3 HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn E0 REV:1.0 2004.08.03 Page 6 of 24 SC63C0316 PIN DESCRIPTION Pin No. 72 73 74 75 76 77 78 79 56-59 68-71 80 1 2 3 4 5 6 7 8 9 10 11 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 Symbol P0.0 P0.1 P0.2 P0.3 P1.0 P1.1 P1.2 P1.3 P2.0~ P2.3 P3.0~P3.3 P4.0 P4.1 P4.2 P4.3 P5.0 P5.1 P5.2 P5.3 P6.0 P6.1 P6.2 P6.3 P7.0 P7.1 P7.2 P7.3 P8.0 P8.1 P8.2 P8.3 P9.0 P9.1 P9.2 P9.3 P10.0 P10.1 P10.2 P10.3 (To be continued) 1-bit or 4-bit output port. Alternatively used for LCD segment output. 1-bit or 4-bit output port. Alternatively used for LCD segment output. 1-bit or 4-bit output port. Alternatively used for LCD segment output. 1-bit or 4-bit output port. Alternatively used for LCD segment output. 4-bit I/O port. 1-bit, 4-bit or 8-bit read, write and test are possible. Pull-up resistors can be configured by software. Ports 4 and 5 can be paired to support 8-bit data transfer. 4-bit I/O port. 1-bit or 4-bit read, write, and test are possible. Pull-up resistors can be configured by software. 4-bit input port. 1-bit or 4-bit read and test are possible. Pull-up resistors can be configured by software. 4-bit I/O ports. 1-bit, 4-bit or 8-bit read, write and test are possible. Pull-up resistors can be configured by software. Ports 2 and 3 can be paired to support 8-bit data transfer. 4-bit I/O ports. 1-bit, 4-bit or 8-bit read, write and test are possible. Pull-up resistors can be configured by software. Description HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 7 of 24 SC63C0316 (Continued) Pin No. 44 45 46 47 48 49 50 51 52 53 54 55 24-27 20 21 22 23 12 13 19 14 15 18 17 16 67 60 61 66 64 63 65 62 72 73 74 75 Symbol P11.0 P11.1 P11.2 P11.3 P12.0 P12.1 P12.2 P12.3 P13.0 P13.1 P13.2 P13.3 COM0-COM3 BIAS VLC0 VLC1 VLC2 VDD0 VSS0 RESET XOUT XIN XTOUT XTIN TEST CE VCOFM VCOAM EO FMIF AMIF VDD1 VSS1 BTCO TCLO0 TCL0 BUZ Common signal output for LCD display LCD power control LCD power supply. Voltage dividing resistors are assignable by software Main power supply Main Ground System reset pin Crystal, or ceramic oscillator pin for main system clock. (For external clock input, use XIN and input XIN’ reverse phase to XOUT) s Crystal oscillator pin for subsystem clock. (For external clock input, use XTIN and input XTIN’ reverse phase to XTOUT) s Test signal input (must be connected to VSS for normal operation) Input pin for checking device power. Normal operation is high level and PLL/IFC operation is stopped at low level. External VCOFM/AM signal inputs. PLL’ phase error output s FM/AM intermediate frequency signal inputs. PLL/IFC power supply PLL/IFC ground Basic timer overflow output signal Timer/counter 0 clock output signal External clock input for timer/counter 0 2,4,8 or 16 kHz frequency output for buzzer sound for 4.19 MHz main system clock or 32.768 kHz subsystem clock (To be continued) 1-bit or 4-bit output port. Alternatively used for LCD segment output. 1-bit or 4-bit output port. Alternatively used for LCD segment output. 1-bit or 4-bit output port. Alternatively used for LCD segment output. Description HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 8 of 24 SC63C0316 (Continued) Pin No. 76 77 78 79 80 1 2 3 8-11 4-7 28-55 Symbol INT0 INT1 INT2 INT4 SCK SI SO CLO KS0-KS3 ADC0-ADC3 SEG0-SEG27 Description External interrupt. The triggering edges (rising/falling) are selectable. Only INT0 is synchronized with system clock. Quasi-interrupt with detection of rising edge signal. External interrupt input with detection of rising or falling edges. SIO interface clock signal SIO interface data input signal SIO interface data output signal CPU clock output Quasi-interrupt input with falling edge detection ADC input ports. LCD segment signal output. FUNCTION DESCRIPTION INTERRUPTS The SC63C0316 has four external interrupts, four internal interrupts and two quasi-interrupts. Table 1 shows the conditions for interrupt generation. The request flags that allow these interrupts to be generated are cleared by hardware when the service routine is vectored. The quasi-interrupt's request flags must be cleared by software. Figure 1. Interrupt Control Circuit Diagram IE2 IEW IEIF IECE IET0 IE1 IMOD1 IMOD0 INTB INT4 INT0 INT1 @ INTS INTT0 INTCE INTIF INTW INT2 KS0-KS3 SELECTOR # @ IRQB IRQ4 IRQ0 IRQ1 IRQS IRQT0 IRQCE IRQIF IRQW IRQ2 IE0 IE4 IEB IMOD2 POWER-DOWN MODE RELEASE SIGNAL IME IPR INTERRUPT CONTROL UNIT IS1 IS0 VECTOR INTERRUPT GENERATOR # = NOISE FILTERING CIRCUIT @ = EDGE DETECTION CIRCUIT Note : INT0 can release idle mode only when fxx/64 is selected as a asmpling clock HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 9 of 24 SC63C0316 TABLE1. Interrupt request flag conditions and priorities Interrupt source INTB INT4 INT0 INT1 INTS INTT0 INTCE INTIF INT2* Internal/ External I E E E I I E I E Condition for IRQx flag setting Reference time interval signal from basic timer Both rising and falling edges detected at INT4 Rising or falling edge detected at INT0 pin Rising or falling edge detected at INT1 pin Completion signal for serial transmit-and-receive or receive-only operation Signals for TCNT0 and TREF0 retgisters match When falling edge is detected at CE pin When gate closes Rising edge detected at INT2 or else a falling edge is detected at any of the KS0-KS3 pins Interrupt priority 1 1 2 3 4 5 6 7 --Request flag name IRQB IRQ4 IRQ0 IRQ1 IRQS IRQT0 IRQCE IRQIF IRQ2 IRQW INTW I Time interval of 0.5s or 3.19ms * The quasi-interrupt INT2 is only used for testing incoming signals. INTERRUPT ENABLE FLAGS (IEx) IEx flags, when set to "1", enable specific interrupt requests to be serviced. When the interrupt request flag is set to "1", an interrupt will not be serviced until its corresponding IEx flag is also enabled. The IPR register contains a global disable bit, IME, which disables all interrupt at once. INTERRUPT PRIORITY Each interrupt source can also be individually programmed to high levels by modifying the IPR register. When IS1 = 0 and IS0 = 1, a low-priority interrupt can itself be interrupted by a high-priority interrupt, but not by another low-priority interrupt. If you clear the interrupt status flags (IS1 and IS0) to "0" in a interrupt service routine, a high-priority interrupt can be interrupted by low-priority interrupt (multi-level interrupt). Before the IPR can be modified by 4-bit write instructions, all interrupts must first be disabled by a DI instruction. When all interrupts are low priority (the lower three bits of the IPR register are "0"), the interrupt requested first will have high priority. Therefore, the first-requested interrupt cannot be superseded by any other interrupt. If two or more interrupt requests are received simultaneously, the priority level is determined according to the standard interrupt priorities, where the default priority is assigned by hardware when the lower three IPR bits = "0". In this case, the higher-priority interrupt request is serviced and the other interrupt is inhibited. Then, when the high-priority interrupt is returned from its service routine by an IRET instruction, the inhibited service routine is started. Table 2. Interrupt Priority Register Settings IPR.2 0 0 0 0 1 1 1 1 IPR.1 0 0 1 1 0 0 1 1 IPR.0 0 1 0 1 0 1 0 1 Result of IPR Bit Setting Process all interrupt requests at default priority settings. INTB and INT4 at highest priority. INT0 at highest priority. INT1 at highest priority. INTS at highest priority. INTT0 at highest priority. INTCE at highest priority. INTIF at highest priority. HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 10 of 24 SC63C0316 Table 3. Default Priorities Source INTB, INT4 INT0 INT1 INTS INTT0 INTCE INTIF Default Priority 1 2 3 4 5 6 7 The interrupt controller can service multiple interrupts in two ways: as two-level interrupts, where either all interrupt requests or only those of highest priority are serviced (see Figure 2), or as multi-level interrupts, when the interrupt service routine for a lower-priority request is accepted during the execution of a higher priority routine. (See Figure 3) Figure 2: Two-level Interrupt handling Figure 3: Multi-level Interrupt handling Normal program processing (status 0) INT disable Set IPR INT enable Low or High level Interrupt Generated INT disable Modify status INT enable Low or High level Interrupt Generated Status 0 High level Interrupt Status 1 Generated Status 1 Single interrupt 2-level interrupt 3-level interrupt Status 2 Status 0 NOTE: If more than four interrupts are being processed at one time, you can avoid possible loss of working register data by using the PUSH RR instruction to save register contents to the stack before the service routines are executed in the same register bank. When the routines have executed successfully, you can restore the register contents from the stack to working memory using the POP instruction. HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 11 of 24 SC63C0316 Interrupt execute flowchart A vectored interrupt is generated when the following flags and register settings, corresponding to the specific interrupt (INTn) are set to logic one: — Interrupt enable flag (IEx) — Interrupt master enable flag (IME) — Interrupt request flag (IRQx) — Interrupt status flags (IS0, IS1) — Interrupt priority register (IPR) If all conditions are satisfied for the execution of a requested service routine, the start address of the interrupt is loaded into the program counter and the program starts executing the service routine from this address. Figure 4 Interrupt execution flowchart Interrupt is generated (INT xx) Request flag (IRQx) 1 No IEx=1? Yes Retain value until IEx=1 Generate corresponding vector interrupt and release power-down mode IME=1? Yes Yes IS1,0=0,0? No IS1,0=0,1? Yes High-priorityinterrupt IS1, 0=0, 1 Yes IS1, 0=1, 0 No Retain value until IME=1 Retain vaule until interrupt service routine is completed No No Store contents of PC and PSW in the stack area; set PC contens to corresponding vector address Are both interrupt sources of shared vector address used? No Reset corresponding IRQx flag Yes IRQx flag vaule remains 1 Jump to interrupt start address Jump to interrupt start address Verify interrupt source and clear IRQx with a BTSTZ instruction HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 12 of 24 SC63C0316 EXTERNAL INTERRUPTS The external interrupt mode registers IMOD0 and IMOD1 are used to control the triggering edge of the input signal at INT0 and INT1, respectively. The INT4 interrupt is an exception because its input signal generates an interrupt request on both rising and falling edges. When a sampling clock rate of fxx/64 is used for INT0, an interrupt request flag must be cleared before 16 machine cycles have elapsed. Since the INT0 pin has a clock-driven noise filtering circuit built into it, please take the following precautions when you use it: — To trigger an interrupt, the input signal width at INT0 must be at least two times wider than the pulse width of the clock selected by IMOD0. This is true even when the INT0 pin is used for general-purpose input. — Because the INT0 input sampling clock does not operate during Stop or Idle mode, you cannot use INT0 to release power-down mode. EXTERNAL INTERRUPT MODE REGISTER The external interrupt 2 (INT2) mode register, IMOD2, is used to select INT2 and KSn pins as interrupt input. If a rising edge is detected at the INT2 pin, or when a falling edge is detected at any one of the pins (KS0–KS3), the IRQ2 flag is set to "1" and a release signal for power-down mode is generated. If one or more of the pins which are configured as key Interrupt (KS0–KS7) are in Low input or Low output state, the key Interrupt can not be occured. Figure 5. INT2 P6.3/KS3 Rising Edge Detection Circuit P6.2/KS2 P6.1/KS1 Falling Edge Detection Circuit Clock Selector P6.0/KS0 IMOD2 IRQ2 Note: To generate a key interrupt on a falling edge at KS0-KS3, all KS0-KS3 pins must be configured to input mode. I/O PORTS The SC63C0316 has 14 ports. There are total of 4 input pins, 28 output pins, 16 configurable I/O pins, and 8 nchannel open-drain I/O pins, for a maximum number of 56 I/O pins. Pin addresses for all ports except ports 7-13 are mapped in bank 15 of the RAM. Ports 7-13 pin addresses are in bank 1 of the RAM. The contents of I/O port pin latches can be read, written, or tested at the corresponding address using bit manipulation instructions. HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 13 of 24 SC63C0316 PORT MODE FLAGS (PM FLAGS) Port mode flags (PM) are used to configure I/O ports to input or output mode by setting or clearing the corresponding I/O buffer. If a PM bit is "0", the corresponding I/O pin is set to input mode. If the PM bit is "1", the pin is set to output mode. PM flags are addressable by 8-bit write instructions only. PULL-UP RESISTOR MODE REGISTER (PUMOD) The pull-up resistor mode register, PUMOD, is an 8-bit register used to assign internal pull-up resistors by software to specific I/O ports. When a PUMOD bit is "1", a pull-up resistor is assigned to the corresponding I/O port: When a configurable I/O port pin is used as an output pin, its assigned pull-up resistor is automatically disabled, even though the pin's pull-up is enabled by a corresponding PUMOD bit setting. PUMOD is addressable by 8-bit write instructions only. A system reset clears PUMOD values to logic zero, automatically disconnecting all software-assignable port pull-up resistors. Table 4. Pull-Up Resistor Mode Register (PUMOD) Organization PUMOD ID PUMOD Address FDCH FDDH Bit3 PUR3 "0" Bit2 PUR2 PUR6 Bit1 PUR1 PUR5 Bit0 PUR0 PUR4 Table 5. Port Mode Group Flags (8-Bit W) PM Group ID PMG0 PMG1 PMG2 PMG3 Address FE6H FE7H FE8H FE9H FEAH FEBH FECH FEDH Bit3/7 PM0.3 “ 0” PM2.3 PM3.3 PM4.3 PM5.3 PM6.3 “ 0” Bit2/6 PM0.2 “ 0” PM2.2 PM3.2 PM4.2 PM5.2 PM6.2 “ 0” Bit1/5 PM0.1 “ 0” PM2.1 PM3.1 PM4.1 PM5.1 PM6.1 “ 0” Bit0/4 PM0.0 “ 0” PM2.0 PM3.0 PM4.0 PM5.0 PM6.0 “ 0” N-CHANNEL OPEN-DRAIN MODE REGISTER(PNE) The N-channel, open-drain mode register, PNE, is used to configure port 7 to 13 to N-channel open-drain modes or push-pull modes. When a bit in the PNE register is set to “ , the corresponding output pin is configured to N-channel open-drain; 1” when set to “ , the output pin is configured to push-pull mode. 0” The PNE register consists of an 8-bit register, as shown below, PNE can be addressed by 8-bit write instructions only. Table 6. N-channel open drain mode register (PNE) setting ID PNE Address FD6H FD7H Bit 3/7 PNE10 “ 0” Bit 2/6 PNE9 PNE13 Bit1/5 PNE8 PNE12 Bit0/4 PNE7 PNE11 HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 14 of 24 SC63C0316 A/D CONVERTER To operate the A/D converter, one of the four analog input channels is selected by writing the appropriate value to the ADC mode register. To start the converter, the ADSTR flag in the control register AFLAG must be set to "1". Conversion speed is determined by the oscillator frequency and the CPU clock. When the A/D operation is complete, the EOC flag must be tested in order to verify that the conversion was successful. When the EOC value is "0", the converted digital values stored in the data register ADATA can be read. Figure 6. A/D Converter Circuit Diagram DATA BUS ADMOD "0" .2 .1 .0 ADSTR EOC "0" AFLAG "0" ADATA 8 AD3 VAin AD2 MULRIPLEXER AD1 AD0 VDA CMP Successive Approximation Logic DAC AVREF AVSS Resistor String Digital-To-Analog Converter 8 Figure 7. A/D Converter Timing Diagram tinit One Machine Cycle tconv = 10 x 8/fx ADSTR EOC ADATA Previous Value Value Remains Undetermined Valid DATA ADC DIGITAL-TO-ANALOG CONVERTER (DAC) The 8-bit digital-to-analog converter (DAC) generates analog voltage reference values for the comparator. The DAC is a 256-step resistor string type digital-to-analog converter that uses successive approximation logic to convert digital input into the reference analog voltage, VDA. The VDA values are input from the DAC to the comparator where they are compared to the multiplexed external analog source voltage, VAin. Since the DAC has 8-bit resolution, it generates the 256-step analog reference voltage. HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 15 of 24 SC63C0316 ADC DATA REGISTER (ADATA) The A/D converter data register, ADATA, is an 8-bit register in which digital data values are stored as an A/D conversion operation is completed. Digital values stored in ADATA are retained until another conversion operation is initiated. ADATA is addressable by 8-bit read instructions only. ADC MODE REGISTER (ADMOD) The analog-to-digital converter mode register, ADMOD, is used to select one of four analog channels as the analog data input source. Bit 3 in the ADMOD register is always "0". Table 7. A/D Converter Mode Register Settings (1, 4-Bit R/W) ADMOD.2 1 0 0 0 ADMOD.1 0 0 1 1 ADMOD.0 0 1 0 1 Effect of ADMOD Bit Setting Select input channel AD0 Select input channel AD1 Select input channel AD2 Select input channel AD3 NOTE: If ADMOD.2–ADMOD.0 = 0, disable analog input channel selection. PLL FREQUENCY SYNTHESIZER The phase locked loop (PLL) frequency synthesizer locks medium frequency (MF), high frequency (HF), and very high frequency (VHF) signals to a fixed frequency using a phase difference comparison system. Figure 8. PLL Frequency Synthesizer Block Diagram 4 PLMOD PLMOD.3,2 Input Circuit 2 NF 1 Swallow Counter PLMOD.3 Input Circuit PLMOD.2 Reference Frequency Generator Unlock Detector Programmable Counter 8 PLLD(16-bit) 4 12 VCOFM Prescaler VCOAM Selector Phase Comparator Charge Pump EO PLLREF 4 ULFG PLL FREQUENCY SYNTHESIZER FUNCTIONS The PLL frequency synthesizer divides the signal frequency at the VCOAM or VCOFM pin using the programmable divider. It then outputs the phase difference between the divided frequency and reference frequency at the EO pins. NOTE The PLL frequency synthesizer operates only when the CE pin is high level; it enters the disable mode when the CE pin is low. HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 16 of 24 SC63C0316 PHASE DETECTOR, CHARGE PUMP, AND UNLOCK DETECTOR The phase comparator compares the phase difference between divided frequency (fN) output from the programmable divider and the reference frequency (fr) output from the reference frequency generator. The charge pump outputs the phase comparator's output from error output pins EO. The relation between the error output pin output, divided frequency fN, and reference frequency fr is shown below: fr > fN = Low level output fr < fN = High level output fr = fN = Floating level When PLL operation is started by setting PLMOD register, PLL unlock flag (ULFG) in the PLL flag register (PLLREG) has unlock state information between the reference frequency and divided frequency. The unlock detector detects the unlock state of the PLL frequency synthesizer. The unlock flag in the PLLREG register is set to "1" in unlock state. If ULFG = "0", the PLL lock state is selected. PLLREG ULFG CEFG IFCFG 0 ULFG is set continuously at a period of reference frequency f r by unlock detector. You must therefore read ULFG flag in the PLLREG register at periods longer than 1/f r of the reference frequency. ULFG is reset when it is read. PLLREG register can be read by 1-bit or 4-bit RAM control register instructions. PLL operation is decided by CE (chip enable) pin state. The PLL frequency synthesizer is disabled and the error output pin is set to floating state while the CE pin is low. When CE pin is high level, PLL is operating normally. The chip enable flag (CEFG) in the PLLREG register has information about CE pin state. When the CE pin changes its low state to high, CEFG flag is set to logic one and CE reset operation occurs. When the CE pin changes its high state to low, CEFG flag is set to logic zero and CE interrupt is generated. INTERMEDIATE FREQUENCY COUNTER The SC63C0316 uses an intermediate frequency counter (IFC) to count the frequency of the AM or FM signal at FMIF or AMIF pin. The IFC block consists of a 1/2 divider, gate control circuit, IFC mode register (IFMOD) and a 16-bit binary counter. During gate time, the 16-bit IFC counts the input frequency at the FMIF or AMIF pins. The FMIF or AMIF pin input signal for the 16-bit counter is selected by IFMOD register. The 16-bit binary counter (IFCNT1– IFCNT0) can be read by 8-bit RAM control instructions only. When the FMIF pin input signal is selected, the signal is divided by 2. When the AMIF pin input signal is directly connected to the IFC, it is not divided. By setting the IFMOD register, the gate is opened for 1-ms, 4-ms, or 8-ms periods. During the open period of the gate, input frequency is counted by the 16-bit counter. When the gate is closed, the counting operation is complete, and an interrupt is generated. HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 17 of 24 SC63C0316 Figure 9. IF Counter Block Diagram FMIF 1/2 Divider Selector If Counter (16 Bit) 8 Gate Control Circuit 1 ms 4 ms 8 ms Gate Signal Generator DATA BUS AMIF IFMOD 3 2 1 0 DATA BUS 1KHz Internal Signal Table 8. IF Counter Frequency Ranges Pin AMIF FMIF INPUT PIN CONFIGURATION The AMIF and FMIF pins have built-in AC amplifiers (see Figure 32). The DC component of the input signal must be stripped off by the external capacitor. When the AMIF or FMIF pin is selected for the IFC function and the switch is turned on voltage of each pin increases to approximately 1/2 VDD after sufficiently long time. If the pin voltage does not increase to approximately 1/2 VDD , the AC amplifier exceeds its operating range, possibly causing an IFC malfunction. To prevent this from occurring, you should program a sufficiently long time delay interval before starting the count operation. Figure 10. AMIF and FMIF Pin Configuration SW External Frequency FMIF AMIF To internal Counter Voltage Level 300mVpp(min) 300mVpp(min) Frequency Range 0.1MHz to 1MHz 5MHz to 15MHz LCD CONTROLLER/DRIVER The SC63C0316 microcontroller can directly drive 4 com x 28-segment LCD panel. Data written to the LCD display RAM can be transferred to the segment signal pins automatically without program control. When a subsystem clock is selected as the LCD clock source, the LCD display is enabled even during the Stop1 and Idle power-down modes. LCD RAM ADDRESS AREA RAM addresses 1E4H– 1FFH are used as LCD data memory. These locations can be addressed by 1-bit or 4bit instructions. When the bit value of a display segment is "1", the LCD display is turned on; when the bit value is "0", the display is turned off. Display RAM data are sent out through segment pins SEG0–SEG27 using a direct memory access (DMA) HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 18 of 24 SC63C0316 method that is synchronized with the fLCD signal. RAM addresses in this location that are not used for LCD display can be allocated to general-purpose use. Figure 11. LCD Display Data RAM Organization 1E4H BIT3 BIT2 BIT1 BIT0 1E5H ...... 1F8H 1F9H 1FAH 1FBH 1FCH 1FDH 1FEH 1FFH COM3 COM2 COM1 COM0 ...... ...... ...... SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG0 SEG1 Figure 12. LCD Circuit Diaram 1FFH.3 4 1FFH.2 1FFH.1 1FFH.0 M U X S E L 1F4H.3 4 1F4H.2 1F4H.1 1F4H.0 1F4H.3 1F4H.2 1F4H.1 1F4H.0 M U X S E L P O R T / S E G M E N T SEG27/P13.3 4 M U X S E L FFFH.3 4 D R I V E R SEG1/P7.1 SEG0/P7.0 FFFH.2 FFFH.1 FFFH.0 FF7H.3 4 FF7H.2 FF7H.1 FF7H.0 fLCD COM3 COM2 COM1 COM0 BIAS VLC0 VLC1 VLC2 8 LPOT TIMING CONTROLLER COM CONTROL 4 LMOD LCON LCD VOLTAGE CONTROL 4 HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 19 of 24 SC63C0316 LCD CONTROL REGISTER (LCON) The LCON register is used to turn the LCD display on and off and to control the flow of current to dividing resistors in the LCD circuit. When LCON.0 is logic zero, the LCD display is turned off and the current to the dividing resistors is cut off, regardless of the current LMOD.3 value. Table 9. LCD Control Register (LCON) Organization (4-Bit W) LCON Bit LCON.3 LCON.2 LCON.1 Setting 0 0 0 1 0 LCON.0 1 Always set to logic zero. Always set to logic zero. Port 6 input enable Port 6 input disable LCD output low, cut off current to dividing resistor When LMOD.3=” : turn display off. 0” When LMOD.3=” : COM and SEG output in display mode. 1” Description Table 10 Relationship of LCON.0 and LMOD.3 Bit Settings LCON.0 0 LMOD.3 x 0 1 1 COM0–COM3 Output low; LCD display off LCD display off COM output corresponds to display mode SEG0–SEG31 Output low; LCD display off LCD display off SEG output corresponds to display mode P11.0–P13.3 LCD display off , cut off current to dividing resistors LCD display off LCD display on NOTE:'x' means 'don't care.' LCD MODE REGISTER (LMOD) The LCD mode control register LMOD is used to control display mode; LCD clock, segment or port output, and display on/off. The LCD clock signal, LCDCK, determines the frequency of COM signal scanning of each segment output. This is also referred to as the 'frame frequency. Because LCDCK is generated by dividing the watch timer clock (fw), the watch timer must be enabled when the LCD display is turned on. The LCD display can continue to operate during Idle and Stop modes if a subsystem clock is used as the watch timer source. Table 11. LCD Clock Signal (LCDCK) Frame Frequency LCDCK Frequency fw/2 (64Hz) fw/2 (128Hz) fw/2 (256Hz) fw/2 (512Hz) 6 7 8 9 Static 64 128 256 512 1/2 Duty 32 64 128 256 1/3 Duty 21 43 85 171 1/4 Duty 16 32 64 128 NOTES: 'fw' is the watch timer clock frequency of 32.768 kHz. HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 20 of 24 SC63C0316 Table12. Maximum Number of Display Digits Per Duty Cycle LCD Duty Static 1/2 1/3 1/3 1/4 LCD Bias Static 1/2 1/2 1/3 1/3 COM Output Pins COM0 COM0–COM1 COM0–COM2 COM0–COM2 COM0–COM3 Maximum Digit Display 8 Segment Pins) 4 8 12 12 16 Table 13. LCD Mode Control Register (LMOD) Organization (8-Bit W) LMOD.7 0 1 LMOD.6 LMOD.5 0 0 1 1 LMOD.3 0 1 1 1 1 1 LCD voltage dividing register control bit Internal voltage dividing resistor. External voltage dividing resistor; internal voltage dividing resistors are off. Always logic zero LMOD.4 0 1 0 1 LMOD.2 x 0 0 0 0 1 fw/2 = 64 Hz fw/28 = 128 Hz fw/27 = 256 Hz fw/26 = 512 Hz LMOD.1 x 0 0 1 1 0 LMOD.0 x 0 1 0 1 0 Duty and Bias Selection for LCD Display LCD display off 1/4 duty, 1/3 bias 1/3 duty, 1/3 bias 1/2 duty, 1/2 bias 1/3 duty, 1/2 bias Static 9 LCD Clock (LCDCK) Frequency NOTE:'x' means 'don't care'. LCD DRIVE VOLTAGE The LCD display is turned on only when the voltage difference between the common and segment signals is greater than VLCD. The LCD display is turned off when the difference between the common and segment signal voltages is less than VLCD. NOTE: The LCD panel display may deteriorate if a DC voltage is applied that lies between the common and segment signal voltage. Therefore, always drive the LCD panel with AC voltage COMMON (COM) SIGNALS The common signal output pin selection (COM pin selection) varies according to the selected duty cycle. HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 21 of 24 SC63C0316 Table 14. Common Signal Pins Used Per Duty Cycle Display Mode Static 1/2 duty 1/3 duty 1/4 duty COM0 Pin Selected Selected Selected Selected COM1 Pin N/C Selected Selected Selected COM2 Pin N/C N/C Selected Selected COM3 Pin N/C N/C N/C Selected NOTE:’ means that no connection is required NC’ Figure 13. LCD Common Signal Waveform (static) COM0 VLC0 VLCD VSS Tf=T T: LCDCK Tf: Frame Frequency Figure 14. LCD Common Signal Waveforms at 1/2 Bias (1/2, 1/3 Duty) VLC0 COM0,1 (1/2 Duty) VLC1,2 VSS Tf=2 x T VLCD VLC0 COM0,1 (1/3 Duty) VLC1,2 VSS Tf=3 x T T: LCDCK Tf=Frame Frequency VLCD Figure 15. LCD Common Signal Waveforms at 1/3 Bias (1/3, 1/4 Duty) VLC0 VLC1 COM0-2 (1/3 Duty) VLC2 VSS Tf = 3 x T VLC0 VLC1 COM0-3 (1/4 Duty) VLC2 VSS Tf = 4 x T T: LCDCK Tf=Frame Frequency VLCD VLCD HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 22 of 24 SC63C0316 SEGMENT (SEG) SIGNALS The 40 LCD segment signal pins are connected to corresponding display RAM locations at 1E0H– 1FFH. Bits 0– of the display RAM are synchronized with the common signal output pins COM0, COM1, COM2, and COM3. 3 Figure 16. Select/No-Select Bias Signals in Static Display Mode Select No-Select VLC0 COM SEG VSS VLC0 VSS T T = LCDCK T SERIAL I/O INTERFACE Using the serial I/O interface, you can exchange 8-bit data with an external device. The serial interface can run off an internal or an external clock source, or the TOL0 signal that is generated by the 8-bit timer/counter 0, TC0. If you use the TOL0 clock signal, you can modify its frequency to adjust the serial data transmission rate. Figure 17. Serial I/O Interface Circuit Diagram Internal Bus 8 LSB or MSB first SI Sbuf (8-Bit) SO R IRQS Q CK P4.0/SCK D Overflow TOL0 CPU Clock Clock Selecor R Q S Q0 Q1 Q2 3-Bit Counter fxx/24 Clear SMOD.7 SMOD.6 SMOD.5 - SMOD.3 SMOD.2 SMOD.1 SMOD.0 Bits* 8 Internal Bus * Instruction Execution HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn REV:1.0 2004.08.03 Page 23 of 24 SC63C0316 PACKAGE OUTLINE QFP-80-14×20-0.8 UNIT: mm 16.3±0.4 HANDLING MOS DEVICES: Electrostatic charges can exist in many things. All of our MOS devices are internally protected against electrostatic discharge but they can be damaged if the following precautions are not taken: • Persons at a work bench should be earthed via a wrist strap. • Equipment cases should be earthed. • All tools used during assembly, including soldering tools and solder baths, must be earthed. • MOS devices should be packed for dispatch in antistatic/conductive containers. HANGZHOU SILAN MICROELECTRONICS CO.,LTD Http: www.silan.com.cn 17.9±0.4 14.0±0.2 1 2 .0 REV:1.0 2004.08.03 Page 24 of 24 0.8±0.2
SC63C0316 价格&库存

很抱歉,暂时无法提供与“SC63C0316”相匹配的价格&库存,您可以联系我们找货

免费人工找货