S3C9654 SAMSUNG | Alldatasheet

Document overview

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

Technical content

S3C9654/C9658/P9658 PRODUCT OVERVIEW 1- 1

1 PRODUCT OVERVIEW

SAM8 8RC RI PRODUCT FAMILY Samsung's SAM88RCRI family of 8-bit single-chi p CMOS microcontrollers offer fast and efficient CPU, a wide range of integrated peripherals, and supports OTP device . A dual address/data bus architecture and bit- or nibble-configurable I/O ports provide a flexible programming environment for applications with varied memory and I/O requirements. Timer/counters with selectable operating modes are included t o support real-time operations. S3C9654/C9658/P9658 MICROCONTROLLER The S3C9654/C9658/P9658 microcontroller with USB function can be used in a wide range of general purpose applications. It is especially suitable for mouse or joystick controller and is available in 16, 18, 20 -pin DIP and SO P package. The S3C9654/C9658/P9658 single-chip 8-bit microcontroller is fabricated using an advanced CMOS process. It is built around the powerful SAM88RCRI CPU core. Stop and Idle power-down modes were implemented to reduce power consumption. To increase on-chip register space, the size of the internal register file was logically expanded. The S3C9654/C9658/P9658 has 4/8 Kbytes of program memory on-chip (S3C9654/C9658), and 208 bytes of RAM including 16 bytes of working register . Using the SAM 88RCRI design approach, the following peripherals were integrated with the SAM88RCRI core: — Three configurable I/O ports (14 pin, at 20 pin ) — 14-bit programmable pins for external interrupts (at 20 pin) — 8-bit timer/counter with two operating modes OTP The S3C9654/C9658 microcontroller is also available in OTP (One Time Programmable) version. S3P9658 microcontroller has an on-chip 4/8 Kbyte one-time-programmable EPROM instead of masked ROM. The S3P9658 is comparable to S3C9654/C9658 , both in function and in pin configuration.

PRODUCT OVERVIEW S3C9654/C9658/P9658 1- 2

FEATURES

  • SAM88RCRI CPU core Memory
  • 4 -K byte internal program memory (ROM S3C9654 )
  • 8-K byte internal program memory (ROM S3P9658/C9658 )
  • 208-b yte RAM
  • 16 bytes of working register Instruction Set
  • 41 instructions
  • IDLE and STOP instructions added for power- down modes Instruction Execution Time
  • 0.66 µs at 6 MHz f OSC Interrupts
  • 14 interrupt sources with one vector (20 pin)
  • 12 interrupt sources with one vector (18 pin)
  • 10 interrupt sources with one vector (16 pin)
  • One level, one vector interrupt structure Oscillation Circuit Options
  • 6 MHz crystal/ceramic oscillator
  • External clock source
  • RC oscillator
  • Embedded oscillation capacitor (XI, XO, 33pF) General I/O
  • 14 bit-programmable I/O pins (20 pin)
  • 12 bit-programmable I/O pins (18 pin)
  • 10 bit-programmable I/O pins (16 pin) Sub Oscillator
  • Internal RC sub oscillator
  • Auto interrupt wake-up Timer/Counter
  • One 8-bit basic timer for watchdog function and programmable oscillation stabilization interval generation function
  • One 8-bit timer/counter with Compare/Overflow counter USB Serial Bus
  • Compatible to USB low speed (1.5 Mbps) device 1.0 specification.
  • Serial bus interface engine (SIE) — Packet decoding/generation — CRC generation and checking — NRZI encoding/decoding and bit-stuffing
  • Two 8-byte receive/transmit USB buffer Operating Temperature Range Operating Voltage Range
  • 4. 0 V to 5.25 V Package Types
  • 16, 18, 20 pin DIP
  • 16, 18, 20 pin SOP Comparator
  • 6-channel mode, 32 step resolution
  • 5-channel mode, external reference
  • Low EMI design Low Voltage Reset
  • Low voltage Reset
  • Power on Reset High Sink Current Pin for LED
  • P0.0 (V OL : 0.4 V, 50mA)

S3C9654/C9658/P9658 PRODUCT OVERVIEW 1- 3 BLOCK DIAGRAM SAM88RCRI CPU Port I/O and Interrupt Control 8K (4K) ROM

208 Byte

