S3CB018 SAMSUNG | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 33

Technical content

S3CB018/FB018 PRODUCT OVERVIEW 1- 1

1 PRODUCT OVERVIEW

The S3CB018/FB018 single-chip CMOS microcontroller is designed for high performance using Samsung ’ s newest 8-bit CPU core, CalmRISC. CalmRISC is an 8-bit low power RISC microcontroller. Its basic architecture follows Harvard style, that is, it has separate program memory and data memory. Both instruction and data can be fetched simultaneously without causing a stall, using separate paths for memory access. Represented below is the top block diagram of the CalmRISC microcontroller.

PRODUCT OVERVIEW S3CB018/FB018 1- 2 S3CB018/FB018 OVERVIEW FEATURES SUMMARY CPU

  • 8-Bit RISC architecture Memory
  • ROM: 4 Kword (8 K-byte)
  • RAM: 3072 (1024+2048) byte 1024 (X-memory) byte 2048 (Y-memory) byte Stack
  • size: maximum 16 (word)-level

26 I/O Pins

  • I/O: 26 pins, including 8 S/W open drain pins 8-Bit Basic Timer
  • Programmable interval timer
  • 8 kinds of clock source Watchdog Timer
  • System reset when 11-bit counter overflows 16-Bit Timer/Counter
  • Programmable interval timer
  • Two 8-bit timer counter mode and one 16-bit timer counter mode, selectable by S/W Watch Timer
  • Real time clock or interval time measurement
  • Four frequency outputs for buzzer sound 8-Bit Serial I/O Interface
  • 8-bit transmit/receive mode
  • 8-bit receive mode
  • LSB first or MSB first transmission selectable
  • Internal and external clock source 16-Bit Serial I/O Interface
  • 16-bit transmit/receive mode
  • External clock source Coprocessor
  • MAC 816
  • 8 x 16, 16 x 16 Multiply and Accumulation
  • Arithmetic operation Two Power-Down Modes
  • Idle mode: only CPU clock stop
  • Stop mode: selected system clock and CPU clock stop Oscillation Sources
  • Crystal and Ceramic (0.4-20MHz), RC Oscillation
  • Programmable oscillation source Instruction Execution Times
  • 50ns at 20MHz for 1 cycle instruction
  • 100ns at 20MHz for 2 cycle instruction

S3CB018/FB018 PRODUCT OVERVIEW 1- 3 BBUS[7:0] Program Memory Address Generation Unit PC[19:0] Hardware Stack HS[0] HS[15] ALU ABUS[7:0] ALUL ALUR PA[19:0] PD[15:0] IDL0 IDL1 SR0SR1 ILHILX ILL SPR IDH DO[7:0] DI[7:0] GPR Data Memory Address Generation Unit DA[15:0] Flag RBUS TBH TBL Bank 0,1 Figure 1-1. Top Block Diagram of CalmRISC

PRODUCT OVERVIEW S3CB018/FB018 1- 4 The CalmRISC building blocks consist of: — An 8-bit ALU — 16 general purpose registers (GPR) — 11 special purpose registers (SPR) — 16-level hardwa re stack — Program memory address generation unit — Data memory address generation unit 16 GPR ’ s are grouped into four banks (Bank0 to Bank3) and each bank has four 8-bit registers (R0, R1, R2, and R3). SPR ’ s, designed for special purposes, include status registers, link registers for branch-link instructions, and data memory index registers. The data memory address generation unit provides the data memory address (denoted as DA[15:0] in the top block diagram) for a data memory access instruction. Data memory contents are accessed through DI[7:0] for read operations and DO[7:0] for write operations. The program memory address generation unit contains a program counter, PC[19:0], and supplies the program memory address through PA[19:0] and fetches the corresponding instruction through PD[15:0] as the result of the program memory access. CalmRISC has a 16-level hardware stack for low power stack operations as well as a temporary storage area. CalmRISC has a 3-stage pipeline as described below: Instruction Fetch (IF) Instruction Decode/ Data Memory Access (ID/MEM) Execution/Writeback (EXE/WB) Figure 1-2. CalmRISC Pipeline Diagram As can be seen in the pipeline scheme, CalmRISC adopts a register-memory instruction set. In other words, data memory where R is a GPR, can be one operand of an ALU instruction as shown below: The first stage (or cycle) is Instruction Fetch stage (IF for short), where the instruction pointed to by the program counter, PC[19:0] , is read into the Instruction Register (IR for short). The second stage is Instruction Decode and Data Memory Access stage (ID/MEM for short), where the fetched instruction (stored in IR) is decoded and data memory access is performed, if necessary. The final stage is Execute and Write-back stage (EXE/WB), where the required ALU operation is executed and the result is written back into the destination registers. Since CalmRISC instructions are pipelined, the next instruction fetch is not postponed until the current instruction is completely finished, but is performed immediately after the current instruction fetch is done. The pipeline stream of instructions is illustrated in the following diagram.

