DS2250 MAXIM | Alldatasheet

Document overview

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

Technical content

1 of 18 REV: 060906

DESCRIPTION

The DS2250(T) soft microcontroller module is a fully 8051-compatible 8-bit CMOS microcontroller that offers “softness” in all aspects of its application. This is accomplished through the comprehensive use of nonvolatile technology to preserve all information in the absence of system V CC. The internal program/data memory space is implemented using 8, 32, or 64kbytes of nonvolatile CMOS SRAM. Furthermore, internal data registers and key configuration registers are also nonvolatile. An optional real-time clock gives permanently powered timekeeping. The clock keeps time to a hundredth of a second using an on-board crystal. All nonvolatile memory and resources are maintained for over 10 years at room temperature in the absence of power. PIN CONFIGURATION

FEATURES

ƒ 8-Bit 8051-Compatible Microcontroller Adapts to Task-At-Hand 8, 32, or 64kbytes of Nonvolatile RAM for Program and/or Data Memory Storage Initial Downloading of Software in End System via On-Chip Serial Port Capable of Modifying its Own Program and/or Data Memory in End Use ƒ High-Reliability Operation Maintains All Nonvolatile Resources Up to 10 Years in the Absence of VCC at Room Temperature Power-Fail Reset Early Warning Power-Fail Interrupt Watchdog Timer ƒ Software Security Feature Executes Encrypted Software to Prevent Unauthorized Disclosure ƒ On-Chip, Full-Duplex Serial I/O Ports ƒ Two On-Chip Timer/Event Counters ƒ 32 Parallel I/O Lines ƒ Compatible with Industry Standard 8051 Instruction Set ƒ Permanently Powered Real-Time Clock Operating information is contained in the Secure Microcontroller User’s Guide. This data sheet provides ordering information, pinout, and electrical specifications.

ORDERING INFORMATION

PART RAM SIZE (kB) MAX CRYSTAL SPEED (MHz) TIMEKEEPING? DS2250-32-16 32 16 No DS2250-32-16+ 32 16 No DS2250-64-16 64 16 No DS2250-64-16# 64 16 No DS2250T-32-16 32 16 Yes DS2250T-32-16+ 32 16 Yes DS2250T-64-16 64 16 Yes DS2250T-64-16+ 64 16 Yes + Denotes lead-free/RoHS-compliant package # Denotes RoHS-compliant device that may contain lead exempt under the RoHS requirements. DS2250(T) Soft Microcontroller Module www.maxim-ic.com 1 20 21 40 40-Pin SIMM DS2250(T)

DS2250(T) 2 of 18 DS2250(T) BLOCK DIAGRAM Figure 1

DS2250(T) 3 of 18 PIN DESCRIPTION PIN DESCRIPTION 1, 3, 5, 7, 9, 11, 13, 15 P1.0 - P1.7. General purpose I/O Port 1 RST - Active high reset input. A logic 1 applied to this pin will activate a reset state. This pin is pulled down internally so this pin can be left unconnected if not used. An RC power-on reset circuit is not needed and is not recommended. 19 P3.0 RXD. General purpose I/O port pin 3.0. Also serves as the receive signal for the on board UART. This pin should not be connected directly to a PC COM port. 21 P3.1 TXD. General purpose I/O port pin 3.1. Also serves as the transmit signal for the on board UART. This pin should not be connected directly to a PC COM port. 23 P3.2 INT0 . General purpose I/O port pin 3.2. Also serves as the active low External Interrupt 0. 25 P3.3 INT1 . General purpose I/O port pin 3.3. Also serves as the active low External Interrupt 1. 31 P3.6 WR . General purpose I/O port pin. Also serves as the write strobe for Expanded bus operation. 33 P3.7 RD . General purpose I/O port pin. Also serves as the read strobe for Expanded bus operation. 35, 37 XTAL2, XTAL1. Used to connect an external crystal to the internal oscillator. XTAL1 is the input to an inverting amplifier and XTAL2 is the output. 39 GND - Logic ground. 26, 28, 30, 32, 34, 36, 38, 40 P2.7-P2.0. General purpose I/O Port 2. Also serves as the MSB of the Expanded Address bus. PSEN - Program Store Enable. This active low signal is used to enable an external program memory when using the Expanded bus. It is normally an output and should be unconnected if not used. PSEN also is used to invoke the Bootstrap Loader. At this time, PSEN will be pulled down externally. This should only be done once the DS2250(T) is already in a reset state. The device that pulls down should be open-drain since it must not interfere with PSEN under normal operation. ALE - Address Latch Enable. Used to de-multiplex the multiplexed Expanded Address/Data bus on Port 0. This pin is normally connected to the clock input on a ’373 type transparent latch. When using a parallel programmer, this pin also assumes the PROG function for programming pulses. EA - External Access. This pin forces the DS2250(T) to behave like an 8031. No internal memory (or clock) will be available when this pin is at a logic low. Since this pin is pulled down internally, it should be connected to +5V to use NV RAM. In a parallel programmer, this pin also serves as VPP for super voltage pulses. 4, 6, 8, 10, 12, 14, 16, 18 P0.0-P0.7. General purpose I/O Port 0. This port is open-drain and can not drive a logic 1. It requires external pullups. Port 0 is also the multiplexed Expanded Address/Data bus. When used in this mode, it does not require pullups. 2 VCC + - 5 volts.