NOT E: 16, 18, 20 DIP and SOP. LVR USB SIE P2.1/D+/INT2 P2.0/D-/INT2 Port 1/ Compa -rator P1.0/CIN0/INT1 P1.1/CIN0/INT1 P1.2/CIN0/INT1 P1.3/CIN0/INT1 P1.4/CIN0/INT1 P1.5/CIN0/INT1 Port 0 P0.2/INT0 (note) P0.3/INT0 (note) P0.4/INT0 (note) P0.5/INT0 (note) P0.0/INT0 P0.1/INT0 Figure 1-1. Block Diagram

PRODUCT OVERVIEW S3C9654/C9658/P9658 1- 4 PIN ASSIGNMENTS S3C9654/ S3C9658 P0.3/INT0 V DD P2.0/D-/INT2 P2.1/D+/INT2 RESET X IN X OUT TEST P0.1/INT0 P0.5/INT0 P0.2/INT0 V SS P0.0/INT0 P1.0/COM0/INT1 P1.1/COM1/INT1 P1.2/COM2/INT1 P1.3/COM3/INT1 P1.4/COM4/INT1 P1.5/COM5/INT1 P0.4/INT0 P0.2/INT0 V SS P0.0/INT0 P1.0/COM0/INT1 P1.1/COM1/INT1 P1.2/COM2/INT1 P1.3/COM3/INT1 P1.4/COM4/INT1 P1.5/COM5/INT1 P0.4/INT0 Figure 1-2. Pin Assignment (20 Pin )

PRODUCT OVERVIEW S3C9654/C9658/P9658 1- 6 Table 1- 1 . Signal Descriptions Pin Names Pin Type Pin Description Circuit Number Pin Numbers Share Pins P0.0 I/O Bit-programmable I/O port for Schmitt trigger input or n-ch open drain output (50 mA). Pull-up resistor is assignable to input pin by software and is automatically disabled for output pin. Port 0 can be individually configured as external interrupt input. SK 3 INT0 P0.1–P0.5 I/O Bit-programmable I/O port for Schmitt trigger input or push-pull output. Pull-up resistors individually assignable to input pins by software and are automatically disabled for output pins. Port 0 can be individually configured as external interrupt inputs. D 1, 10, 11, 12, 20 INT0 P1.0–P1.5 I/O Bit-programmable I/O port for Schmitt trigger input or push-pull output. Pull-up resistors are individually assignable to input pins by software. Port 1 can be configured as comparator input or external interrupt inputs. Pull-down resistors are individually assignable. (in comparator input) CP 4–9 CIN0-5 INT1 P2.0/D- P2.1/D+ I/O Bit-programmable I/O port for Schmitt trigger input or n-ch open drain output. Pull-up resistors are individually assignable to input pins by software and are automatically disabled for output pins. Port 2 can be individually configured as external interrupt inputs. Also it can be configured as an USB ports. CP 17, 18 INT2 X OUT , X IN – System clock input and output pin (crystal/ceramic oscillator, or external clock source) – 14, 15 – INT 0 I External interrupt for bit-programmable port 0 D 1, 3, 10, 11, 12, 20 Port 0 INT1 I External interrupt for bit-programmable port 1 D 4–9 Port 1 INT2 I External interrupt for bit-programmable port 2 D 17, 18 Port 2 V DD – Power input pin – 19 – V SS – V SS is a ground power for CPU core. – 2 – RESET 1 Reset input pin (Pull-up register embedded) – 16 –

S3C9654/C9658/P9658 PRODUCT OVERVIEW 1- 9 DM1 S3C9654/ S3C9658/S3P9658 X I X OUT V DD V SS C_BULK+ P0.1/INT0 P0.3/INT0 20 P0.2/INT0 1 15 12 17 P2.1/D+/INT2 18 P2.0/D-/INT2 P1.0/COM0/INT1 4 TEST RESET (note) P0.4/INT0 P0.5/INT0 T_Z V DD P0.0/INT0 V SS V SS V SS SW1 SW3 SW2 Button Button Button T_X T_Y V DD V DD R_Z D_Z To Host P1.1/COM1/INT1 P1.2/COM2/INT1 P1.3/COM3/INT1 P1.4/COM4/INT1 P1.5/COM5/INT1 V DD D_X D_Y R_XYV SS V DD X I NOTE: RESET Pin is connected to internal Pull-up register after power on reset. If RESET Pin is low, S3C9654/C9658/P9658 goes to reset. V SS Figure 1-9. USB Mouse Circuit Diagram