S3CB018/FB018 PRODUCT OVERVIEW 1- 5 EXE/WBIF IF IF IF IF IF IF ID/MEM ID/MEM ID/MEM ID/MEM ID/MEM ID/MEM EXE/WB EXE/WB EXE/WB EXE/WB EXE/WB / 1 / 2 / 3 / 4 / 6 / 5 Figure 1-3. CalmRISC Pipeline Stream Diagram Most CalmRISC instructions are 1-word instructions, while same branch instructions such as “ LCALL ” and “ LJT ” instructions are 2-word instructions. In Figure 1-3, the instruction, I4 , is a long branch instruction and it takes two clock cycles to fetch the instruction. As indicated in the pipeline stream, the number of clocks per instruction (CPI) is 1 except for long branches, which take 2 clock cycles per instruction.

PRODUCT OVERVIEW S3CB018/FB018 1- 6 CalmRISC CPU OSC Control WT BT/WDT MAC 816 Control Register

128 Byte

(38 Byte) P3.0 - P3.1 P2.0 - P2.7 P1.0 - P1.7 P0.0 - P0.7 Port 3 Port 2 Port 1 Port 0 Timer A Timer B SIO SIO SI SCK TACLK TAOUT TBCLK TBOUT ADDA X-Memory

1024 Byte

2048 Byte

Figure 1-4. S3CB018/FB018 Block Diagram

PRODUCT OVERVIEW S3CB018/FB018 1- 8 I/O PIN DESCRIPTION Table 1-1. S3CB018/FB018 Pin Descriptions (32-SOP) Pin Name Pin Type Pin Description Circuit Type Share Pins P0.0-P0.7 I/O I/O port with bit programmable pins; Input and output mode are selectable by software; Software assignable pull-up. P0.4-P0.7 can be used as inputs for comparator input CIN0-CIN3.; Alternately they can be used as SI, SO, SCK, BUZ, CSI, CSO, CSCK, CFSYNC. D-2 F-10 SI, SO, SCK BUZ, CSI, CSO, CSCK, CFSYNC P1.0-P1.7 O Output port with bit programmable pins; Push-pull output mode and open-drain output mode are selected by software; Software assignable pull-up. E-2 P2.0-P2.7 I/O I/O port with bit programmable pins; Input and output mode are selectable by software; Software assignable pull-up; P2.0-P2.3 can be used as inputs for external interrupts INT10-INT13. (with noise filter) ; Alternately they can be used as TAOUT, TACLK or TBOUT, TBCLK. D-4 D-2 INT10-INT13 TAOUT TACLK TBOUT TBCLK P3.0-P3.1 I/O I/O port with bit programmable pins; Input or output mode selected by software; software assignable pull-up; P3.0-P3.1 can be used as inputs for external interrupts INT00-INT01. (with noise filter and interrupt polarity control) D-4 INT00-INT01 Table 1-2. S3CB018/FB018 Pin Descriptions (30-SDIP) Pin Name Pin Type Pin Description Circuit Type Share Pins P0.0-P0.7 I/O I/O port with bit programmable pins; Input and output mode are selectable by software; Software assignable pull-up. P0.4-P0.7 can be used as SI, SO, SCK, BUZ, CSI, CSO, CSCK, CFSYNC, Alternately. D-2 F-10 SI, SO, SCK BUZ, CSI, CSO, CSCK, CFSYNC P1.0-P1.5 O O port with bit programmable pins; Push-pull output mode and open-drain output mode are selected by software; Software assignable pull-up. E-2 P2.0-P2.7 I/O I/O port with bit programmable pins; Input and output mode are selectable by software; Software assignable pull-up; P2.0-P2.3 can be used as inputs for external interrupts INT10-INT13. (with noise filter); Alternately they can be used as TAOUT, TACLK or TBOUT, TBCLK. D-4 D-2 INT10-INT13 TAOUT TACLK TBOUT TBCLK P3.0-P3.1 I/O I/O port with bit programmable pins; Input or output mode selected by software; software assignable pull-up; P3.0-P3.1 can be used as inputs for external interrupts INT00-INT01. (with noise filter and interrupt polarity control) D-4 INT00-INT01 NOTE: In S3CB018/FB018, the CSI, CSO, CSCK, CFSYNC pins are shared with P0.7-P0.4.