DS2250(T) 4 of 18 INSTRUCTION SET The DS2250(T) executes an instruc tion set which is object code-compa tible with the i ndustry standard 8051 microcontroller. As a result, software developm ent packages which have been written for the 8051 are compatible with the DS2250(T), including cross- assemblers, high-level language compilers, and debugging tools. Note that the DS2 250(T) is functionally id entical to the DS5000(T) except for package and the 64k memory option. A complete description for the DS2250(T) instruction set is available in the Secure Microcontroller User’s Guide. MEMORY ORGANIZATION Figure 2 illustrates the address spaces which are acces sed by the DS2250(T). As illustrated in the figure, separate address spaces exist for program and data memory. Since the basic addressing capability of the machine is 16 bits, a maximum of 64 kbytes of progr am memory and 64 kbytes of data memory can be accessed by the DS2250(T) CPU. The 8- or 32-kbyte RAM area inside of the DS 2250(T) can be used to contain both program and data memory. A second 32k RAM is available for data only. The Real Time Clock (RTC) in the DS2250(T) is reach ed in the memory map by setting a SFR bit. The MCON.2 bit (ECE2) is used to select an alternat e data memory map. While ECE2=1, all MOVXs will be routed to this alternate memory map. The real time clock is a serial devi ce that resides in this area. A full description of the RTC access and example software is given in the Secure Microcontroller User’s Guide. DS2250(T) MEMORY MAP Figure 2 DATA MEMORY (MOVX)

DS2250(T) 5 of 18 PROGRAM LOADING The Program Load Modes allow initialization of th e NV RAM Program/Data Memory. This initialization may be performed in one of two ways: 1. Serial Program Loading which is capable of pe rforming Bootstrap Loadi ng of the DS2250(T). This feature allows the loading of the application program to be delayed until the DS2250(T) is installed in the end system. 2. Parallel Program Load cycles which perform the init ial loading from parallel address/data information presented on the I/O port pins. This mode is timin g set-compatible with the 87C51H microcontroller programming mode. The DS2250(T) is placed in its Pr ogram Load configuration by simulta neously applying a logic 1 to the RST pin and forcing the PSEN line to a logic 0 level. Immediat ely following this action, the DS2250(T) will look for a parallel Program Load pulse, or a serial ASCII carriage re turn (0DH) character received at 9600, 2400, 1200, or 300 bps over the serial port. The hardware configurations used to select these modes of operation are illustrated in Figure 3. PROGRAM LOADING CONFIGURATIONS Figure 3

