ST7SCR 8-BIT LOW-POWER, FULL-SPEED USB MCU WITH 16K FLASH, 768 RAM, SMARTCARD I/F, TIMER DATA BRIEFING Memories - Up to 16K of ROM or High Density Flash (HDFlash) program memory with read/write protection - HDFlash In-Circuit and In-Application Programming - Up to 768 bytes of RAM including up to 128 bytes stack and 256 bytes USB buffer Clock, Reset and Supply Management - Low Voltage Reset - 2 power saving modes: Halt and Wait modes - PLL for generating 48 MHz USB clock using a 4 MHz crystal Interrupt Management - Nested Interrupt Controller USB (Universal Serial Bus) Interface - 256-byte buffer for full speed bulk, control and interrupt transfer types compliant with USB specification (version 2.0) - On-Chip 3.3V USB voltage regulator and transceivers with software power-down - 7 USB Endpoints: One 8-byte Bidirectional Control Endpoint One 64-byte In Endpoint, One 64-byte Out Endpoint Four 8-byte In Endpoints 35 or 4 I/O ports: - Up to 4 LED outputs with software programmable constant current (3 or 7 mA). - 2 General purpose I/Os programmable as interrupts - Up to 8 line inputs programmable as interrupts - Up to 20 Outputs - 1 line assigned by default as static input after reset TQFP64 14x14 SO24 ISO7816-3 UART Interface: - 4 Mhz Clock generation - Synchronous/Asynchronous protocols (T=0, T=1) - Automatic retry on parity error - Programmable Baud rate from 372 clock pulses up to 11.625 clock pulses (D=32/F=372) - Card Insertion/Removal Detection Smartcard Power Supply: - Selectable card VCC 1.8V, 3V, and 5V - Internal Step-up converter for 5V supplied Smartcards (with a current of up to 55mA) using only two external components. - Programmable Smartcard Internal Voltage Regulator (1.8V to 3.0V) with current overload protection and 4 KV ESD protection (Human Body Model) for all Smartcard Interface I/Os One 8-bit Timer - Time Base Unit (TBU) for generating periodic interrupts. Development Tools - Full hardware/software development package Table 1. Device Summary Features Program memory ST7FSCRDIE ST7SCRDIE 16K FLASH 16K ROM User RAM (stack) - bytes Peripherals 768 (256) USB Full-Speed (7 Ep), TBU, Watchdog timer, ISO7816-3 Interface Operating Supply Package CPU Frequency Operating temperature ST7FSCR1R4 ST7SCR1R4 ST7FSCR1E4 ST7SCR1E4 16K FLASH 16K ROM 16K FLASH 16K ROM 4.0 to 5.5V DIE TQFP64 SO24 4 or 8 Mhz 0C to +70C Rev. 1.2 December 2001 This is preliminary information on a new product in development or undergoing evaluation. Details are subject to change without notice. 1/10 1 ST7SCR 1 INTRODUCTION The ST7SCR and ST7FSCR devices are members of the ST7 microcontroller family designed for USB applications. All devices are based on a common industry-standard 8-bit core, featuring an enhanced instruction set. The ST7SCR ROM devices are factory-programmed and are not reprogrammable. The ST7FSCR versions feature dual-voltage Flash memory with Flash Programming capability. They operate at a 4MHz external oscillator frequency. Under software control, all devices can be placed in WAIT or HALT mode, reducing power consumption when the application is in idle or stand-by state. The enhanced instruction set and addressing modes of the ST7 offer both power and flexibility to software developers, enabling the design of highly efficient and compact application code. In addition to standard 8-bit data management, all ST7 microcontrollers feature true bit manipulation, 8x8 un- 2/10 1 signed multiplication and indirect addressing modes. The devices include an ST7 Core, up to 16 Kbytes of program memory, up to 512 bytes of user RAM, up to 35 I/O lines and the following on-chip peripherals: - USB full speed interface with 7 endpoints, programmable in/out configuration and embedded 3.3V voltage regulator and transceivers (no external components are needed). - ISO7816-3 UART interface with Programmable Baud rate from 372 clock pulses up to 11.625 clock pulses - Smartcard Supply Block able to provide programmable supply voltage and I/O voltage levels to the smartcards - Low voltage reset ensuring proper power-on or power-off of the device (selectable by option) - Watchdog Timer - 8-bit Timer (TBU) ST7SCR Figure 1. ST7SCR Block Diagram OSCIN 4MHz OSCILLATOR OSCOUT PLL 48 MHz 8 MHz DIVIDER or 4 MHz USB DATA BUFFER (256 bytes) PORT A PA[5:0] PORT B PB[7:0] PORT C PC[7:0] PORT D LED USB WATC HDOG ADDRESS AND DATA BUS USBDP USBDM USBVCC PD[7:0] LED[3:0] ISO7816 UART SUPPLY MANAGER 8-BIT TIMER PA6 CONTROL VPP 8-BIT CORE ALU DIODE SELF DC/DC Converter CRDVCC CRDDET LVD CRDIO RAM (512 Bytes) PROGRAM MEMORY (16K Bytes) CRDC4 3V/1.8V Vreg CRDC8 CRDRST CRDCLK 3/10 1 ST7SCR 2 PIN DESCRIPTION CRDVCC GND GNDA DIODE SELF1 SELF2 PA5 PA4 NC NC LED3 LED2 LED1 VDD VDDA USBVcc Figure 2. 64-Pin TQFP Package Pinout 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 2 1 3 4 5 6 7 8 9 10 11 46 45 44 43 42 41 40 39 38 37 12 36 13 35 14 34 15 33 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 CRDDET VDD WAKUP2/ICCDATA/PA0 WAKUP2/ICCCLK/PA1 WAKUP2/PA2 WAKUP2/PA3 PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7 OSCIN OSCOUT CRDRST NC CRDCLK NC C4 CRDIO C8 GND PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 NC = Not Connected 4/10 1 NC DP DM LED0 PA6 V PP PC7/WAKUP1 PC6/WAKUP1 PC5/WAKUP1 PC4/WAKUP1 PC3/WAKUP1 PC2/WAKUP1 PC1/WAKUP1 PC0/WAKUP1 GND VDD ST7SCR PIN DESCRIPTION (Cont'd) Figure 3. 24-Pin SO Package Pinout 24 C8 CRDDET 1 2 3 4 5 6 7 8 9 10 ICCDATA/WAKUP2/PA0 11 14 ICCCLK/WAKUP2/PA1 12 13 DIODE GNDA GND CRDVCC CRDRST CRDCLK C4 CRDIO SELF 23 VDD 22 VDDA 21 20 USBVcc DP 19 DM 18 17 LED0 PA6 16 VPP 15 OSCOUT OSCIN NC 5/10 1 ST7SCR PIN DESCRIPTION (Cont'd) Legend / Abbreviations: Type: I = input, O = output, S = supply In/Output level: CT = CMOS 0.3VDD/0.7VDD with input trigger Output level: HS = 10mA high sink (on N-buffer only) Port and control configuration: - Input:float = floating, wpu = weak pull-up, int = interrupt, ana = analog - Output: OD = open drain, T = true open drain, PP = push-pull 2 3 CRDRST O CT X PP OD int Port / Control Input Output wpu Output 5 Pin Name Input SO24 1 Level Type TQFP64 Pin n V CARD supplied Table 1. Pin Description X NC 6 4 CRDCLK Main Function (after reset) Smartcard Reset Not Connected CT X O X NC Smartcard Clock Not Connected 5 7 C4 O 6 8 CRDIO I/O 7 9 C8 O 8 3 GND S 9 PB0 O CT X X Port B0 1) 10 PB1 O CT X X Port B1 1) 11 PB2 O CT X X Port B2 1) 12 PB3 O CT X X Port B3 1) 13 PB4 O CT X X Port B4 1) 14 PB5 O CT X X Port B5 1) 15 PB6 O CT X X Port B6 1) 16 PB7 O CT X X Port B7 1) 17 10 CRDDET I 18 S VDD PA0/WAKUP2/ ICCDATA PA1/WAKUP2/ 20 12 ICCCLK 19 11 21 22 PA2/WAKUP2 PA3/WAKUP2 CT X CT X X X X CT X Smartcard C4 Smartcard I/O X Smartcard C8 Ground CT X Smartcard Detection Power Supply voltage 4V-5.5V Interrupt, In-Circuit Communication Data Input Interrupt, In-Circuit Communication Clock Input I/O CT X X X X Port A0 I/O CT X X X X Port A1 I/O CT X X X X Port A2 1) Interrupt X Port A3 1) Interrupt 1) I/O CT X X X 23 PD0 O CT X X Port D0 24 PD1 O CT X X Port D1 1) 6/10 1 Alternate Function Port / Control Input Output 25 PD2 O CT X X Port D2 1) 26 PD3 O CT X X Port D3 1) 27 PD4 O CT X X Port D4 1) 28 PD5 O CT X X Port D5 1) 29 PD6 O CT X X Port D6 1) 30 PD7 O CT X X Port D7 1) 31 14 OSCIN int PP Main Function (after reset) OD wpu Output Type SO24 TQFP64 Pin Name Input Level Pin n VCARD supplied ST7SCR Input/Output Oscillator pins. These pins connect a 4MHz parallel-resonant crystal, or an external source to the on-chip oscillator. CT 32 15 OSCOUT Alternate Function CT 33 VDD S Power Supply voltage 4V-5.5V 34 GND S Ground 35 PC0/WAKUP1 I CT X X PC0 1) External interrupt 1) External interrupt 36 PC1/WAKUP1 I CT X X PC1 37 PC2/WAKUP1 I CT X X PC2 1) External interrupt 38 PC3/WAKUP1 I CT X X PC3 1) External interrupt X PC4 1) External interrupt PC5 1) External interrupt PC6 1) External interrupt PC7 1) External interrupt 39 40 41 42 PC4/WAKUP1 PC5/WAKUP1 PC6/WAKUP1 PC7/WAKUP1 I I I I X CT CT X X CT CT X X X X Flash programming voltage. Must be held low in normal operating mode. 43 16 VPP S 44 17 PA6 I 45 18 LED0 O 46 19 DM I/O CT USB Data Minus line 47 20 DP I/O CT USB Data Plus line 48 CT PA6 HS X NC Constant Current Output Not Connected 49 21 USBVCC O CT 50 22 VDDA S power Supply voltage 4V-5.5V 51 23 VDD S power Supply voltage 4V-5.5V 52 LED1 O HS X Constant Current Output 53 LED2 O HS X Constant Current Output 54 LED3 O HS X Constant Current Output 55 NC Not Connected 56 NC Not Connected 3.3 V Output for USB 7/10 OD PP Main Function (after reset) int Port / Control Input Output wpu Output Type SO24 TQFP64 Pin Name Input Level Pin n VCARD supplied ST7SCR 57 PA4 I/O CT X X X X Port A4 58 PA5 I/O CT X X X X Port A5 59 24 SELF2 O CT 60 24 SELF1 O CT 61 1 DIODE S CT 62 2 GNDA S 63 3 GND S 64 4 CDRVCC O An External inductance must be connected to these pins for the step up converter An External diode must be connected to this pin for the step up converter Ground Note 1: Keyboard interface 8/10 CT X Alternate Function Smartcard Supply pin ST7SCR 3 PACKAGE CHARACTERISTICS 3.1 PACKAGE MECHANICAL DATA Figure 4. 64-Pin Plastic Quad Flat Package D D1 D2 A A2 A1 b e E2 E1 E Dim. mm Min A L Min 0.50 0.010 0.020 2.50 b 0.29 0.45 0.011 c 0.11 0.23 0.004 2.90 0.098 0.106 0.114 0.018 0.009 D 17.20 0.677 D1 14.00 0.551 D2 12.00 0.472 E 17.20 0.677 E1 14.00 0.551 E2 12.00 0.472 0.80 0.73 0.88 Max 0.134 0.25 2.70 Typ 3.40 A2 L c inches Max A1 e 1.60 mm Typ 0.031 1.03 0.029 0.035 0.041 Number of Pins 0x- 7x N 64 Figure 5. 24-Pin Plastic Small Outline Package, 300-mil Width Dim. D h x 45 x L A C A1 a B e mm Min H inches Max Min Typ Max A 2.35 2.65 0.093 0.104 A1 0.10 0.30 0.004 0.012 B 0.33 0.51 0.013 0.020 C 0.23 0.32 0.009 0.013 D 15.20 15.60 0.599 0.614 E 7.40 e E Typ 7.60 0.291 1.27 0.299 0.050 H 10.00 10.65 0.394 0.419 h 0.25 0.75 0.010 0.030 0 L 0.40 8 0 8 1.27 0.016 0.050 Number of Pins N Dim. Jedec Ref. MS- 24 mm Min Typ inches Max Min Typ Max 9/10 ST7SCR Notes: Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without the express written approval of STMicroelectronics. The ST logo is a registered trademark of STMicroelectronics 2002 STMicroelectronics - All Rights Reserved. Purchase of I2 C Components by STMicroelectronics conveys a license under the Philips I2C Patent. Rights to use these components in an I2C system is granted provided that the system conforms to the I2C Standard Specification as defined by Philips. STMicroelectronics Group of Companies Australia - Brazil - Canada - China - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - U.S.A . http:// www.st.com 10/10