Part Number Hot Search : 
14101 00AA1 29LV1 BUZ10 SB2100 PT22511 74HC24 CM200
Product Description
Full Text Search
 

To Download SC9351 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 SC9351
AUDIO SYSTEM CONTROL MCU
DESCRIPTION
SC9351 is an 8051-based MCU with built-in 64KByte FLASH, 8KByte
2 RAM and abundant on-chip periphery modules including I C, UART, SPI,
ADC and RTC, etc.
FEATURES
* In system programming(ISP) * 2.7-3.6V supply voltage for chip core, together with internal or external LDO. * 8051 architecture compatible with MCS51 instructions 2~4 clock cycles for per instruction Dual data pointer to improve the data processing efficiency * Built-in 64Kx8 FLASH programmed by on-chip program or programmer for program memory or data memory * Data memory IDATA : 256Byte(compatible with 8051) + 64Byte(save data when power down) XDATA: 8Kbyte external data memory, low 4K of which can be program memory for Flash programming * Integrate RTC providing calendar, clock, auto leap-year adjustment, timing alarm clock and clock adjustment. Built-in 8-bit timer for max. 256 seconds long time timing. * Maximum 40 general IO pins * Four 8-bit timers T0/T1/T2/T3, where T0/T1 is the same as that of 8051; T2 supports PWM function * Extended interrupt module with four external interrupts * Two UART interfaces. * One SPI interface. * 3-channel 8-bit AD converter.
2 * One I C interface
LQFP-64-10x10-0.5
APPLICATIONS
* Desktop audio, car audio
* Various operating modes with low power dissipation
ORDERING INFORMATION
Part No. SC9351 Resource list Part No. SC9351 Timer 4 ADC channel 3 SPI 1 UART 2 I2C 1 IO Qty.Note1 40 External interrupt 4 Package LQFP-64-10 x 10-0.5 Marking SC9351
Note 1: three pins of P7 port are shared with debug ports.
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 1 of 19
SC9351
BLOCK DIAGRAM
AN0-AN2
P10.1
P10.0
P9.7
P9.6
P9.5
P9.4
P9.3
P9.2
P9.1
VDDA
LOWDET
LDO_EN
XTOUT
VDD2o5
XOUT
XTIN
VDD
nDBG
VSSA
nTST
VSS
P7.5
ABSOLUTE MAXIMUM RATING
Characteristics Power supply Input voltage Storage temperature Operating temperature ESD Symbol VDD VIN TSTG TOPR Vesd Ratings -0.3~+5.0 -0.3~VDD+0.3 -65~+150 -40~+85 2 Unit V V C C KV
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
P7.6
P7.7
XIN
REV:1.0
2009.02.16 Page 2 of 19
SC9351
ELECTRICAL CHARACTERISTICS (Unless otherwise specified, VCC=3.3V, Tamb=25C)
Characteristics Power Supply I/O Pull-Up Resistor Operating Frequency RTC Input Frequency High-Frequency Operating Current1 High-Frequency Operating Current2 Symbol VDD Rpu FCPU FRTC FCPU = 12MHz (Other modules are IOPH1 closed except for MCU and SRAM is used as program memory.) FCPU = 12MHz (Other modules are IOPH2 closed except for MCU and FLASH is used as program memory.) FCPU = 75KHz (Other modules are closed except for MCU and RTC is Low-Frequency Operating Current1 IOPL1 powered by external LDO, and SRAM is used as program memory (LDO power dissipation is not included)) FCPU = 75KHz (Other modules are Low-Frequency Operating Current2 IOPL2 closed except for MCU and RTC is powered by internal LDO, and SRAM is used as program memory) FCPU = 75KHz (Other modules are Low-Frequency Operating Current3 IOPL3 closed except for MCU and RTC is powered by internal LDO, and FLASH is used as program memory) FCPU = 75KHz (MCU is in sleep mode, other modules are closed Sleep Current 1 Is1 except for RTC powered by external LDO, and SRAM is used as program memory (LDO power dissipation is not included) ) FCPU = 75KHz (MCU is in sleep mode, other modules are closed Sleep Current 2 Is2 except for RTC powered by internal LDO, and SRAM is used as program memory) -360 -A -40 -A -1.5 -mA -400 -A -70 -A -8 -mA -7.5 -mA -Test conditions Min. 2.7 -Typ. 3.3 50 12 75K Max. 3.6 Unit V K MHz Hz
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 3 of 19
SC9351
Characteristics Symbol Test conditions FCPU = 12MHz (MCU is in sleep mode, other modules are closed Sleep Current 3 Is3 except for RTC powered by internal LDO, and SRAM or FLASH can both be program memory) Close main oscillator, LDO and other Quiescent Current High-Level Output Current (Except For Port P10) Low-Level Output Current(Except For Port P10) Low-Level Output Current (Port P10) Input High Voltage Input High Voltage Input High Voltage Input Low Voltage Input Low Voltage Input Low Voltage IOL VIH VIH VIH VIL VIL VIL VOL = 0.3V P0/P1/P2/P9 P5/P6/P7 P10 P0/P1/P2/P9 P5/P6/P7 P10 2.0 1.5 1.5 9.0 0.7 0.8 0.8 mA V V V V V V IOL VOL = 0.3V 4.0 mA IOH VOH = 3V -3.0 mA IQ modules except for RTC working at 75K clock frequency. 14 -A -3.5 -mA Min. Typ. Max. Unit
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 4 of 19
SC9351
PIN CONFIGURATION
PIN DESCRIPTION
Pin No. 1 2 3 4~6 7 8 9 10 11 12 13 Pin Name P2.2 VSSA VDDA AN0~AN2 VSS VDD XTIN XTOUT nTST nRST P2.4/INT0 --I O I I I/O I/O I/O --interrupt InT2 Ground of ADC Power supply of ADC Input channel 0~2 of ADC Digital ground Power supply of IO, RTC and 64Byte RAM 75KHz oscillator input pin 75KHz oscillator output pin Test enable pin internally connected with pull-up resistor; High level is connected for normal use. Reset pin internally connected with pull-up resistor; low level reset. General I/O pin; alternate function is external interrupt input INT0 Pin Function In extended bus mode, output notDMRD; alternate function is external
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 5 of 19
SC9351
Pin No. 14 15 16 17 18~25 26~28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51~58 59 60 61 62 63 64 Pin Name P2.5/INT1 VDD2o5O VDDLDO VSSLDO P5.0~5.7 P6.0~6.2 VDD XIN XOUT VSS P7.5/DE_SI P7.6/DE_SO P7.7/DE_CLK VDD2o5 VSS P10.0/SDA P10.1/SCK nDBG P9.1/TXD0 P9.2/RXD0 P9.3/TXD1 P9.4/RXD1 P9.5/SDI P9.6/SDO P9.7/SCLK VDD VSS VDD2o5 P0.0~0.7 P1.0/PWM P1.1 P1.2 P1.6/INT6 P1.7/INT7 P2.0/BUZ I/O I/O ---I/O I/O -I O -I/O I/O I/O --I/O I/O I I/O I/O I/O I/O I/O I/O I/O ---I/O I/O I/O I/O I/O I/O I/O Pin Function General I/O pin; alternate function is external interrupt input INT1 2.5V output pin of LDO with a 1~10uF capacitor to power the core Power supply of LDO, input voltage is 2.7~3.3V Ground of LDO General I/O port P5 with 8 pins General I/O port P6 with 3 pins 3.3V power supply 12MHz oscillator input pin. 12MHz oscillator output pin. Ground General I/O pin; used as data serial-in in debug mode. General I/O pin; used as data serial-out in debug mode. General I/O pin; input synchronous communication clock in debug mode 2.5V power input Ground
2 General I/O pin; alternate function is data port of I C 2 General I/O pin; alternate function is clock of I C
Debug mode selection with pull-up resistor; enter Debug mode when it is connected to ground. General I/O pin; alternate function is TXD of UART0 General I/O pin; alternate function is RXD of UART0 General I/O pin; alternate function is TXD of UART1 General I/O pin; alternate function is RXD of UART1 General I/O pin; alternate function is data-in of SPI General I/O pin; alternate function is data-out of SPI General I/O pin; alternate function is clock of SPI 3.3V power supply Ground 2.5V power input General I/O port P0 with 8 pins General I/O pin; alternate function is PWM waveform output General I/O pin General I/O pin General I/O pin; alternate function is external interrupt input INT6 General I/O pin; multiplexing with external interrupt input INT7 General I/O pin; multiplexing with BUZ output
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 6 of 19
SC9351
FUNCTION DESCRIPTIONS
1. MCU function description
1.1 Introduction to MCU SC9351 adopts S51 MCU core with embedded 64KByte FLASH, supporting external instruction memory and data memory extension. Standard 805x assembler and compiler can be used for software development and maximum 4 hardware breaks supported in Debug mode are convenient for program development. 1.2 Introduction to address space Instruction and data addresses are programmed separately and each occupies 64K address space. Data memory address assignment Compatible with 8051, it also includes address of internal data memory (IDATA) and external data memory (XDATA), which are accessed by MOV instruction and MOVX instruction respectively. Internal data memory The address space of internal data memory is 0000H~00FFH including several memory areas which are different in physical characteristics. The 128 bytes memory from 00H to 7FH is RAM. Different from general 8051, the 80 bytes memory from 30H to 7FH can be extended as special function register whose addressing method is the same as RAM. The 128 bytes memory from 80H to FFH is the overlap area of RAM and special function register, which are distinguished by their different addressing method ( special function register is accessed by Direct addressing commands, while the RAM is accessed by indirect addressing commands). Different from general 8051, the 64 bytes (from C0H to FFH) can be extended as extra RAM that can be accessed by indirect addressing commands.
00H-7FH RAM128x8 RAM128x8 80H-FFH
Special function register
Extended address space
Special function register
30H-7FH
Overlap area
Extended address space
RAM64x8
C0H-FFH
Address space of internal data memory
External data memory The address space of external data memory is 0000H~FFFFH which can only be accessed by MOVX instruction. SC9351 integrates 8K bytes RAM with address of 0000H~1FFFH as external data memory which can be extended to 64K according to the requirements.
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 7 of 19
SC9351
0000H-1FFFH
On-chip RAM 8Kx8
2000H-FFFFH
External memory address space can be extended out of chip
Address space of external data memory
1.3 External data memory extension When data memory is written/read by CPU through MOVX instruction, internal 8K RAM is written/read if the address is within 0X0000~0X1FFF, while external data memory is written/read if the address is beyond 0X1FFF. External data memory extension is not supported here. Instruction memory address assignment Same as general 8051, the address space of instruction memory is 64K. SC9351 integrates 64K bytes FLASH as internal instruction memory.
1.4 Introduction to DPTR DPTR is a 16-bit data pointer, which can be used by MOVX instruction as indirect addressing register to access the external data memory from 0000H to FFFFH. 8051 has only one DPTR, which is not enough when accessing the external data memory frequently. So SC9351 adopts two DPTRs to access the external data memory conveniently. The two DPTRs share the same address (DPH:83H; DPL:82H) and behavior, and different DPTR can be got through DPS control bit. 2. Special function register (SFR) Address 81H 82H 83H 87H Name SP DPL DPH PCON R/W R/W R/W R/W R/W Description Stack pointer Data pointer low Data pointer high Power control register 8051 special register
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 8 of 19
SC9351
Address 88H 89H 98H 99H 8AH 8BH 8CH 8DH 8EH A2H A8H B8H D0H E0H F0H 31H 32H 33H 34H 35H 36H 37H 38H 39H 3AH 3BH 3CH 3DH 3EH 3FH 40H 41H 42H 43H 46H 47H 49H 4BH Name TCON TMOD SCON SBUF TL0 TL1 TH0 TH1 TIMPS AUXR1 IE IP PSW ACC B PSM_OSCREF PDN_OSCREF MCLKSEL PDN_OSCIN PDN_LDO OSCRSTCTRL HSCSEL LBDCTRL EINTF EXTINTENABLE EINT_EDGE IPLSR3_E IPLSR2_E IPLSR1_E IPLSR0_E IER_E IPR_E ISR_E ICR_E P10OD P10PU P10 P9OD R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W W W W W W R W R/W R/W W W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W Description Timer/counter control register Timer/counter mode control register Serial port control register Serial data buffer Timer/counter 0 (low byte) Timer/counter 1 (low byte) Timer/counter 0 (high byte) Timer/counter 1 (high byte) Prescaler control register of TIMER Data pointer select register of DPTR Interrupt enable control register Interrupt priority control register Program status word Accumulator of CPU Register B of CPU Access control address of 75K OSC gain setting Access control address of 75K OSC enable Access control address of CPU clock selection Access control address of 12M OSC enable Access control address of LDO enable System clock and power status register Access control address of high-speed OSC selection LBD control register External interrupt flag External interrupt source identification enable register External interrupt control register Interrupt priority selection register 4 Interrupt priority selection register 3 Interrupt priority selection register 2 Interrupt priority selection register 1 External interrupt (INT0 extension) enable register External interrupt source identification register Interrupt status register Interrupt mask control register Open-drain output control of port P10 Pull-up control register of port P10 Port register of P10 Open-drain output control of port P9
Operating mode register (register extended)
External interrupt register (register extended)
IO register (register extended with address within 30~7FH)
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 9 of 19
SC9351
Address 4CH 4DH C0H 51H 52H 53H 54H 55H 56H 57H 58H 5FH 60H D4H A0H 64H 65H 66H 90H 69H 6AH 6BH 80H 6DH 6EH 6FH 70H 71H 72H 73H 74H 75H 76H 77H 78H 79H 7AH 7BH Name P9PU P9DDR P9 P7OD P7PU P6OD P6PU P5OD P5PU P4OD P4PU P2OD P2PU P2DDR P2 P1OD P1PU P1DDR P1 P0D P0PU P0DDR P0 SECADJL SECADJH SECADJCON RTC_CS YEARH SEC MIN HOUR DAY WEEK MON YEARL MIN_ALARM HOUR_ALARM DAY_ALARM R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W Description Pull-up control register of port P9 Direction control register of port P9 Port register of P9 Open-drain output control of port P7 Pull-up control register of port P7 Open-drain output control of port P6 Pull-up control register of port P6 Open-drain output control of port P5 Pull-up control register of port P5 Open-drain output control of port P4 Pull-up control register of port P4 Open-drain output control of port P2 Pull-up control register of port P2 Direction control register of port P2 Port register of P2 Open-drain output control of port P1 Pull-up control register of port P1 Direction control register of port P1 Port register of P1 Open-drain output control of port P0 Pull-up control register of port P0 Data direction control register of port P0 Port register of P0 Second cycle adjust register Second cycle adjust register Second adjust control register RTC control and status register High 8-bit register of year Second register Minute register Hour register Day register Week register Month register Low 8-bit register of year MIN alarm control register HOUR alarm control register DAY alarm control register
4F~50H registers unused, and read/write is not allowed
5AH~5DH registers unused, and read/write is not allowed
RTC register(register extended with address within 30~7FH)
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 10 of 19
SC9351
Address 7CH 7DH 7EH 7FH WDT register 84H 85H 86H 91H 92H 93H 94H 96H 97H 9AH 9BH 9CH 9DH 9EH 9FH A1H A5H A6H A7H A9H AAH ABH ACH ADH AEH SPI register B1H B2H B3H B4H SPICR SPISR SPIBUF SPIBR R/W R W/R R/W SPI control register SPI status register SPI transmit/receive buffer SPI baud rate setting register WDT_CTRL WDT_CLR0 WDT_CLR1 SLEEP_CTRL SYS_STATUS CS_SFR CS_INTDM IOMUX ICR_I ISR_I IPR_I IER_I IPLSR0_I IPLSR1_I IPLSR2_I IPLSR3_I FSHWRADRH FSHWRADRL FSHWRDATA FSHWRCON1 FSHWRCON2 FSHERSCON1 FSHERSCON2 FSHTIMER FlashCtrl R/W W W R/W R/W W W R/W R/W R R R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W WDT control register WDT clear register 0 WDT clear register 1 Sleep mode control register System status register Access switch control register of data area 30~7F Access switch control register of data area C0~FFH IOPort multiplex control register Interrupt mask control register Interrupt status register Internal interrupt source identification register INT1 extension interrupt (generated by internal modules) enable control Interrupt priority selection register 4 Interrupt priority selection register 3 Interrupt priority selection register 2 Interrupt priority selection register 1 High 8-bit address register of FLASH write Low 8-bit address register of FLASH write FLASH write data register FLASH write control register 1 FLASH write control register 2 FLASH erase control register 1 FLASH erase control register 2 FLASH write/erase prescaler control register FLASH switch control register Name WEEK_ALARM CLKOUT_CTRL TMCON TMREF R/W R/W R/W R/W R/W Description WEEK alarm control register CLKOUT control register RTC built-in timer control Initial value of RTC built-in timer
Register extension setting register
RAM extension setting register
Port multiplex control register
Interrupt register
Flash program register
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 11 of 19
SC9351
Address BDH I C register BEH BFH DFH C1H C2H C3H C4H C5H C6H C7H C9H CEH CFH ADC register D1H D2H D3H D5H D6H DAH DBH ADATA ADCON ADCIS T2CON T2REF T3CON T3REF R W W R/W R/W R/W R/W AD conversion data register AD control register AD channel input select register T2 control register T2 preset register TIMER3 control register TIMER3 preset register I2CRXB I2CSR I2CCR I2CSLA I CBUF UART_BUF0 SCON0 BRCON0 BRTIMER0 UART_BUF1 SCON1 BRCON1 BRTIMER1
2 2
Name BUZCR
R/W W/R R R W/R W/R W/R W/R W/R W/R W/R W/R W/R W/R W/R
Description BUZZER output control register Second stage buffer of data receive Status register Control register Slave address/host baud rate setting register Receive/transmit buffer UART0 receive/transmit buffer UART0 control register UART0 baud rate control register UART0 baud rate setting register UART1 receive/transmit buffer UART1 control register UART1 baud rate control register UART1 baud rate setting register
B5~BCH registers unused, and read/write is not allowed
UART0 register
UART1 register
T2/T3 register
D7~D9FH registers unused, and read/write is not allowed
EE~FFH registers unused, and read/write is not allowed 3. Introduction to operating mode
SC9351 provides various operating modes: high-frequency, low-frequency, Sleep and power-down hold. Please see details below: 3.1 High-frequency operating mode In this mode, 12MHz or 12MHz divided-by-2 is selected by software to provide high-speed clock for CPU (use
2 MClk for short in the following), I C, SPI, UART, ADC, TIMER and WDT, etc. While, 75KHz oscillator provides
clock for RTC. Operating mode can be switched from high-frequency to low-frequency, Sleep or power-down hold through program setting.
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 12 of 19
SC9351
3.2 Low-frequency operating mode In this mode, 75KHz is selected to provide clock for CPU, RTC and all the other function modules and operating mode can be switched from low-frequency to high-frequency or other modes through program setting. Note: 1. 12MHz oscillator needs to be closed by software after MCU being switched to low-frequency operating mode. 2. High-frequency oscillator needs to be open first by software for at least 1ms until it is stable when operating mode is switched from low-frequency to high-frequency. 3.3 Sleep mode In this mode, the clock for CPU, WDT, I2C, SPI, UART and ADC is closed, while oscillator still works and TIMER, RTC, IO port and interrupt system still work under clock. CPU can be waken up by allowed interrupt events caused by external interrupt, RTC, or TIMER and back to former operating mode to execute the corresponding interrupt service routine. 3.4 Power-down hold mode This mode is provided only when the chip adopts internal LDO(this operating mode is not available when
2 adopting external LDO). After LDO is closed, CPU, 64Kx8FLASH, 8Kx8RAM, 256x8RAM, I C, SPI, UART, ADC,
TIMER and WDT are powered down because of no 2.5V supply voltage, while 12MHz/75KHz oscillator, RTC, 64x8RAM, IO port and external interrupt extension modules fed by external power supply still work. In this mode, 75KHz oscillator provides clock for RTC; 75KHz or 12MHz oscillator provides clock for IO, interrupt extension module intc_e. RTC and external interrupt can wake up LDO and reset CPU to back to former operating mode. Data can be saved in 64x8RAM in this mode. 4. Introduction to function module
4.1 Clock system There are two oscillators and 75KHz oscillator provides clock for low-frequency operating, 12MHz oscillator provides clock (12MHz/6MHz) for high-frequency operating. 75KHz and 12MHz oscillators are programmable control. In power-down hold mode, 12MHz oscillator can be closed and 75KHz oscillator provides clock for RTC and external extension module. Note: unless otherwise specified, the clock source mentioned below is 12MHz or 75KHz. 4.2 Reset control There are power-on reset/external keypress reset, low voltage detect reset functions. What's more, RTC interrupt and external interrupt will also generate reset signal in power-down hold mode to reset CPU to come back to operating mode. In power-down hold mode, external interrupt and RTC interrupt will generate reset signal to wake up LDO and reset CPU, which has no effect on register value of RTC, oscillator control, clock control and interrupt extension control, etc. About 15ms time delay is needed for LDO stable. In other operating modes (high-frequency, low-frequency, Sleep), LDO is working normally and
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 13 of 19
SC9351
external interrupt, RTC interrupt will generate interrupt request instead of reset signal. Power-on reset by connecting resistor, capacitor or external keypress reset by connecting reset key to pin nRST are both available. LDO low-voltage detect signal can reset MCU and has no effect on RTC. WDT overflow reset can reset CPU and has no effect on LDO, RTC, clock system, operating mode control module and interrupt extension module, etc. 4.3 Interrupt There are 18 interrupt sources in SC9351 except for reset signals. These interrupt sources enter interrupt processing module through five channels same as 8051. Five interrupts of S51 are supported: INT0, INT1, TF0, TF1, TI/RI, where, INT0 is extended to 4 external interrupts, INT1 (internal interrupt extended) is shared by various internal modules (such as I2C and SPI), and TI/RI interrupt channel is corresponding to transmitting/receiving interrupt of two UARTs. High-level trigged interrupts TF0 and TF1 separately belong to timer/counter0 and timer/counter1 of 8051. Priority and mask function setting for external/internal interrupts extended is independent and software inquiry should be used by interrupt routine due to external/internal interrupts extended share one interrupt entry. (For example, interrupt source register should be checked to make sure which pin triggers the interrupt after INT0 responds to interrupt.) External 4 interrupts are from pin P1.6/P1.7/P2.4/P2.5, which can be programmable as rising-edge or fallingedge trigger, and share the entry address 0003H corresponding to INT0 of 8051. Each interrupt source can be set to a corresponding priority (0~7), which is different according to different sources. And CPU only responses to the interrupt request with PRI (bigger number for higher PRI) higher than the setting value of interrupt control register (ICR). The execution of interrupt service routine with low PRI will not be broken by the interrupt with high PRI which will be responded after the low PRI interrupt is completed due to these interrupts share the same degree of CPU. The interrupts can be responded as long as the interrupt flag is active, so external interrupts will not be lost.
2 Internal interrupts of SC9351 are mainly from its embedded digital and analog modules including I C, SPI, ADC,
T2, T3 and RTC, etc., and share the entry address 0013H corresponding to INT1 of 8051. When serial interrupt is processed, RI and TI requests of UART0 share TI of 8051, while RI and TI requests of UART1 share RI of 8051 due to there are two UARTs in SC9351. The interrupt source is decided by inquiring corresponding flag and the flag RI/TI is cleared automatically by hardware after interrupt response. The interrupt processing of S51 is the same as that of 8051, mainly controlled by interrupt enable control register IE and interrupt PRI register IP. The following 3 steps must be executed to use interrupts of S51: 1. 2. 3. Set EA of IE register to 1 Set corresponding interrupt enable bit to 1 After interrupt is triggered, program pointer jumps to corresponding vector address and interrupt service routine starts to be executed.
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 14 of 19
SC9351
Table 1: SC9351 interrupt list Interrupt module EINT0 External interrupt (4) EINT1 EINT6 EINT7 Timer 0 Interrupt source P2.4 P2.5 P1.6 P1.7 TF0 000BH INT0 0003H Entry of 8051 Corresponding vector address
T0 overflow interrupt PINT0 PINT1 PINT2 PINT3 PINT4 PINT5 PINT6 PINT7 Reserved I2C interrupt SPI interrupt ADC interrupt Reserved T2 overflow interrupt T3 overflow interrupt RTC interrupt
Internal interrupt
INT1
0013H
Timer1 Serial port interrupt
T1 overflow interrupt UART0(RI0,TI0) UART1(RI1,TI1)
TF1 TI RI
001BH 0023H
4.4 WDT Watchdog (WDT) is mainly used for program monitor, and generates reset signal after the counting overflows to avoid the error execution state. The clock source of WDT counter is 6MHz. In Sleep mode, the clock of WDT is closed and doesn't work. Default latency time of WDT is 175ms after reset and the maximum timing time set by program is 1398ms.
Note: In debug mode (nDBG is connected to GND), WDT doesn't work when MCU is single-step running, and normal work when MCU is full-speed running. 4.5 Timer T0/T1 The operating mode is the same as 8051 with additional programmable prescaler to control the clock frequency
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
WdtClr
REV:1.0
2009.02.16 Page 15 of 19
SC9351
of TIMER, which is different from frequency divided-by-12 of 8051. MCLK/2, MCLK/4, MCLK/8, MCLK/16, MCLK/32, MCLK/64, MCLK/128 and MCLK/256 can be selected for timer/counter, and MCLK can be 12MHz, 6MHz and 75KHz according to different MCU operating modes. Note: For SC9351, T0 is connected to 0 and T1 is connected to 1, so there is no counter mode. 4.6 Timer T2/T3 Operating mode of T2: internal timing/counting and PWM mode Operating mode of T3: internal timing mode Six clocks below can be selected according to different operating mode: MCLK/16 MCLK/64 OSC75K MCLK /256 MCLK /512, MCLK /1024 4.7 I2C The I2C interface of SC9351 has configurable host and slave modes with 7-bit device addressing function supporting 400Kbps baud rate; however, multiple hosts and the relevant arbitration processing, etc. are not supported. It has mainly three operating modes: Host transmitting and slave receiving; host receiving and slave transmitting continuous mode; host receiving and slave transmitting random mode; 4.8 UART Two independent UARTs can implement serial communication with the following operating modes: 1. 8-bit asynchronous communication mode, baud rate adjustable; 2. 9-bit asynchronous communication mode, baud rate fixed(MCLK/16, MCLK/32); 3. 9-bit asynchronous communication mode, baud rate adjustable. 4.9 SPI SPI adopts three-line transmission method including SCK (bi-direction clock line), SDI (data output) and SDO (data input), which supports simplex, half duplex, full duplex transmission modes below: 1. Internal (clock)transmittingexternal (clock)receiving 2. Internal receivingexternal transmitting 3. Internal receiving/transmittingexternal receiving/transmitting 4.10 ADC 8-bit AD converter is mainly used for keyboard scan, electronic volume or low-speed data sampling with three input channels (AN0~2) which can be chosen for input conversion voltage and the result is stored in an 8-bit register. There are four clock sources (75KHz, MCLK/8, MCLK/16, MCLK/32) for conversion clock and internal reference voltage or external power supply (VDD) can be reference voltage. 11 clock cycles are needed for one AD conversion, and conversion time is7.3s when the clock source of ADC is MCLK/8 under 12MHz system clock.
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 16 of 19
SC9351
4.11 RTC The real time clock (RTC) driven by frequency divided-by-2 of 75KHz clock provides clock and calendar function of year, month, week, hour, minute and second and the leap year auto switch function. When setting week, day, hour and minute, the alarm clock generates alarm interrupt which can close or start some function of alarm clock through corresponding alarm control bit. In standby state, RTC needs to be powered by battery to remain the working state. RTC provides an 8-bit timer with four clock sources: 4687Hz, 73Hz, 1Hz and 37.5KHz. The operation of this timer is similar to others and long time timing is easy to realize due to the low-frequency of clock source.
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 17 of 19
SC9351
TYPICAL APPLICATION CIRCUIT
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 18 of 19
SC9351
PACKAGE OUTLINE
LQFP-64-10x10-0.5 Unit: mm
MOS DEVICES OPERATE NOTES:
Electrostatic charges may exist in many things. Please take following preventive measures to prevent effectively the MOS electric circuit as a result of the damage which is caused by discharge: The operator must put on wrist strap which should be earthed to against electrostatic. Equipment cases should be earthed. All tools used during assembly, including soldering tools and solder baths, must be earthed. MOS devices should be packed in antistatic/conductive containers for transportation.
Disclaimer: * Silan reserves the right to make changes to the information herein for the improvement of the design and performance without further notice! * All semiconductor products malfunction or fail with some probability under special conditions. When using Silan products in system design or complete machine manufacturing, it is the responsibility of the buyer to comply with the safety standards strictly and take essential measures to avoid situations in which a malfunction or failure of such Silan products could cause loss of body injury or damage to property. Silan will supply the best possible product for customers!
*
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: //www.silan.com.cn
REV:1.0
2009.02.16 Page 19 of 19


▲Up To Search▲   

 
Price & Availability of SC9351

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X