DS2250(T) 6 of 18 SERIAL BOOTSTRAP LOADER The Serial Program Load Mode is the easiest, fastest, most reliab le, and most complete method of initially loading application software into the DS2250(T) nonvolatile RAM. Communication can be performed over a standard asynchr onous serial communications port. A typical application would use a simple RS232C serial interface to program the DS2250( T) as a final production procedure. The hardware configuration which is required for th e Serial Program Load Mode is illu strated in Figure 3. Port pins 2.7 and 2.6 must be either open or pulled high to avoid pl acing the device in a para llel load cycle. Although an 11.0592 MHz crystal is shown in Fi gure 3, a variety of crystal freque ncies and loader baud rates are supported, shown in Table 2. The seri al loader is designed to operate across a 3-wire interface from a standard UART. The receive, transmit, and ground wires are all that are necessary to establish communication with the DS2250(T). The Serial Bootstrap Loader implements an eas y-to-use command line interface which allows an application program in an Intel hex representation to be loaded into an d read back from the device. Intel hex is the typical format which existing 8051 cross-a ssemblers output. The serial loader responds to single character commands which are summarized below: COMMAND F U N C T I O N C Return CRC-16 checksum of embedded RAM D Dump Intel hex File F Fill embedded RAM block with constant K Load 40-bit encryption key L Load Intel hex file R Read MCON register T Trace (Echo) incoming Intel hex data U Clear Security Lock V Verify Embedded RAM with incoming Intel hex W Write MCON register Z Set security lock P Put a value to a port G Get a value from a port Table 1 summarizes the selection of the available Pa rallel Program Load cycles. The timing associated with these cycles is illustrated in the electrical specs. PARALLEL PROGRAM LOAD CYCLES Table 1 MODE RST PSEN PROG EA P2.7 P2.6 P2.5 Program 1 0 0 V PP 1 0 X Security Set 1 0 0 V PP 1 1 X Verify 1 X X 1 0 0 X Prog Expanded 1 0 0 V PP 0 1 0 Verify Expanded 1 0 1 1 0 1 0 Prog MCON or Key registers 1 0 0 V PP 0 1 1 Verify MCON registers 1 0 1 1 0 1 1

DS2250(T) 7 of 18 The Parallel Program cycle is used to load a byte of data into a register or memory location within the DS2250(T). The Verify cycle is used to read this byte back for compar ison with the originally loaded value to verify proper loading. The Security Set cycle may be used to enable a nd the software security feature. One may also enter bytes for the MCON regist er or for the five encryption registers using the Program MCON cycle. When using this cycle, the absolu te register address must be presented at Ports 1 and 2 as in the normal program cycle (Port 2 s hould be 00H). The MCON contents can likewise be verified using the Verify MCON cycle. When the DS2250(T) first detects a Para llel Program Strobe pulse or a S ecurity Set Strobe pulse while in the Program Load Mode following a power-on reset, the in ternal hardware of the device is initialized so that an existing 4-kbyte program can be programmed into a DS2250(T) with little or no modification. This initialization automatically se ts the range address for 8 kbytes an d maps the lowest 4-kbyte bank of embedded RAM as program memory. The next 4 kbytes of embedded RAM are mapped as data memory. In order to program more than 4 kbytes of program code, the Progr am/Verify Expanded cycles can be used. Up to 32 kbytes of program code can be entered and verified. Note th at the expanded 32 kbyte Program/Verify cycles take much longer than the normal 4 kbyte Program/Verify cycles. A typical parallel loadi ng session would follow this procedure. First, set the contents of the MCON register with the correct range and partition onl y if using expanded progr amming cycles. Next, the encryption registers can be loaded to enable encryption of the program/data memory (not required). Then, program the DS2250(T) using either normal or expande d program cycles and check the memory contents using Verify cycles. The last operation would be to tu rn on the security lock f eature by either a Security Set cycle or by explicitly writing to the MCON register and setting MCON.0 to a 1. SERIAL LOADER BAUD RATES FOR DIFFERENT CRYSTAL FREQUENCIES Table 2 BAUD RATE CRYSTAL FREQ (MHz) 300 1200 2400 9600 19200 57600

14.7456 Y Y Y Y

11.0592 Y Y Y Y Y Y

9.21600 Y Y Y Y

7.37280 Y Y Y Y

5.52960 Y Y Y Y

1.84320 Y Y Y Y