S3C9654/C9658/P9658 ELECTRICAL DATA 1 5- 1 1 5 ELECTRICAL DATA OVERVIEW In this section, the following S3C9654/C9658/P9658 electrical characteristics are presented in tables and graphs: — Absolute maximum ratings — D.C. electrical characteristics — I/O capacitance — A.C. electrical characteristics — Oscillator characteristics — Operating voltage range — Oscillation stabilization time — Clock timing measurement points at X IN — Data retention supply voltage in Stop mode — Stop mode release timing when initiated by a RESET — Stop mode release timing when initiated by an external interrupt — Characteristic curves — Comparator Electrical Characteristics

ELECTRICAL DATA S3C9654/C9658/P9658 1 5- 2 Table 15- 1 . Absolute Maximum Ratings (T A = 25 °C) Parameter Symbol Conditions Rating Unit Supply voltage V DD – – 0.3 to + 6.5 V Input voltage V I All ports – 0.3 to V DD + 0.3 V Output voltage V O All o utput ports – 0.3 to V DD + 0.3 V Output current high I OH One I/O pin active – 18 mA All I/O pins active – 60 Output current low I OL One I/O pin active (except P0.0) + 30 mA Total pin current for ports 0, 1 , 2 (except P0.0) + 100 P0.0 + 50 Operating temperature T A – 0 to + 85 °C Storage temperature T STG – – 60 to + 150

S3C9654/C9658/P9658 ELECTRICAL DATA 1 5- 3 Table 15- 2 . D.C. Electrical Characteristics (T A = 0 °C to + 85 °C, V DD = 4. 0 V to 5.25 V) Parameter Symbol Conditions Min Typ Max Unit Input high voltage V IH 1 All input pin s except V IH 2, D+, D– 0.8 V DD – V DD V V IH2 X IN V DD – 0.5 V DD Input low voltage V IL 1 All input pin s except V IL2 , D+, D– – – 0.2 V DD V IL2 X IN – – 0.4 Output high voltage V OH V DD = 4. 0 V – 5.25 V IOH = – 200 µA All output port s except D+, D– V DD – 1.0 – – Output low voltage V OL V DD = 4. 0 V – 5.25 V IOL = 2 mA All output ports except D+, D–, P0.0 – – 0.4 Output low Current IOL V OL = 0.4 V 50 (4) mA Input high leakage current ILIH 1 V IN = V DD All inputs except I LIH 2 except D+, D–, X OUT – – 3 µA ILIH2 V IN = V DD , X IN – – 20 Input low leakage current ILIL 1 V IN = 0 V All inputs except I LIL 2 except D+, D–, X OUT – – – 3 ILIL2 V IN = 0 V , X IN – – – 20 Output high leakage current ILOH V OUT = V DD All output pin s except D+, D– – – 3 Output low leakage current ILOL V OUT = 0 V All output pins except D+, D– X OUT , P0.0 – – – 3 Pull-up resistors R L1 V IN = 0 V, V DD = 5.0 V, Port 0, Port 1 25 50 100 K Ω R L2 V IN = 0 V , V DD = 5.0 V, Port 2 – 4.3 – Supply current IDD1 Normal operation mode , V DD = 4. 0 V – 5.25 V

6 MHz, CPU clock

– 6.5 15 mA IDD2 IDLE mode V DD = 4. 0 V – 5.25 V – 2 4 IDD3 Stop mode, oscillator stop V DD = 4. 0 V – 5.25 V – 13 25 µA NOTE S : 1. Supply current does not include current drawn through internal pull-up resistors or external output curren t load. 2. This parameter is guaranteed, but not tested (include D+, D–). 4. P0.0 designed for direct LED current sink, see the SNKCON resistor and Figure 1-9 (Page 1-9).

ELECTRICAL DATA S3C9654/C9658/P9658 1 5- 4 Table 15- 3 . Input/Output Capacitance (T A = 0 °C to + 85 °C, V DD = 0 V) Parameter Symbol Conditions Min Typ Max Unit Input capacitance C IN f = 1 MHz; unmeasured pins are connected to V SS – – 10 pF Output capacitance C OUT Except X IN, X OUT I/ O capacitance C IO XI/XO capacitance C XI, C XO X IN, X OUT – 33 – Table 15- 4 . A.C. Electrical Characteristics (T A = 0 °C to + 85 °C, V DD = 4. 0 V to 5.25 V) Parameter Symbol Conditions Min Typ Max Unit Noise filter tNF1H , t NF1L P 1 (RC delay) 100 – 200 ns

0.8 V DD

0.2 V DD

0.5 V DD

Figure 15-1. Nose Filter Timing Measurement Points

