SPECIFICATION SG8F160P Version 1.1 Sigma reserves the right to change this documentation without prior notice
TABLE OF CONTENTS SG8F160P 1. GENERAL DESCRIPTION...3 2. FEATURES...3 3. PIN ASSIGNMENT...5 4. BLOCK DIAGRAM...6 5. ABSOULUTE MAXIMUM RATING...6 6. ELECTRICAL CHARACTERISTICS...7 6.1 DC CHARACTERISTICS...7 6.2 AC CHARACTERISTICS...7 7. PACKAGE...8 8.APPLICATION CIRCUIT...9 9. PACKAGE DISCRIPTION...11 10.REVISION HISTORY...12 Page 2 of 12
1. GENERAL DESCRIPTION The SG8F160P is 8 bit MCU with 16 channels of touch sensor and 20 I/O ports. It develops from the mcu-sg8000b, which includes 8-bit CPU core, program OTP ROM, SRAM, TIMER, GPIO and touch sensor. It can also provide the interrupt function and the wakeup function from stand-by mode. 2. FEATURES Microcontroller Features: Operating voltage range: 2.4V~5.5V. Operating frequency up to 20MHz 8-bit MCU core 4K 14 bits OTP ROM for program. - 6 level stacks for subroutine nesting 144 8 bits SRAM, and 128 bytes split to 4 banks. 3 bi-directional I/O ports (20 I/O pins) - P07-P00 has wake-up function, Pullup function and external interrupt function. - P17-P10 has wake-up function and Pullup function. - -P20 has wake-up function, Pullup function and external interrupt function. Clock Sources - HRC(32K~8M) - Crystal oscillator (32768Hz~20MHz) - LRC(200K) 6 interrupt sources: - TCC Timer overflow interrupt. - 2 external interrupt - RTC Timer overflow interrupt. - 2 touch pad interrupt 8-bit RTC Timer with overflow interrupt. 8-bit TCC Timer with overflow interrupt. 8-bit prescaler for WDT or TCC Page 3 of 12
Touch sensor - 16 channels. - own RC oscillator. - 16-bit Timer with overflow interrupt. - touch pad interrupt and also have wake-up function. Built-in power on reset (POR) Power-up Timer (PWRT) and Oscillator Start-up Timer (OST) Watchdog Timer (WDT) with its own on-chip RC oscillator to prevent system stand still Built-in low power voltage reset (LVR) CMOS technology for low power consumption System mode : SG8F160P supports four work modes Normal: MCU turn on, XTAL(or HRC) and LRC turn on. Slow: MCU turn on, XTAL(or HRC) turn off and LRC oscillator turn on. Idle: MCU turn off, XTAL(or HRC) turn off and LRC oscillator turn on. Sleep: MCU, XTAL(or HRC) and LRC oscillator turn off. Page 4 of 12
3. PIN ASSIGNMENT Pin Name Direction Function description GND POWER Negative power supply pin. VDD POWER Positive power supply pin. RST_EXTb/VPP I External reset signal. ~ P20 I/O I/O port. These ports have Wake-up function, external interrupt function and pullup function. OSCO O High frequency crystal oscillator output. OSCI I High frequency crystal oscillator input. High frequency RC oscillator input. P07 ~ P00 I/O I/O port. These ports have Wake-up function, external interrupt function and pullup function. VREF I Reference voltage input. TS15 ~ TS0 I Touch sensor signal input. VC2 I Comparator input. VC1 I Comparator input. P17 ~ P10 I/O I/O port. These ports have Wake-up function and pullup function. Note1: The list is counterclockwise. Note2: In OTP ROM programming mode, the shared pins are as follow, RST_EXTb/VPP, high voltage program port. P21 DOUT, program data serial output port. P20 VPP_ACT, program active port. TS4 OEB, OTP ROM output enable port. TS3 PGMB, program enable port. TS2 DIN, program data input port. TS1 DCLK, program clock input port. TS0 CEB, chip enable port. Page 5 of 12
4. BLOCK DIAGRAM 5. ABSOULUTE MAXIMUM RATING Symbol Rating Unit Supply Voltage to Ground potential (VDD~GND) -0.5~+6.0 V Input Voltage (Vin) GND-0.3<Vin<VDD+0.3 V Output Voltage (Vout) GND<Vout<VDD V Operating Temperature (Top) -40~+85 Storage Temperature (Tst) -50~+100 Operating Frequency (Fop) 32K~20M Hz ESD-HBM(Human Body Mode) 4000(min) V Page 6 of 12
6. ELECTRICAL CHARACTERISTICS 6.1 DC CHARACTERISTICS (VDD= 3.0V, No load, Main clock = 4MHz, subclock = 32768HZ with crystal mode. Ta = 25,) Symbol Parameter Min. Type Max. Unit Test condition VDD Operating voltage 2.4 5.5 V - Isb Sleep - 1 3 ua MCU, XTAL(or HRC) and LRC oscillator turn off MCU turn off, XTAL(or HRC) Iop1 IDLE - 4 6 ua Operating current Iop2 Slow - 25 30 ua turn off and LRC oscillator turn on MCU turn on, XTAL(or HRC) turn off and LRC oscillator Iop3 Normal - 0.55 0.7 ma turn on MCU turn on, XTAL(or HRC) and LRC turn on Vih1 Input high voltage - 2 - V Vdd=5V Vil1 Input low voltage - 1 - V Vdd=5V Voh1 Output high voltage 4.5 - - V Vdd=5V, Ioh=4mA Vol1 Output low voltage - - 0.5 V Vdd=5V,Iol=10mA Ioh1 I/O output high current 3 4 ma Vdd=5V, Voh=4.5V Iol1 I/O output low current 9 10 ma Vdd=5V,Vol=0.5V Rup Pull-up resistor 75 KΩ Vdd=5V 6.2 AC CHARACTERISTICS Symbol Parameter Min. Typ. Max. Unit Test condition F LRC F HRC Internal RC Oscillator Frequency External RC Oscillator Frequency - 200K - Hz VDD=3V 32K - 8M Hz - Page 7 of 12
Symbol Parameter Min. Typ. Max. Unit Test condition F XTAL Crystal Oscillator Frequency 32768-20M Hz - T CYC Instruction Cycle Time - 2/Fosc - S - T POR POR Timer Period - 33 - ms T RST Reset Active Width 1 500 us VDD=3V FOSC = 2MHz VDD=3V FOSC = 2MHz T WDT Watch Dog Timer Period - 20 - ms VDD = 3V DF/F RC OSC Frequency Stability - - 10 % Fosc(3V)-Fosc(2.4V) Fosc(2.4V) 7. PACKAGE LQFP48 Page 8 of 12
8.APPLICATION CIRCUIT TYPE 1 OCOO(One Channel One Out) R1 120K(1MHz) R2 470K R3 470K C5 104 C4 104 C4 104 VDD D2 Vin 1 GND 2 Vout 3 U2 LDO C1 105 C2 105 VCC=2.6V~3.7V S1 P20 P21 PAD0 PAD1 PAD2 PAD3 PAD4 PAD5 PAD6 PAD7 PAD8 PAD9 PAD10 PAD11 PAD12 PAD13 PAD14 PAD15 OUT0 OUT1 OUT2 OUT3 OUT4 OUT5 OUT6 OUT7 OUT8 OUT9 OUT10 OUT11 OUT12 OUT13 OUT14 OUT15 D1 D1 D2 S2 VDD P20 P21 R4 R5 R4 R5 P07 1 P06 2 P05 3 P04 4 P03 5 P02 6 P01 7 P00 8 VREF 9 TS15 10 TS14 11 12 TS13 13 TS12 14 TS11 15 TS10 16 TS9 17 TS8 18 TS7 19 TS6 20 TS5 21 TS4 22 TS3 23 24 TS2 25 TS1 26 TS0 27 VC2 28 VC1 29 P17 30 P16 31 P15 32 P14 33 P13 34 P12 35 36 P11 37 P10 38 GND 39 VDD 40 RST_EXTb 41 42 43 P21 44 P20 45 OSCO 46 OSCI 47 48 SG8F160P (LQFP48) Page 9 of 12
Type 2 BCD Code Output VCC=2.6V~3.7V C1 105 1 U2 LDO Vin GND 2 Vout 3 C2 105 C3 104 R1 120K(1MHz) P20 P21 P20 S1 P21 S2 VDD R2 470K R3 470K BCD CODE 1 2 3 4 5 6 7 8 9 10 11 12 P07 P06 P05 P04 P03 P02 P01 P00 VREF TS15 TS14 OSCI OSCO P20 P21 RST_EXTb VDD GND P10 P11 C4 104 C5 104 R4 R5 D1 D2 R4 R5 D1 D2 VDD PAD15 PAD14 PAD13 PAD12 PAD11 PAD10 PAD9 PAD8 PAD7 PAD6 PAD5 PAD4 PAD3 PAD2 PAD1 PAD0 48 47 46 45 44 43 42 41 40 39 38 37 SG8F160P (LQFP48) TS13 TS12 TS11 TS10 TS9 TS8 TS7 TS6 TS5 TS4 TS3 P12 P13 P14 P15 P16 P17 VC1 VC2 TS0 TS1 TS2 36 35 34 33 32 31 30 29 28 27 26 25 13 14 15 16 17 18 19 20 21 22 23 24 The relation of RC oscillator frequency and resistor (HZ) 1. VDD=5.0V R OSC (OHM) 1K 3.9K 9.1K 20K 56K 120K 300K 4.7M F REQ (HZ) 10M 8M 6M 4M 2M 1M 455K 32K 2. VDD=3.3V R OSC (OHM) 3.6K 15K 47K 120K 300K 4.7M F REQ (HZ) 6M 4M 2M 1M 455K 32K Page 10 of 12
9. PACKAGE DISCRIPTION Page 11 of 12
10.REVISION HISTORY Version Update date Revised Content Revised By Confirmed By V1.0 2007-8-6 Original version Joan Alan 1.Modify the Block Diagram V1.2 2007-9-26 2.Modify the Absolute Maximum Rating Kate Alan 3.Add the Electrical Characteristics Page 12 of 12