A complete description for all operational aspect s of the DS2250(T) is provided in the Secure Microcontroller User’s Guide. DEVELOPMENT SUPPORT The DS89C450-K00 evaluation kit can be used to develo p and test user code. It allows the user to download Intel hex formatted code to the DS2250(T) from a PC. The user must purchase the DS2250 and DS9072-40V mechanical adapter separately. Refer to the Secure Microcontroller User’s Guide for further details.

DS2250(T) 8 of 18 ABSOLUTE MAXIMUM RATINGS This is a stress rating only and functional ope ration of the device at these or any ot her conditions above those indicated in t he operation sections of this specification is not im plied. Exposure to absolute maximum rating conditions for extended periods of time may affect reliability. DC CHARACTERISTICS (VCC = 5V ±5%, TA = 0°C to +70°C.) PARAMETER SYMBOL MIN TYP MAX UNITS NOTES Input Low Voltage V IL -0.3 +0.8 V 1 Input High Voltage V IH1 2.0 V CC+0.3 V 1 Input High Voltage RST, XTAL1 V IH2 3.5 V CC+0.3 V 1 Output Low Voltage @ IOL=1.6 mA (Ports 1, 2, 3) VOL1 0.15 0.45 V Output Low Voltage @ IOL=3.2 mA (Ports 0, ALE, PSEN ) VOL2 0.15 0.45 V 1 Output High Voltage @ IOH=-80 µA (Ports 1, 2, 3) VOH1 2.4 4.8 V 1 Output High Voltage @ IOH=-400 µA (Ports 0, ALE, PSEN ) VOH2 2.4 4.8 V 1 Input Low Current VIN = 0.45V (Ports 1, 2, 3) IIL -50 µA Transition Current; 1 to 0 VIN=2.0V (Ports 1, 2, 3) ITL -500 µA Input Leakage Current 0.45 < VIN < VCC (Port 0) IL ±10 µA RST, EA Pulldown Resistor RRE 40 125 kΩ Stop Mode Current I SM 80 µA 4 Power Fail Warning Voltage V PFW 4.15 4.6 4.75 V 1 Minimum Operating Voltage V CCmin 4.05 4.5 4.65 V 1 Programming Supply Voltage (Parallel Program Mode) VPP 12.5 13 V 1 Program Supply Current I PP 15 20 mA Operating Current DS2250-8k DS2250-32k @ 12 MHz DS2250(T)-64-16 @ 16 MHz ICC 43 mA 2 Idle Mode Current @ 8 MHz I CC 6.2 mA 3

DS2250(T) 9 of 18 AC CHARACTERISTICS—EXPANDED BUS MODE TIMING SPECIFICATIONS (VCC = 5V ±5%, TA = 0°C to +70°C.) # PARAMETER SYMBOL MIN MAX UNITS 1 Oscillator Frequency 1/t CLK 1.0 16 (-16) MHz

2 ALE Pulse Width t ALPW 2tCLK -40 ns

3 Address Valid to ALE Low t AVALL tCLK -40 ns

4 Address Hold After ALE Low t AVAAV tCLK -35 ns

5 ALE Low to Valid Instr. In @ 12 MHz @ 16 MHz tALLVI 4t CLK -150 4tCLK -90 ns

6 ALE Low to PSEN Low tALLPSL tCLK -25 ns

7 PSEN Pulse Width tPSPW 3tCLK -35 ns

8 PSEN Low to Valid Instr. In @ 12 MHz @ 16 MHz tPSLVI 3t CLK -150 3tCLK -90 ns ns 9 Input Instr. Hold after PSEN Going High tPSIV 0 ns 10 Input Instr. Float after PSEN Going High tPSIX t CLK -20 ns

11 Address Hold after PSEN Going High tPSAV tCLK -8 ns

12 Address Valid to Valid Instr. In @ 12 MHz @ 16 MHz tAVVI 5t CLK -150 5tCLK -90 ns ns

13 PSEN Low to Address Float tPSLAZ 0 ns

14 RD Pulse Width tRDPW 6tCLK -100 ns

15 WR Pulse Width tWRPW 6tCLK -100 ns

16 RD Low to Valid Data In @ 12 MHz

@ 16 MHz tRDLDV 5t CLK -165 5tCLK -105 ns ns