S3C9654/C9658/P9658 ELECTRICAL DATA 1 5- 5 Table 15-5. Oscillator Characteristics Oscillator Clock Circuit Test Condition Min Typ Max Unit Main crystal Main ceramic (f OSC ) X IN X OUT Oscillation frequency V DD = 4.0 V–5.25 V – 6.0 – MHz External clock X IN X OUT Oscillation frequency V DD = 4.0 V–5.25 V – 6.0 – MHz RC oscillator X IN X OUT R Oscillation frequency V DD = 5.0 V R = 22.6 K R = 8.8 K R = 3.2 K 1.0 2.0 4.0 MHz Table 15- 6 . Oscillation Stabilization Time (T A = 0 °C + 85 °C, V DD = 4. 0 V to 5.25 V) Oscillator Test Condition Min Typ Max Unit Main crystal V DD = 4. 0 V to 5.25 V , f OSC > 6.0 MHz – – 10 ms Main ceramic (Oscillation stabilization occurs when V DD is equal to the minimum oscillator voltage range.) Oscillator tWAIT stop mode release time by a reset – 2 1 6 /f OSC – stabilization wait time tWAIT stop mode release time by an interrupt – – – NOTE: The oscillator stabilization wait time, t WAIT , when it is released by an interrupt, is determined by the setting in the basic timer control register, BTCON.

ELECTRICAL DATA S3C9654/C9658/P9658 1 5- 6 0.4 V tXL tXH X IN 1/f OSC V DD - 0.5 V Figure 15-2. Clock Timing Measurement Points at X IN Table 15- 7 . Data Retention Supply Voltage in Stop Mode (T A = 0 °C to + 70 °C) Parameter Symbol Conditions Min Typ Max Unit Data retention supply voltage V DDDR Stop mode 2.0 – 6 V Data retention supply current IDDDR Stop mode; V DDDR = 2.0 V – – 5 µA

S3C9654/C9658/P9658 ELECTRICAL DATA 1 5- 7 Data Retention Mode ~ ~~ V DDDR Execution Of Stop Instrction V DD Normal Operating Mode IDLE Mode (Basic Timer Active) Stop Mode tWAIT Figure 15-3. Stop Mode Release Timing When Initiated by an External Interrupt Table 15- 8 . Comparator Electrical Characteristics (T A = 0 °C to + 85 °C, V DD = 4. 0 V to 5.25 V) Parameter Symbol Conditions Min Typ Max Unit Conversion time (1) tCON – – 6 × 12 or 6 × 192 – f CPU Comparator input voltage V ICN – V SS – V DD V Comparator input impedance R CN – 2 1000 – M Ω Comparator reference voltage V REF – 1.8 – V DD V Comparator input current ICIN V DD = 5 V – 3 – 3 µA Reference input current IREF V DD = 5 V – 3 – 3 µA Comparator block ICOM V DD = 5 .5 V – 1 2 mA current (2) V DD = 4.5 V 0.5 1 mA V DD = 5 V (when power down mode) 100 500 n A NOTES: 1. Conversion time is the time required from the moment a conversion operation starts until it ends. 2. ICOM is an operating current during conversion.

S3C9654/C9658/P9658 MECHANICAL DATA 1 6- 1

16 MECHANICAL DATA

This section contains the following information about the device package: — Package dimensions in millimeters — Pad diagram NOTE : Dimensions are in millimeters.

26.80 MAX

26.40 ± 0 .20 (1.77) 20-DIP-300A 6.40 ± 0 .20 #20 0.46 ± 0.10 1.52 ± 0.10 #11 #10 0-15 0.25 + 0.10- 0.05 7.62 2.54

0.51 MIN

3.30 ± 0.30 3.25 ± 0.20

5.08 MAX

Figure 16-1. 20-DIP 300A Package Dimensions

MECHANICAL DATA S3C9654/C9658/P9658 1 6- 2 28.85 (2.92) 6.48 #20 1.63 #11 #10 0.38 7.62 2.54 0.89 3.43 0.56 3.51 4.06 9.2520-DIP-300A-SG Figure 1 6- 2 . 20-DIP-300A-SG Package Dimensions

S3C9654/C9658/P9658 MECHANICAL DATA 1 6- 3 NOTE : Dimensions are in millimeters. 20-SOP-300 7.80 ± 0 .30 #11 #20 #1 #10

14.10 MAX

13.70 ± 0 .20 (0.66) 0-8 0.203 + 0.10 - 0.05 9.53 5.40 ± 0.20 0.8 5 ± 0.20 0.05 MIN 2.3 0 ± 0.10

2.50 MAX

0.40

0.10 MAX

+ 0.10 - 0.05 1.27 Figure 16-3. 20-SOP-300 Package Dimensions