S3CB018/FB018 PRODUCT OVERVIEW 1- 9 Table 1-3. I/O Pin Description Pin Name Pin Type Description CSI I AD/DA Serial Input (from codec) CSO O AD/DA Serial Output (to codec) CSCK I AD/DA Serial Clock (from codec) CFSYNC I AD/DA Sync signal (from codec) SI I/O Serial data input SO I/O Serial data output SCK I/O Serial I/O interface clock signal BUZ I/O 0.5 kHz, 1 kHz, 2 kHz, or 4 kHz frequency output at 4.19 MHz for buzzer sound INT10-INT13 I External interrupts. Stop release. Can ’ t be masked by S/W individually but wholly. TAOUT I/O Timer A interval mode output TACLK I/O Timer A counter external clock input TBOUT I/O Timer B interval mode output TBCLK I/O Timer B counter external clock input INT00-INT01 I External interrupts. Stop release. Can be masked by S/W individually. SDAT I Serial data for Programmable memory SCLK I Serial clock for Programmable memory VDD – Power supply VSS – Ground TEST – Test signal input RESET I Reset signal X IN , X OUT – Crystal, ceramic and RC oscillator signal for system clock (For external clock input, use X IN and input X IN 's reverse phase to X OUT )

PRODUCT OVERVIEW S3CB018/FB018 1- 10 PIN ASSIGNMENTS 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 P0.0 P0.1 P0.2 V DD P0.3 P0.4 P0.5 GND P0.6 P0.7 V DD P1.0 P1.1 P1.2 P1.3 GND P1.4 P1.5 P1.6 P1.7 GND X IN XOUT V DDI /V DD P2.0 P2.1 P2.2 V DD P2.3 P2.4 GND P2.5 P2.6 P2.7 V DD P3.0 P3.1 GND TMODE PIN_RESB XDA4 XDA5 XDA6 GND XDA7 XDA8 XDA9 V DD /V DDI XDA10 XDA11 XDA12 XDA13 GND TEST PA0 PA1 PA2 V DD /V DDI PA3 PA4 PA5 GND PA6 PA7 V DD PA8 PA9 PA10 PA11 GND PA12 PA13 PA14 PA15 V DD PA16 PA17 PA18 PA19 BKREQX ICLKO GND PD0 PD1 PD2 PD3 GND PD4 PD5 PD6 PD7 VDD/VDDI PD8 PD9 PD10 GND PD11 PD12 PD13 VDD/VDDI PD14 PD15 GND NP64KW XDOCNT DOCNTX OUTDIS VDD RUNST NPMCS NPMOE NPMWE GND PTDO_TXD PTDI_RXD PTMS PTCK_MCLK VDD/VDDI PNTRST_STATEINIT JTAGSEL XDA3 XDA2 XDA1 XDA0 VDD XD0 XD1 XD2 XD3 GND XD4 XD5 XD6 XD7 VDD XD8 XD9 XD10 GND XD11 XD12 XD13 XD14 XD15 VDD/VDDI CSNXH CSNXL WENX OENX GND CSNWIO CSNBIO EVENIO WENIO OENIO VDD CSIN CSCLK CFSYNC CSOUT S3EB010 160-QFP (Top-View) Figure 1-7. S3EB010 Pin Diagram

S3CB018/FB018 PRODUCT OVERVIEW 1- 11 Table 1-4. Evaluation Chip Pin Descriptions No. Pin Name Pin Type Description 1-3 5-9 P0.0-P0.2 P0.3-P0.7 I/O Port 0 12-15 17-20 P1.0-P1.3 P1.4-P1.7 O Port 1

22 X IN I Clock In

23 X OUT O Clock Out

29, 30 32, 34 P2.0-P2.2 P2.3, P2.4 P2.5-P2.7 I/O Port 2 36, 37 P3.0, P3.1 I/O Port 3

39 TMODE I Test Mode pin; 1: skip warm-up time, 0: normal mode

40 PIN_RESB I Asynchronous reset, active low

41 JTAGSEL I JTAG mode select; 1: parallel, 0: serial

42 PNTRST_STSTEINI

T I JTAG/UART pin

44 PTCK_MCLK I JTAG/UART pin

45 PTMS I JTAG/UART pin

46 PTDI_RXD I JTAG/UART pin

47 PTDO_TXD O JTAG/UART pin

49 NPMWE O Program Memory Write Enable, active low

50 NPMOE O Program Memory Output Enable, active low

51 NPMCS O Program Memory Chip Select, active low

52 RUNST O Run Status Indicator

54 OUTDIS I I/O PAD Disable for debugger

55 DOCNTX I Data Bus Output Control

56 XDOCNTX I External X-Memory Data Bus Output Control

57 NPM64KW I Up to 64KW Program Memory, active low

59, 60 62-64 66-68 70-73 75-78 PD15-PD14 PD13-PD11 PD10-PD8 PD7-PD4 PD3-PD0 I/O Program Memory Data Bus

PRODUCT OVERVIEW S3CB018/FB018 1- 12 Table 1-4. Evaluation Chip Pin Descriptions (Continued) No. Pin Name Pin Type Description

80 ICLKO O ICLK Output

81 BKREQX I Break input for debugger

97, 98 100-102 104-106 PA19-PA16 PA15-PA12 PA11-PA8 PA7, PA6 PA5-PA3 PA2-PA0 O Program Memory Address

107 TEST I Test pin for debugger

O External X-Memory Address 126-129 131-134 136-138 140-144 XD0-XD3 XD4-XD7 XD8-XD10 XD11-XD15 I/O External X-Memory Data Bus

146 CSNXH O External X-Memory High Byte Chip Select, active low

147 CSNXL O External X-Memory Low Byte Chip Select, active low

148 WENX O External X-Memory Write Enable, active low

149 OENX O External X-Memory Output Enable, active low

151 CSNWIO O External I/O Word Chip Select, active low

152 CSNBIO O External I/O Byte Chip Select, active low

153 EVENIO O External I/O Even Indicator; 1:Even, 0: Odd

154 WENIO O External I/O Write Enable, active low

155 OENIO O External I/O Output Enable, active low

157 CSIN I AD / DA Serial Input (from codec)

158 CSCLK I AD / DA Serial Clock (from codec)

159 CFSYNC I AD / DA Sync signal (from codec)

160 CSOUT O AD / DA Serial Output (to codec)

VDD Power supply – 4, 11, 24, 28, 35, 43, 53, 61, 69, 86, 96, 103, 113 125, 135, 145, 156 GND Ground – 8, 16, 21, 31, 38, 48, 58, 65, 74, 79, 91, 99, 108, 117 130, 139, 150

S3CB018/FB018 ELECT RICAL DATA 18- 1

18 ELECTRICAL DATA

Table 18-1. Absolute Maximum Ratings (T A = 25 °C) Parameter Symbol Conditions Rating Unit Supply voltage V DD – – 0.3 to + 6.0 V Input voltage V I – – 0.3 to V DD + 0.3 Output voltage V O – – 0.3 to V DD + 0.3 Output current I OH One I/O pin active – 18 mA high All I/O pins active – 60 Output current I OL One I/O pin active + 30 low Total pin current for ports 1, 2, 3 + 100 Operating temperature T A – – 40 to + 85 °C Storage temperature T STG – – 65 to + 150 Table 18-2. D.C. Electrical Characteristics (T A = – 40 °C to + 85 °C, V DD = 1.8 V to 5.5 V) Parameter Symbol Conditions Min Typ Max Unit Operating Voltage (HSX mode) V DD F CPU = 20 MHz 4.5 – 5.5 V F CPU = 3 MHz 1.8 5.5 Operating Voltage (MSX mode) V DD F CPU = 10 MHz 4.5 – 5.5 F CPU = 3 MHz 1.8 5.5

Parameter Conditions Min Max Unit V IH1 IH2 0.8 V – DD V IH2 X V DD - 0.1 Input low voltage V IL1 All input pins except V IL2 – – 0.2 V DD V IL2 X IN 0.1 Output high voltage V OH1 V DD = 5V; I OH = -1 mA All output pins V DD -1.0 – – V Output low voltage V OL1 V DD = 5V; I OL = 8 mA All output pins except V OL2 – 2 V OL2 V DD = 5V; I OL = 15 mA, Port 1 2 Input high leakage current ILIH1 V IN = V DD All input pins except I LIH2 – – 3 uA ILIH2 V IN = V DD X IN , XT IN Input low leakage current ILIL1 V IN = 0 V All input pins except I LIL2 – – -3 ILIL2 V IN = 0 V X IN , XT IN , RESET -20 Output high leakage current ILOH V OUT = V DD All I/O pins and Output pins – – 3 uA Output low leakage current ILOL V OUT = 0 V All I/O pins and Output pins – – -3 Oscillator feed back resistors R osc1 (HSX) V DD = 5.0 V, T A = 25 °C, X IN = V DD , X OUT = 0V 510 710 910 k Ω R osc2 (MSX) V DD = 5.0 V,T A = 25 °C, X IN = V DD , X OUT = 0V 510 710 910 R osc3 (LSX) V DD = 5.0 V, T A = 25 °C, X IN = V DD , X OUT = 0V 2.0 2.7 3.5 M Ω Pull-up resistor R L1 V IN = 0 V; V DD = 5 V ± 10% Ports 0,1,2,3,4,5 T A =25 °C 30 50 70 k Ω R L2 V IN = 0 V; V DD = 5 V ± 10% T A =25 °C, RESET only 110 210 310

S3CB018/FB018 ELECT RICAL DATA 18- 3 Table 18-2. D.C. Electrical Characteristics (Continued) (T A = – 40 °C to + 85 °C, V DD = 1.8 V to 5.5 V) Parameter Symbol Conditions Min Typ Max Unit Supply current (1) IDD1 (2) Operating mode: V DD = 5 V ± 10%

20 MHz crystal oscillator(HSX)

– 10 20 mA

5 MHz crystal oscillator(MSX) 4 8

V DD = 3 V ± 10%

5 MHz crystal oscillator(MSX)

IDD2 (3) Idle mode: V DD = 5 V ± 10% – 2.5 5 mA

5 MHz crystal oscillator(MSX) 1 2

V DD = 3 V ± 10% 0.4 0.8 IDD3 Stop mode V DD = 5 V ± 10% – 0.5 3 uA V DD = 3 V ± 10% 0.2 1.2 NOTES: 1. Supply current does not include current drawn through internal pull-up resistors or external output current loads. 2. In operating current test mode Timer A and Timer B are running. 3. In idle current test mode the Watch timer is running. 4. The operating and idle currents are measured at weak mode . Table 18-3. A. C. Electrical Characteristics (T A = – 40 °C to + 85 °C, V DD = 1.8 V to 5.5 V) Parameter Symbol Conditions Min Typ Max Unit Interrupt input high, low width tINTH , tINTL V DD = 5V 200 – – ns RESET input low width tRSL V DD = 5V ± 10% 1 – – us NOTE: User must keep a value larger than the min value.

ELECTRICAL DATA S3C B018/FB018 18- 4 tINTHtINTL

0.8 V DD

0.2 V DD

Figure 18-1. Input Timing for External Interrupts RESET tRSL Figure 18-2. Input Timing for RESET

S3CB018/FB018 ELECT RICAL DATA 18- 5 Table 18-4. Data Retention Supply Voltage in Stop Mode (T A = – 40 °C to + 85 °C, V DD = 1.8 V to 5.5V) Parameter Symbol Conditions Min Typ Max Unit Data retention supply voltage V DDDR 1.5 – 5.5 V Data retention supply current IDDDR V DDDR = 1.5V – – 2 µA NOTE: Supply current does not include current drawn through internal pull-up resistors or external output current loads. Execution of STOP Instruction RESET Occur V DDDR Stop Mode Normal Operating ModeData Retention Mode tWAIT RESET V DD NOTE: t WAIT is the same as 2048 x 32 x 1/fxx Oscillation Stabilization Time 0.2V DD Figure 18-3. Stop Mode Release Timing When Initiated by a RESET

ELECTRICAL DATA S3C B018/FB018 18- 6 Execution of STOP Instruction V DDDR ~~ Data Retention V DD Normal Operating Mode ~~ Stop Mode Osc Start up time tWAIT NOTE: tWAIT is the same as 2048 x 32 x 1/fxx. The value of 2048 which is selected for the clock source of the basic timer counter can be changed. Then the value of t WAIT will be changed and ,when you select 16 instead of 32, the value of twait will also be changed. Oscillation Stabilization Time 0.2V DD INT Figure 18-4. Stop Mode Release Timing When Initiated by Interrupts

S3CB018/FB018 ELECT RICAL DATA 18- 7 Table 18-5. Synchronous SIO Electrical Characteristics (T A = – 40 °C to + 85 °C V DD = 4.5 V to 5.5 V, V SS = 0 V, fxx = 10 MHz oscillator ) Parameter Symbol Conditions Min Typ Max Unit SCK Cycle time tCYC – 200 – – ns Serial Clock High Width tSCKH – 60 – – Serial Clock Low Width tSCKL – 60 – – Serial Output data delay time tOD – – – 50 Serial Input data setup time tID – 40 – – Serial Input data Hold time tIH – 100 – – Output Data Input Data SCK tSCKH tCYC tSCKL Figure 18-5. Serial Data Transfer Timing

ELECTRICAL DATA S3C B018/FB018 18- 8 Table 18-6. Main Oscillator Frequency (T A = -40 °C + 85 °C, V DD = 1.8 V to 5.5 V) Oscillator Clock Circuit Test Condition Min Typ Max Unit Crystal X IN C1 C2 X OUT LSX mode 32 32.768 35 kHz MSX mode 0.4 – 10 MHz HSX mode 0.4 – 20 Ceramic X IN C1 C2 X OUT LSX mode 32 32.768 35 kHz MSX mode 0.4 – 10 MHz HSX mode 0.4 – 20 External clock X IN X OUT LSX mode 32 32.768 35 kHz MSX mode 0.4 – 10 MHz HSX mode 0.4 – 20 RC r = 22Kohm, V DD = 5 V Direct soldering 1.4 2 2.6 MHz NOTES: 1. Keep the wiring length as short as possible. 2. Do not cross the wiring with the other signal lines. 3. Do not route the wiring near a signal line through which a high fluctuating current flows. 4. Always make the ground point of the oscillator capacitor the same potential as V SS . 5. Do not ground the capacitor to a gro und pattern through which a high current flows. 6. Do not fetch signals from the oscillator.

S3CB018/FB018 ELECT RICAL DATA 18- 9 Frequency [kHz] 2V 3V 4V 5V 5.5V 6V V DD [V] 1.8 500 1000 1500 2000 3000 2500 15K 22K 30K 33K 36K 62K 120K 180K 300K 82K Figure 18-6. RC Oscillator Characteristic Curve

ELECTRICAL DATA S3C B018/FB018 18- 10 Table 18-7. Main Oscillator Oscillation Stabilization Time (t ST1 ) (T A = -40 °C + 85 °C, V DD = 4.5 V to 5.5 V) Oscillator Test Condition(Normal mode) Min Typ Max Unit HSX Crystal V DD = minimum oscillation voltage range. – – 10 ms Ceramic – – 4 ms External clock X IN input high and low level width (t XH , t XL ) 50 – – ns MSX Crystal V DD = minimum oscillation voltage range. – – 100 ms Ceramic – – 50 ms External clock X IN input high and low level width (t XH , t XL ) 50 – – ns LSX 32768Hz Crystal V DD = minimum oscillation voltage range. – 200 500 ms NOTE: Oscillation stabilization time (t ST1 ) is the time that is required to stabilize oscillation after a reset or STOP mode release. X IN tXHtXL 1/fosc1 V DD - 0.1 V 0.1 V Figure 18-7. Clock Timing Measurement at X IN

S3CB018/FB018 ELECT RICAL DATA 18- 11

20 MHz

3 MHZ

0.4 MHz

Supply Voltage (V) Minimum instruction clock = 1/1 x oscillator frequency 5.54.51.8 A B

10 MHZ

Figure 18-8. HSX Mode Operating Voltage Range Supply Voltage (V) Minimum instruction clock = 1/1 x oscillator frequency 5.54.51.8 A B Figure 18-9. MSX Mode Operating Voltage Range

S3CB018/FB018 MECHA NICAL DATA 19- 1

19 MECHANICAL DATA

The S3CB018/FB018 is available in a 30-pin SDIP package ( Samsung: 30-SDIP-400) and a 32-pin SOP package (32 -SOP-450A). Package dimensions are shown in Figures 20-1 and 20-2. NOTE : Dimensions are in millimeters. 27.88MAX 27.48 ± 0 .2 1.778(1.30)

0.51 MIN

3.30 ± 0.3 3.81 ± 0.2

5.08 MAX

1.12 ± 0.1 0.25 + 0.1- 0.05 10.16 #30 #16 #15#1 30-SDIP-400 0.56 ± 0.1 8.94 ± 0.2 Figure 19-1. 30-Pin SDIP Package Dimensions

MECHANICAL DATA S3C B018/FB018 19- 2 32-SOP-450A #1 #16 #17#32

2.40 MAX

(0.43)

0.05 MIN

1.27 NOTE: Dimensions are in millimeters 19.90 ± 0 .2 0.40 ± 0 .1 12.00 ± 0 .3 2.00 ± 0 .2 11.43 0-8 8.34 ± 0 .2 0.78 ± 0 .2 0.20 + 0.1 - 0.05 Figure 19-2. 32-SOP-450A Package Dimensions

20 S3FB018 FLASH MCU

The S3FB018 single-chip CMOS microcontroller is the FLASH version of the S3CB018 microcontroller. It has an on-chip FLASH ROM instead of masked ROM. The FLASH ROM is accessed in serial data format. The S3FB018 is fully compatible with the S3CB018, both in function and in pin configuration. Because of its simple programming requirements, the S3FB018 is ideal for use as an evaluation chip for the S3CB018.

Table 20-1. Descriptions of Pins Used to Read/Write the FLASH ROM Main Chip During Programming Pin Name Pin Name Pin No. I/O Function P3.0 SDAT 30(28) I/O Serial data pin. Output port when reading and input port when writing. Can be assigned as a Input/push- pull output port. P3.1 SCLK 31(29) I/O Serial clock pin. Input only pin. TEST Vpp (TEST) 4 I Power supply pin for FLASH ROM cell writing (indicates that FLASH enters into the writing mode). When 12.5 V is applied, FLASH is in writing mode and , when 5 V is applied, FLASH is in the reading mode. When FLASH is operating , hold GND. RESET RESET 7 I Chip Initialization V DD /V SS V DD /V SS 32/1(30/1) – Logic power supply pin. V DD should be tied to +5 V during programming. NOTE: Pin No. is for 100 QFP type package. (for 100 TQFP, the pins with the same name have same functions). Table 20-2. Comparison of S3FB018 and S3CB018 Features Characteristic S3FB519 S3CB519 Program Memory 4K word (8K byte) FLASH ROM 4K word (8K byte) FLASH ROM Operating Voltage (V DD ) 1.8 V to 5.5 V 1.8 V to 5.5 V OTP Programming Mode V DD = 5 V, V PP (TEST) = 12.5 V Pin Configuration 32-SOP/30-SDIP 32-SOP/30-SDIP FLASH ROM Programmability User programmable Programmed at the factory

Table 20-3. Absolute Maximum Ratings (T A = 25 °C) Parameter Symbol Conditions Rating Unit Supply voltage V DD – – 0.3 to + 6.0 V Input voltage V I – – 0.3 to V DD + 0.3 Output voltage V O – – 0.3 to V DD + 0.3 Output current I OH One I/O pin active – 18 mA high All I/O pins active – 60 Output current I OL One I/O pin active + 30 low Total pin current for ports 1, 2, 3 + 100 Operating temperature T A – – 40 to + 85 °C Storage temperature T STG – – 65 to + 150 Table 20-4. D.C. Electrical Characteristics (T A = – 40 °C to + 85 °C, V DD = 1.8 V to 5.5 V) Parameter Symbol Conditions Min Typ Max Unit Operating Voltage (HSX mode) V DD F CPU = 20 MHz 4.5 – 5.5 V F CPU = 3 MHz 1.8 5.5 Operating Voltage (MSX mode) V DD F CPU = 10 MHz 4.5 – 5.5 F CPU = 3 MHz 1.8 5.5

Table 20-4. D.C. Electrical Characteristics (Continued) (T A = – 40 °C to + 85 °C, V DD = 1.8 V to 5.5 V) Parameter Symbol Conditions Min Typ Max Unit Input high voltage V IH1 All input pins except V IH2 0.8 V DD – V DD V V IH2 X IN V DD - 0.1 Input low voltage V IL1 All input pins except V IL2 – – 0.2 V DD V IL2 X IN 0.1 Output high voltage V OH1 V DD = 5V; I OH = -1 mA All output pins V DD -1.0 – – V Output low voltage V OL1 V DD = 5V; I OL = 8 mA All output pins except V OL2 – – 2 V OL2 V DD = 5V; I OL = 15 mA, Port 1 2 Input high leakage current ILIH1 V IN = V DD All input pins except I LIH2 – – 3 uA ILIH2 V IN = V DD X IN , XT IN Input low leakage current ILIL1 V IN = 0 V All input pins except I LIL2 – – -3 ILIL2 V IN = 0 V X IN , XT IN , RESET -20 Output high leakage current ILOH V OUT = V DD All I/O pins and Output pins – – 3 uA Output low leakage current ILOL V OUT = 0 V All I/O pins and Output pins – – -3 Oscillator feed back resistors R osc1 (HSX) V DD = 5.0 V, T A = 25 °C X IN = V DD , X OUT = 0V 510 710 910 k Ω R osc2 (MSX) V DD = 5.0 V, T A = 25 °C X IN = V DD , X OUT = 0V 510 710 910 R osc3 (LSX) V DD = 5.0 V, T A = 25 °C X IN = V DD , X OUT = 0V 2.0 2.7 3.5 M Ω Pull-up resistor R L1 V IN = 0 V; V DD = 5 V ± 10% Ports 0,1,2,3,4,5 T A =25 °C 30 50 70 k Ω R L2 V IN = 0 V; V DD = 5 V ± 10% T A =25 °C, RESET only 110 210 310

Table 20-4. D.C. Electrical Characteristics (Continued) (T A = – 40 °C to + 85 °C, V DD = 1.8 V to 5.5 V) Parameter Symbol Conditions Min Typ Max Unit Supply current (1) IDD1 (2) Operating mode: V DD = 5 V ± 10% – 10 20 mA V DD = 3 V ± 10% IDD2 (3) Idle mode: V DD = 5 V ± 10% – 2.5 5 mA V DD = 3 V ± 10% 0.4 0.8 IDD3 Stop mode V DD = 5 V ± 10% – 0.5 3 uA V DD = 3 V ± 10% 0.2 1.2 NOTES: 1. Supply current does not include current drawn through internal pull-up resistors or external output current loads. 2. In operating current test mode Timer A and Timer B are running. 3. In idle current test mode the Watch timer is running. 4. The operating and idle currents are measured at weak mode .