17 Data Hold after RD High tRDHDV 0 ns

18 Data Float after RD High tRDHDZ 2t CLK -70 ns

19 ALE Low to Valid Data In @ 12 MHz

@ 16 MHz tALLVD 8 CLK -150 8tCLK -90 ns ns 20 Valid Addr. to Valid Data In @ 12 MHz @ 16 MHz tAVDV 9t CLK -165 9tCLK -105 ns ns

21 ALE Low to RD or WR Low tALLRDL 3tCLK -50 3t CLK +50 ns

22 Address Valid to RD or WR Low tAVRDL 4tCLK -130 ns

23 Data Valid to WR Going Low tDVWRL tCLK -60 ns

24 Data Valid to WR High @ 12 MHz

@ 16 MHz tDVWRH 7tCLK -150 7tCLK -90 ns ns

25 Data Valid after WR High tWRHDV tCLK -50 ns

26 RD Low to Address Float tRDLAZ 0 ns

27 RD or WR High to ALE High tRDHALH tCLK -40 t CLK +50 ns

DS2250(T) 10 of 18 EXPANDED PROGRAM MEMORY READ CYCLE EXPANDED DATA MEMORY READ CYCLE

DS2250(T) 11 of 18 EXPANDED DATA MEMORY WRITE CYCLE EXTERNAL CLOCK TIMING

DS2250(T) 12 of 18 AC CHARACTERISTICS—EX TERNAL CLOCK DRIVE (VCC = 5V ±5%, TA = 0°C to +70°C.) # PARAMETER SYMBOL MIN MAX UNITS

28 External Clock High Time @ 12 MHz

@ 16 MHz tCLKHPW 20 ns ns

29 External Clock Low Time @ 12 MHz

@ 16 MHz tCLKLPW 20 ns ns

30 External Clock Rise Time @ 12 MHz

@ 16 MHz tCLKR 20 ns ns

31 External Clock Fall Time @ 12 MHz

@ 16 MHz tCLKF 20 ns ns AC CHARACTERISTICS—SERIAL PORT TIMING: MODE 0 (VCC = 5V ±5%, TA = 0°C to +70°C.) # PARAMETER SYMBOL MIN MAX UNITS

35 Serial Port Cycle Time t SPCLK 12tCLK µs

36 Output Data Setup to Rising Clock Edge t DOCH 10tCLK -133 ns

37 Output Data Hold after Rising Clock Edge t CHDO 2tCLK -117 ns

38 Clock Rising Edge to Input Data Valid t CHDV 10t CLK -133 ns

39 Input Data Hold afte r Rising Clock Edge t CHDIV 0 ns

SERIAL PORT TIMING: MODE 0

DS2250(T) 13 of 18 AC CHARACTERISTICS—PO WER CYCLING TIMING (VCC = 5V ±5%, TA = 0°C to +70°C.) # PARAMETER SYMBOL MIN MAX UNITS 32 Slew Rate from V CCmin to 3.3V t F 40 µs

33 Crystal Start-up Time t CSU (Note 5)

34 Power-On Reset Delay t POR 21504 t CLK

DS2250(T) 14 of 18 AC CHARACTERISTICS—PARALL EL PROGRAM LOAD TIMING (VCC = 5V ±5%, TA = 0°C to +70°C.) # PARAMETER SYMBOL MIN MAX UNITS 40 Oscillator Frequency 1/t CLK 1.0 12.0 MHz

41 Address Setup to PROG Low tAVPRL 0

42 Address Hold after PROG High tPRHAV 0

43 Data Setup to PROG Low tDVPRL 0

44 Data Hold after PROG High tPRHDV 0

45 P2.7, 2.6, 2.5 Setup to V PP tP27HVP 0

46 VPP Setup to PROG Low tVPHPRL 0

47 VPP Hold after PROG Low tPRHVPL 0

48 PROG Width Low tPRW 2400 t CLK

49 Data Output from Address Valid t AVDV 48

1800* tCLK 50 Data Output from P2.7 Low t DVP27L 48 1800* tCLK 51 Data Float after P2.7 High t P27HDZ 0 48 1800* tCLK