MECHANICAL DATA S3C9654/C9658/P9658 1 6- 4 23.50 (1.53) 6.48 #18 #10 0.38 7.62 10.03 1.63 0.56 2.54 0.89 3.18 3.51 4.06 18-DIP-300A-SG Figure 16-4. 18-DIP-300A-SG Package Dimensions

S3C9654/C9658/P9658 MECHANICAL DATA 1 6- 5 #1 #9 #10#18 10.41 18.06 0.48 2.64 1.27BSC 18-SOP-BD300-AN 0-8 0.32 7.59 1.02 0.29 Figure 16-5. 18-SOP-BD300-AN Package Dimensions

MECHANICAL DATA S3C9654/C9658/P9658 1 6- 6 19.23 (0.53) 6.48 #16 0.38 7.62 10.03 2.541.63 0.56 0.89 3.43 3.51 4.06 16-DIP-300A-SG Figure 16-6. 16-DIP-300A-SG Package Dimensions

S3C9654/C9658/P9658 MECHANICAL DATA 1 6- 7 #1 #8 #9#16 10.50 10.56 2.65 1.27BSC0.48 16-SOP-BD300-SG 0-8 0.32 7.60 1.27 0.30 Figure 16-7. 16-SOP-BD300-SG Package Dimensions

S3C9654/C9658/P9658 S3P9658 OTP 17- 1

17 S3P9658 OTP

The S3P9658 single-chip CMOS microcontroller is the OTP (One Time Programmable) version of the S3P9658 microcontroller. It has an on-chip OTP ROM instead of masked ROM. The EPROM is accessed by serial data format. The S3P9658 is fully compatible with the S3P9658, both in function and in pin configuration. Because of its simple programming requirements, the S3P9658 is ideal for use as an evaluation chip for the S3P9658. S3P9658 P0.3/INT0 V DD P2.0/D-/INT2 P2.1/D+/INT2 RESET/RESETRESET X IN X OUT TEST/ TEST P0.1/INT0 P0.5/INT0 P0.2/INT0 V SS /V SS P0.0/INT0 SCLK /P1.0/COM0/INT 1 SDAT /P1.1/COM1/INT 1 P1.2/COM2/INT1 P1.3/COM3/INT1 P1.4/COM4/INT1 P1.5/COM5/INT1 P0.4/INT0 NOTE: The bold is indicate an OTP pin name. Figure 17-1. S3P9658 Pin Assignments (20 Pin)

S3C9654/C9658/P9658 S3P9658 OTP 17- 3 Table 17-1. Descriptions of Pins Used to Read/Write the EPROM Main Chip During Programming Pin Name Pin Name Pin Number (20 DIP) I/O Function P1.0 SDAT 5 I/O Serial Data Pin (Output when reading, Input when writing) Input and Push-pull Output Port can be assigned P1.1 SCLK 4 I/O Serial Clock Pin (Input Only Pin) RESET RESET 16 I 0 V : OTP write and test mode

5 V : Operating mode

(TEST)

13 I Chip Initialization and EPROM Cell Writing Power

Supply Pin (Indicates OTP Mode Entering) When writing 12.5 V is applied and when reading. V DD /V SS V DD /V SS 19/2 I Logic Power Supply Pin. Table 17-2. Comparison of S3P9658 and S3C9654/C9658 Features Characteristic S3P9658 S3C9654/C9658 Program Memory 8 K-byte EPROM 4/8 K-byte mask ROM Operating Voltage (V DD ) 4.0 V to 5.25 V 4.0 V to 5.25 V OTP Programming Mode V DD = 5 V, V PP (TEST) = 12.5 V Pin Configuration 20/18/16 DIP, 20/18/16 SOP 20/18/16 DIP, 20/18/16 SOP, 16SSOP EPROM Programmability User Program 1 time Programmed at the factory OPERATING MODE CHARACTERISTICS When 12.5 V is supplied to the V PP ( RESET) pin of the S3P9658, the EPROM programming mode is entered. The operating mode (read, write, or read protection) is selected according to the input signals to the pins listed in Table 14-3 below. Table 17-3. Operating Mode Selection Criteria V DD V PP ( RESETRESET) REG/ MEMMEM Address (A15-A0) R/W Mode

5 V 5 V 0 0000H 1 EPROM read

12.5 V 0 0000H 0 EPROM program

12.5 V 0 0000H 1 EPROM verify

12.5 V 1 0E3FH 0 EPROM read protection

NOTE: "0" means Low level; "1" means High level.