52 Delay to Reset/ PSEN Active after Power On tPORPV 21504 t CLK

53 Reset/ PSEN Active (or Verify Inactive) to

54 V PP Inactive (Between Program Cycles) t VPPPC 1200 t CLK

55 Verify Active Time t VFT 48

2400* t CLK *Second set of numbers refers to expanded memory programming up to 32kbytes.

DS2250(T) 15 of 18 PARALLEL PROGRAM LOAD TIMING CAPACITANCE (Test Frequency = 1MHz, TA = +25°C.) PARAMETER SYMBOL MIN TYP MAX UNITS NOTES Output Capacitance C O 10 pF Input Capacitance C I 10 pF

DS2250(T) 16 of 18 DS2250(T) TYPICAL ICC VS. FREQUENCY FREQUENCY OF OPERATION (MHz) (VCC = +5V, TA =+25°C) NOTES: 1. All voltages are referenced to ground. 2. Maximum operating I CC is measured with all output pins disconnected; XTAL1 driven with t CLKR, tCLKF = 10 ns, VIL = 0.5V; XTAL2 disconnected; EA = RST = PORT0 = VCC. 3. Idle mode I CC is measured with all output pins disc onnected; XTAL1 driven at 8 MHz with t CLKR, tCLKF = 10 ns, VIL = 0.5V; XTAL2 disconnected; EA = PORT0 = VCC, RST = VSS. 4. Stop mode I CC is measured with all output pins disconnected; EA = PORT0 = V CC; XTAL2 not connected; RST = VSS. 5. Crystal start-up time is the time required to get the mass of the crystal into vibrational motion from the time that power is first applied to the circuit until the first clock pulse is produced by the on-chip oscillator. The user should check with the crystal vendor for the worst-case spec on this time. NORMAL OPERATION IS MEASURED USING: 1) EXTERNAL CRYSTALS ON XTAL1 AND 2. 2) ALL PORT PINS DISCONNECTED. 3) RST = 0V AND EA = V CC. 4) PART PERFORMING ENDLESS LOOP WRITING TO INTERNAL MEMORY. IDLE MODE OPERATION IS MEASURED USING: 1) EXTERNAL CLOCK SOURCE AT XTAL1; XTAL2 FLOATING. 2) ALL PORT PINS DISCONNECTED. 3) RST = 0V AND EA = VCC. 4) PART SET IN IDLE MODE BY SOFTWARE.

DS2250(T) 17 of 18 PACKAGE DRAWING PKG INCHES DIM MIN MAX A 2.645 2.655 B 2.379 2.389 C 0.845 0.855 D 0.395 0.405 E 0.245 0.255 F 0.050 BSC G 0.075 0.085 H 0.245 0.255 I 0.950 BSC J 0.120 0.130 K 1.320 1.330 L 1.445 1.455 M 0.057 0.067 N - 0.160 O - 0.195 P 0.047 0.054

DS2250(T) 18 of 18 Maxim/Dallas Semiconductor cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim/Dallas Semiconductor product. No circuit patent licenses are implied. Maxim/Dallas Semiconductor reserves the right to change the circuitry and specifications without notice at any time. Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600 © 2006 Maxim Integrated Products • Printed USA The Maxim logo is a registered trademark of Maxim Integrated Products, Inc. The Dallas logo is a registered trademark of Dallas Semiconductor Corporation. DATA SHEET REVISION SUMMARY The following represent the key differences betw een 12/13/95 and 08/16/96 vers ion of the DS2250(T) data sheet. Please review this summary carefully. 1. Correct Figure 3 to show RST active high. 2. Add minimum value to PCB thickness. The following represent the key differences betw een 11/20/99 and 06/09/06 vers ion of the DS2250(T) data sheet. Please review this summary carefully. 1. Updated reference (Features) to 10-year NV RAM data life to include room temperature caveat. 2. Added lead-free package information to the Ordering Information table. 3. Removed 8kB package versions from Ordering Information table. 4. Removed references to “Secure Microcontro ller Data Book” and changed them to “Secure Microcontroller User’s Guide.” 5. Removed references to DS5000TK.