![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
1 of 47 rev: 071107 note: some revisions of this device may incor porate deviations from published specifications known as erra ta. multiple revisions of any device may be simultaneously available through various sales channel s. for information about device errata, click here: www.maxim-ic.com/errata . features 80c52 compatible 8051 instruction-set compatible four 8-bit i/o ports three 16-bit timer/counters 256 bytes scratchpad ram large on-chip memory 16kb eprom (otp) 1kb extra on-chip sram for movx romsize features selects effective on-chip rom size from 0 to 16kb allows access to entire external memory map dynamically adjustable by software useful as boot block for external flash nonvolatile functions on-chip real-time clock with alarm interrupt battery backup support of 1kb sram high-speed architecture 4 clocks/machine cycle (8051 = 12) runs dc to 33mhz clock rates single-cycle instruction in 121ns dual data pointer optional variable length movx to access fast/slow ram /peripherals power management mode programmable clock source saves power runs from (crystal/64) or (crystal/1024) provides automatic hardware and software exit emi reduction mode disables ale two full-duplex hardware serial ports high integration controller includes: power-fail reset early-warning power-fail interrupt programmable watchdog timer 14 total interrupt sources with six external pin configurations dallas ds87c530 ds83c530 34 46 20 8 7 1 47 21 33 plcc, windowed clcc dallas ds87c530 ds83c530 39 27 1 13 26 40 14 52 tqfp top view www.maxim-ic.com ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock the high-speed microcontroller user?s guide must be used in conjunction with this data sheet. download it at: www.maxim-ic.com/microcontrollers .
ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 2 of 47 ordering information part temp range max clock speed (mhz) pin-package ds87c530 -qcl 0 c to +70 c 33 52 plcc ds87c530 - qcl+ 0 c to +70 c 33 52 plcc ds87c530-qnl -40 c to +85 c 33 52 plcc ds87c530-qnl+ -40 c to +85 c 33 52 plcc ds87c530-kcl* 0 c to +70 c 33 52 windowed clcc ds87c530-ecl 0 c to +70 c 33 52 tqfp ds87c530-ecl+ 0 c to +70 c 33 52 tqfp ds87c530-enl -40 c to +85 c 33 52 tqfp ds87c530-enl+ -40 c to +85 c 33 52 tqfp ds83c530 -qcl 0 c to +70 c 33 52 plcc ds83c530-qcl+ 0 c to +70 c 33 52 plcc ds83c530-qnl -40 c to +85 c 33 52 plcc ds83c530-qnl+ -40 c to +85 c 33 52 plcc ds83c530-ecl 0 c to +70 c 33 52 tqfp ds83c530-ecl+ 0 c to +70 c 33 52 tqfp ds83c530-enl -40 c to +85 c 33 52 tqfp ds83c530-enl+ -40 c to +85 c 33 52 tqfp + denotes a pb-free/rohs -compliant device. * the windowed ceramic lcc package is intrinsically pb free. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 3 of 47 detailed description the ds87c530/ds83c530 eprom/rom microcontrollers with a real-time clock (rtc) are 8051- compatible microcontrollers based on the dallas semic onductor high-speed core. they use 4 clocks per instruction cycle instead of the 12 used by the standard 8051. they also provide a unique mix of peripherals not widely available on other processors . they include an on-chip rtc and battery backup support for an on-chip 1k x 8 sram. the new power management mode allows software to select reduced power operation while still processing. a combination of high-performance microcontro ller core, rtc, battery-backed sram, and power management makes the ds87c530/ds83c 530 ideal for instruments and porta ble applications. they also provide several periphera ls found on other dallas high-speed microcontrollers. these include two independent serial ports, two data pointers, on-chip power monito r with brownout detection and a watchdog timer. power management mode (pmm) allows software to select a slower cpu cloc k. while default operation uses four clocks per machine cycle, the pmm runs the processor at 64 or 1024 clocks per cycle. there is a corresponding drop in power consump tion when the processor slows. the emi reduction feature allows software to select a reduced emission mode. this disables the ale signal when it is unneeded. the ds83c530 is a factory mask rom version of the ds87c530 designed fo r high-volume, cost- sensitive applications. it is identical in all respect s to the ds87c530, except that the 16kb of eprom is replaced by a user-supplied application program. all references to features of the ds87c530 will apply to the ds83c530, with the exception of eprom-specific features where noted. please contact your local dallas semiconductor sales representative for ordering information. note: the ds87c530/ds83c530 are monolithic devices. a user must supply an external battery or super cap and a 32.768khz timekeeping crystal to have pe rmanently powered timekeeping or nonvolatile ram. the ds87c530/ds83c530 provide all the support and switching circuitry needed to manage these resources. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 4 of 47 figure 1. block diagram pin description pin plcc tqfp name function 52 45 v cc +5v processor power supply 1, 25 18, 46 gnd processor digital circuit ground 29 22 v cc2 +5v rtc supply. v cc2 is isolated from v cc to isolate the rtc from digital noise. 26 19 gnd2 rtc circuit ground 12 5 rst reset input. this pin contains a schmitt voltage input to recognize external active high reset inputs. the pin also employs an internal pulldown resistor to allow for a combination of wired or external reset sources. an rc is not required for power-up, as the device provides this function internally. 23 16 xtal2 24 17 xtal1 crystal oscillator pins. xtal1 and xtal2 provide support for parallel-resonant, at-cut crystals. xtal1 acts also as an input if there is an external clock source in place of a crystal. xtal2 is the output of the crystal amplifier. ds87c530/ ds83c530 ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 5 of 47 pin description (continued) pin plcc tqfp name function 38 31 psen program store-enable output. this active-low signal is a chip enable for optional external rom memory. psen provides an active-low pulse and is driven high when external rom is not being accessed. 39 32 ale address latch-enable output. this pin latches the external address lsb from the multiplexed address/data bus on port 0. this signal is commonly connected to the latch enable of an external 373 family tr ansparent latch. ale has a pulse width of 1.5 xtal1 cycles and a period of four xt al1 cycles. ale is forced high when the device is in a reset condition. ale can be disabled and forced high by writing aleoff = 1 (pmr.2). ale operates independently of aleoff during external memory accesses. 50 43 p0.0 (ad0) 49 42 p0.1 (ad1) 48 41 p0.2 (ad2) 47 40 p0.3 (ad3) 46 39 p0.4 (ad4) 45 38 p0.5 (ad5) 44 37 p0.6 (ad6) 43 36 p0.7 (ad7) port 0 (ad0?ad7), i/o . port 0 is an open-drain, 8-bit, bidirectional i/o port. as an alternate function port 0 can function as the multiplexed address/data bus to access off-chip memory. during the time when ale is high, the lsb of a memory address is presented. when ale falls to a logic 0, the port transitions to a bidirectional data bus. this bus is used to read external rom and read/ write external ram memory or peripherals. when used as a memory bus, the port provides active high drivers. the reset condition of port 0 is tri-state. pullup resistors are required when using port 0 as an i/o port. 3 48 p1.0 4 49 p1.1 5 50 p1.2 6 51 p1.3 7 52 p1.4 8 1 p1.5 9 2 p1.6 10 3 p1.7 port 1, i/o . port 1 functions as both an 8-bit, bidirectional i/o port and an alternate functional interface for timer 2 i/o, new external interrupts, and new serial port 1. the reset condition of port 1 is with all bits at a logic 1. in this state, a weak pullup holds the port high. this condition also serves as an input mode, since any external circuit that writes to the port will overcome the weak pullup. when software writes a 0 to any port pin, the device will activate a strong pulldown that remains on until either a 1 is written or a reset occurs. writing a 1 after the port has been at 0 will cause a strong transition driver to turn on, followed by a weaker sustaining pullup. once the momentary strong dr iver turns off, the port agai n becomes the output high (and input) state. the alternate modes of port 1 are outlined as follows. port alternate function p1.0 t2 external i/o for timer/counter 2 p1.1 t2ex timer/counter 2 capture/reload trigger p1.2 rxd1 serial port 1 input p1.3 txd1 serial port 1 output p1.4 int2 external interrupt 2 (positive edge detect) p1.5 int3 external interrupt 3 (negative edge detect) p1.6 int4 external interrupt 4 (positive edge detect) p1.7 int5 external interrupt 5 (negative edge detect) ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 6 of 47 pin description (continued) pin plcc tqfp name function 30 23 p2.0 (ad8) 31 24 p2.1 (ad9) 32 25 p2.2 (ad10) 33 26 p2.3 (ad11) 34 27 p2.4 (ad12) 35 28 p2.5 (ad13) 36 29 p2.6 (ad14) 37 30 p2.7 (ad15) port 2 (a8?a15), i/o . port 2 is a bidirectional i/o port. the reset condition of port 2 is logic high. in this state, a weak pullup holds the port high. this condition also serves as an input mode, since any external circuit that writes to the port will overcome the weak pullup. when software writes a 0 to any port pin, the device will activate a strong pulldown that remains on until either a 1 is written or a reset occurs. writing a 1 after the port has been at 0 will cause a strong transition driver to turn on, followed by a weaker sustaining pullup. once the momentary strong driver turns off, the port again becomes both the output high and input state. as an alternate function port 2 can function as msb of the external address bus. this bus can be used to read external rom and read/write external ram memory or peripherals. 15 8 p3.0 16 9 p3.1 17 10 p3.2 18 11 p3.3 19 12 p3.4 20 13 p3.5 21 14 p3.6 22 15 p3.7 port 3, i/o. port 3 functions as both an 8-bit, bi-directional i/o port and an alternate functional interface for external interrupts, serial port 0, timer 0 and 1 inputs, and rd and wr strobes. the reset condition of port 3 is with all bits at a logic 1. in this state, a weak pullup holds the port high. this condition also serves as an input mode, since any external circuit that writes to the port will overcome the weak pullup. when software writes a 0 to any port pin, the device will activate a strong pulldown that remains on until either a 1 is written or a reset occurs. writing a 1 after the port has been at 0 will cause a strong transition driver to turn on, followed by a weaker sustaining pullup. once the momentary strong driver turns off, the port again becomes both the output high and input state. the alternate modes of port 3 are outlined below. port alternate function p3.0 rxd0 serial port 0 input p3.1 txd0 serial port 0 output p3.2 int0 external interrupt 0 p3.3 int1 external interrupt 1 p3.4 t0 timer 0 external input p3.5 t1 timer 1 external input p3.6 wr external data memory write strobe p3.7 rd external data memory read strobe 42 35 ea external access input, active low. connect to ground to use an external rom. internal ram is still accessible as determined by register settings. connect to v cc to use internal rom. 51 44 v bat v bat input. connect to the power source that maintains sram and rtc when v cc < v bat . can be connected to a 3v lithium battery or a super cap. connect to gnd if battery will not be used with device. 27 20 rtcx2 28 21 rtcx1 timekeeping crystals . a 32.768khz crystal between these pins supplies the time base for the rtc. the devices support both 6pf and 12.5pf load capacitance crystals as selected by an sfr bit (d escribed later). to prevent noise from affecting the rtc, the rtcx2 and rtcx1 pins should be guard-ringed with gnd2. 2, 11, 13, 14, 40, 41 4, 6, 7, 33, 34, 47 n.c. not connected. these pins should not be connected. they are reserved for use with future devices in the family. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 7 of 47 compatibility the ds87c530/ds83c530 are fully sta tic, cmos 8051-compatible microc ontrollers designed for high performance. while remaining familiar to 8051 users, th e devices have many new features. in general, software written for existing 8051-based sy stems works without modification on the ds87c530/ds83c530. the excepti on is critical timing since the high-s peed microcontrollers perform its instructions much faster than the original for any given crystal selecti on. the ds87c530/ds83c530 run the standard 8051 instruction set. they are not pin compatible with other 8051s due to the timekeeping crystal. the ds87c530/ds83c530 provide three 16-bit timer/counters, full-dupl ex serial port (2), 256 bytes of direct ram plus 1kb of extra movx ram. i/o por ts have the same opera tion as a standard 8051 product. timers will default to a 12 clock-per-cycle operation to keep their timing compatible with original 8051 systems. however, timers are individually programmable to run at the new 4 clocks per cycle if desired. the pca is not supported. the ds87c530/ds83c530 provide several new hardware features imp lemented by new special function registers. a summary of these sfrs is provided below. performance overview the ds87c530/ds83c530 featur e a high-speed, 8051-compatible core. higher speed comes not just from increasing the clock frequency, but al so from a newer, more efficient design. this updated core does not have the dummy memory cycles that are present in a standard 8051. a conventional 8051 generates machine cycles using the clock frequency divided by 12. in the ds87c530/ds83c530, the same machine cy cle takes 4 clocks. thus the fastest instruction, one machine cycle, executes three times faster for the same crystal frequency. note that these are identical instructions. the majority of instructions on the ds87c530/ds 83c530 will see the full 3-to-1 speed improvement. some instructions will get between 1.5 and 2.4 to 1 improvement. all instructions are faster than the original 8051. the numerical average of all opcodes gives approxima tely a 2.5 to 1 speed impr ovement. improvement of individual programs will depend on the actual instructions used. speed-sensitive applications would make the most use of instructions that are three times faster. however, the sheer number of 3 to 1 improved opcodes makes dramatic speed impr ovements likely for any code. these architecture improvements produce a peak instruction cycle in 121ns (8.25 mips). th e dual data pointer feature also allows the user to eliminate wasted instructions when moving blocks of memory. instruction set summary all instructions perform the same functions as thei r 8051 counterparts. their ef fect on bits, flags, and other status functions is identical. however, the timing of each instruction is different. this applies both in absolute and relativ e number of clocks. for absolute timing of real-time events, the timing of so ftware loops can be calculated using a table in the high-speed microcontroller user?s guide . however, counter/timers default to run at the older 12 clocks per increment. in this way, timer-based events occur at the standard intervals with software executing at higher speed. timers optionally can run at 4 clocks pe r increment to take advant age of faster processor operation. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 8 of 47 the relative time of two instructions might be different in the new architecture than it was previously. for example, in the original architecture, the ?movx a, @dptr? instruction and the ?mov direct, direct? instruction used two machine cycles or 24 oscillator cycles. therefore, they required the same amount of time. in the ds87c530/ds83c530, the movx instruction ta kes as little as two machine cycles or eight oscillator cycles but the ?mov direct, direct? uses three machine cycles or 12 oscillator cycles. while both are faster than their original counterparts, they now have differ ent execution times. this is because the ds87c530/ds83c530 usually use one instruction cycle for each instru ction byte. the user concerned with precise program timing should examine the timin g of each instruction for familiarity with the changes. note that a machine cycle now requires ju st 4 clocks, and provides one ale pulse per cycle. many instructions require only one cycle, but some requi re five. in the original architecture, all were one or two cycles except for mul and div. refer to the high-speed microcontroller user?s guide for details and individual instruction timing. special function registers special function registers (sfrs) control most special features of th e ds87c530/ds83c530. this allows the device to incorporate new features but remain instruction-set compatible with the 8051. equate statements can be used to define the new sfr to an assembler or compiler. all sfrs contained in the standard 80c52 are duplicated in this device. ta ble 1 shows the register addresses and bit locations. the high-speed microcontroller user?s guide describes all sfrs. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 9 of 47 table 1. special function register locations * functions not present in the 80c52 are in bold. register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 address p0 p0.7 p0.6 p0.5 p0.4 p0.3 p0.2 p0.1 p0.0 80h sp 81h dpl 82h dph 83h dpl1 84h dph1 85h dps 0 0 0 0 0 0 0 sel 86h pcon smod_0 smod0 ? ? gf1 gf0 stop idle 87h tcon tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 88h tmod gate c/ t m1 m0 gate c/ t m1 m0 89h tl0 8ah tl1 8bh th0 8ch th1 8dh ckcon wd1 wd0 t2m t1m t0m md2 md1 md0 8eh p1 p1.7 p1.6 p1.5 p1.4 p1.3 p1.2 p1.1 p1.0 90h exif ie5 ie4 ie3 ie2 xt/rg rgmd rgsl bgs 91h trim e4k x12/ 6 trm2 trm2 trm1 trm1 trm0 trm0 96h scon0 sm0/fe_0 sm1_0 sm2_0 ren_0 tb8_0 rb8_0 ti_0 ri_0 98h sbuf0 99h p2 p2.7 p2.6 p2.5 p2.4 p2.3 p2.2 p2.1 p2.0 a0h ie ea es1 et2 es0 et1 ex1 et0 ex0 a8h saddr0 a9h saddr1 aah p3 p3.7 p3.6 p3.5 p3.4 p3.3 p3.2 p3.1 p3.0 b0h ip ? ps1 pt2 ps0 pt1 px1 pt0 px0 b8h saden0 b9h saden1 bah scon1 sm0/fe_1 sm1_1 sm2_1 ren_1 tb8_1 rb8_1 ti_1 ri_1 c0h sbuf1 c1h romsize ? ? ? ? ? rms2 rms1 rms0 c2h pmr cd1 cd0 swb ? xtoff aleoff dme1 dme0 c4h status pip hip lip xtup spta1 spra1 spta0 spra0 c5h ta c7h t2con tf2 exf2 rclk tclk exen2 tr2 c/ t2 cp/ rl2 c8h t2mod ? ? ? ? ? ? t2oe dcen c9h rcap2l cah rcap2h cbh ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 10 of 47 table 1. special function regi ster locations (continued) * functions not present in the 80c52 are in bold. register bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 address tl2 cch th2 cdh psw cy ac f0 rs1 rs0 ov fl p d0h wdcon smod_1 por epfi pfi wdif wtrf ewt rwt d8h acc e0h eie ? ? ertci ewdi ex5 ex4 ex3 ex2 e8h b f0h rtass f2h rtas 0 0 f3h rtam 0 0 f4h rtah 0 0 0 f5h eip ? ? prtci pwdi px5 px4 px3 px2 f8h rtcc ssce sce mce hce rtcre rtcwe rtcif rtce f9h rtcss fah rtcs 0 0 fbh rtcm 0 0 fch rtch fdh rtcd0 feh rtcd1 ffh nonvolatile functions the ds87c530/ds83c530 provide two func tions that are permanently powered if a user supplies an external energy source. these are an on-chip rtc and a nonvolatile sram. the ch ip contains all related functions and controls. the user must supply a backup source and a 32.768khz timekeeping crystal. real-time clock the on-chip rtc keeps time of day and calendar f unctions. its time base is a 32.768khz crystal between pins rtcx1 and rtcx2. the rtc mainta ins time to 1/256 of a second. it also allows a user to read (and write) seconds, minutes, hours, day of the week, a nd date. figure 2 shows the clock organization. timekeeping registers allow easy access to commonly needed time values. for example, software can simply check the elapsed number of minutes by reading one register. alternately, it can read the complete time of day, including subseconds, in only four regist ers. the calendar stores its data in binary form. while this requires software transla tion, it allows complete flexibility as to the exact value. a user can start the calendar with a variety of selections sin ce it is simply a 16-bit binary number of days. this number allows a total range of 179 years beginning from 0000. the rtc features a programmable alarm condition. a us er selects the alarm time. when the rtc reaches the selected value, it sets a flag. this will cause an interrupt if enabled, even in stop mode. the alarm consists of a comparator that matches the user value against the rtc actual value. a user can select a match for 1 or more of the sub-seconds, seconds , minutes, or hours. this allows an interrupt ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 11 of 47 automatically to occur once per second, once per minute, once per hour, or once per day. enabling interrupts with no match will genera te an interrupt 256 times per second. software enables the timekeeper oscillator using the rtc enable bit in the rtc control register (f9h). this starts the clock. it can disable the oscillator to preserve the life of the backup energy-source if unneeded. values in the rtc control register are main tained by the backup source through power failure. once enabled, the rtc maintains time for the life of the backup source even when v cc is removed. the rtc will maintain an accuracy of 2 minutes per month at 25 c. under no circumstances are negative voltages, of any amplitude, allowed on any pin while the device is in data retention mode (v cc < v bat ). negative voltages will shorten battery life, possibly corrupting the contents of internal sram and the rtc. figure 2. real-time clock nonvolatile ram the 1k x 8 on-chip sram can be nonvolatile if an extern al backup energy source is used. this allows the device to log data or to store configuration settings. internal switching circuits will detect the loss of v cc and switch sram power to the backup source on the v bat pin. the 256 bytes of direct ram are not affected by this circuit and are volatile. crystal and backup sources to use the unique functions of the ds87c530/ ds83c530, a 32.768khz timekeeping crystal and a backup energy source are needed. the following descri bes guidelines for choosing these devices. timekeeping crystal the ds87c530/ds83c530 can us e a standard 32.768khz crystal as the rtc time base. there are two versions of standard crystals ava ilable, with 6pf and 12.5pf load capacitance. the tradeoff is that the 6pf uses less power, giving longer life while v cc is off, but is more sensitive to noise and board layout. the ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 12 of 47 12.5pf crystal uses more power, giving a shorter battery backed life, but produces a more robust oscillator. bit 6 in the rtc trim register (trim; 96h) must be programmed to specify the crystal type for the oscillator. when trim.6 = 1, the circuit expects a 12.5pf crystal. when trim.6 = 0, it expects a 6pf crystal. this bit will be nonvola tile so these choices will remain while the backup source is present. a guard ring (connected to the rtc ground) should encircle the rtcx1 and rtcx2 pins. backup energy source the ds87c530/ds83c530 use an external energy source to mainta in timekeeping and sram data without v cc . this source can be either a battery or 0.47f super cap and should be connected to the v bat pin. the nominal battery voltage is 3v. the v bat pin will not source current. therefore, a super cap requires an external resistor and diode to supply charge. the backup lifetime is a function of th e battery capacity and the data rete ntion current drain. this drain is specified in the electrical specifications. the circuit loads the v bat only when v cc has fallen below v bat . thus the actual lifetime depends not only on the current and battery capacity, but also on the portion of time without power. a very sma ll lithium cell provides a lifetime of more than 10 years. figure 3. internal backup circuit important application note the pins on the ds87c530/ds 83c530 are generally as resilient as ot her cmos circuits. they have no unusual susceptibility to electrostatic discha rge (esd) or other el ectrical transients. however, no pin on the ds87c530/ds83c530 should ever be ta ken to a voltage below ground. negative voltages on any pin can turn on internal parasitic diodes that draw current directly from the battery. if a device pin is connected to the ?outside world? where it may be handled or come in contact with electrical noise, protection should be added to prev ent the device pin from going below -0.3v. some power supplies can give a small undershoot on powe r-up, which should be prevented. application note 93: design guidelines for microcontrollers incorporating nv ram discusses how to protect the ds87c530/ds83c530 agains t these conditions. memory resources like the 8051, the ds87c530/ds83c530 use three memory areas. the total memory configuration of the device is 16kb of rom, 1kb of data sram and 256 bytes of scratchpad or direct ram. the 1kb of data ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 13 of 47 space sram is read/write accessible and is memory mapped. this on-chip sram is reached by the movx instruction. it is not used for executable memo ry. the scratchpad area is 256 bytes of register mapped ram and is identical to the ram found on th e 80c52. there is no conflict or overlap among the 256 bytes and the 1kb as they use different a ddressing modes and separate instructions. operational consideration the erasure window of the windowed lcc should be covered without regard to the programmed/unprogrammed state of the eprom. othe rwise, the device may not meet the ac and dc parameters listed in the data sheet. program memory access on-chip rom begins at address 0000h and is c ontiguous through 3fffh (16kb). exceeding the maximum address of on -chip rom will cause the ds87c530/ds 83c530 to access off-chip memory. however, the maximum on-chip decode d address is selectable by software using the romsize feature. software can cause the microcontroller to behave like a device with less on-chip memory. this is beneficial when overlapping external memory, such as flash, is used. the maximum memory size is dynamically variable. thus a portion of memory can be removed from the memory map to access off-chip memory, then restored to access on-chip memory. in fact, all the on-chip memory can be removed from the memory map allowi ng the full 64kb memory space to be addressed from off-chip memory. rom addresses that are larger than the selected maximum are automatically fetched from outside the part via ports 0 and 2. fi gure 4 shows a depiction of the rom memory map. the romsize register is used to select the maximum on-chip decoded address for rom. bits rms2, rms1, rms0 have the following effect: rms2 rms1 rms0 maximum on-chip rom address 0 0 0 0kb 0 0 1 1kb 0 1 0 2kb 0 1 1 4kb 1 0 0 8kb 1 0 1 16kb (default) 1 1 0 invalid?reserved 1 1 1 invalid?reserved the reset default condition is a ma ximum on-chip rom address of 16kb . thus no action is required if this feature is not used. when acce ssing external program memory, the first 16kb would be inaccessible. to select a smaller effective rom size, software must alter bits rms2?rms0. altering these bits requires a timed-access procedure. care should be taken so that changing the roms ize register does not corrupt program execution. for example, assume that a device is executing instructions from internal program memory near the 12kb boundary (~3000h) and that the romsize register is currently configured for a 16kb internal program space. if software reconfigures the romsize regist er to 4kb (0000h?0fffh) in the current state, the ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 14 of 47 device will immediately jump to external program execution because program code from 4kb to 16kb (1000h?3fffh) is no longer located on-chip. this could result in code misalignm ent and execution of an invalid instruction. the recommende d method is to modify the romsize register from a location in memory that will be internal (or external) both befo re and after the operation. in the above example, the instruction which modifies the romsize register should be located below the 4kb (1000h) boundary, so that it will be unaffected by the memory modifica tion. the same precaution s hould be applied if the internal program memory size is modified while executing from external program memory. off-chip memory is accessed using the multiplexed address/data bus on p0 and the msb address on p2. while serving as a memory bus, these pins are not i/o ports. this convention follows the standard 8051 method of expanding on-chip memory. of f-chip rom access also occurs if the ea pin is a logic 0. ea overrides all bit settings. the psen signal will go active (low) to serve as a chip enable or output enable when ports 0 and 2 fetch from external rom. figure 4. rom memory map data memory access unlike many 8051 derivatives, the ds87c530/ds83c530 cont ain on-chip data memory. the devices also contain the standard 256 bytes of ram accessed by di rect instructions. these areas are separate. the movx instruction accesses the on-chip data memory. although physically on-chip, software treats this area as though it was located off-chip. the 1k b of sram is between address 0000h and 03ffh. access to the on-chip data ram is optional under softwa re control. when enabled by software, the data sram is between 0000h and 03ffh. any movx instructi on that uses this area will go to the on-chip ram while enabled. movx addresses greater than 03ffh automatically go to external memory through ports 0 and 2. when disabled, the 1kb memory area is transparent to the system memory map. any movx directed to the space between 0000h and ffffh goes to the expande d bus on ports 0 and 2. this also is the default condition. this default allows the ds87c530/ds83c530 to drop into an existing system that uses these addresses for other hardware and still have full compatibility. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 15 of 47 the on-chip data area is software selectable using 2 bits in the power management register at location c4h. this selection is dynamically programmable. thus access to the on-chip area becomes transparent to reach off-chip devices at the same addresses. th e control bits are dme1 (pmr.1) and dme0 (pmr.0). they have the following operation: table 2. data memory access control dme1 dme0 data memory address memory function 0 0 0000h?ffffh external data memory ( default condition) 0000h?03ffh internal sram data memory 0 1 0400h?ffffh external data memory 1 0 reserved reserved 0000h?03ffh internal sram data memory 0400h?fffbh reserved?no external access fffch read access to the status of lock bits 1 1 fffdh?fffh reserved?no external access notes on the status byte read at fffch with dme1, 0 = 1, 1: bits 2-0 reflect the programmed status of the security lock bits lb2?lb0. they are individually set to a logic 1 to correspond to a security lock bit that has been programmed. these status bits allow softwa re to verify that the part has been locked before running if desired. the bits are read-only. note: after internal movx sram has been initialized, changing bits dem0/1 has no effect on the contents of the sram. stretch memory cycle the ds87c530/ds83c530 allow software to adjust the speed of off-chip data memory access. the microcontrollers can perform the movx in as few as two instruction cycles. the on-chip sram uses this speed and any movx instruction directed internally uses two cycles. however, the time can be stretched for interface to external devices. this allows access to both fast memory and slow memory or peripherals with no glue logic. even in high-speed systems, it may not be necessary or desirable to perform off-chip data memory access at full speed. in addition, there are a variety of memory-mapped peripherals such as lcds or uarts that are slow. the stretch movx is controlled by the clock control register at sfr location 8eh as described below. it allows the user to select a stretch value between 0 and 7. a stretch of 0 will result in a two-machine cycle movx. a stretch of 7 will result in a movx of nine machine cycles. software can dynamically change this value depending on the particular memory or peripheral. on reset, the stretch value will de fault to a 1, resulting in a three-cycle movx for any external access. therefore, off-chip ram access is not at full speed. this is a convenience to existing designs that may not have fast ram in place. internal sram access is always at full speed regardless of the stretch setting. when desiring maximum sp eed, software should select a stre tch value of 0. when using very slow ram or peripherals, select a larger stretch value. note that this affects data memory only and the only way to slow program memory (rom) access is to use a slower crystal. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 16 of 47 using a stretch value between 1 and 7 causes the microcontroller to stretch the read/write strobe and all related timing. also, setup and hold times are increased by 1 clock when using any stretch greater than 0. this results in a wider read/write strobe and relaxed interface timing, allowing more time for memory/peripherals to respond. the timing of the variable speed movx is in the electrical specifications section. table 3 shows the resulting strobe wi dths for each stretch value. the memory stretch uses the clock control special function re gister at sfr location 8eh. the stretch value is selected using bits ckcon.2?0. in the table, these b its are referred to as m2 through m0. the first stretch (default) allows the use of common 120ns ra ms without dramatically lengthening the memory access. table 3. data memory cycle stretch values ckcon.2?0 m2 m1 m0 memory cycles rd or wr strobe width in clocks strobe width time at 33mhz (ns) 0 0 0 2 (forced internal) 2 60 0 0 1 3 (default external) 4 121 0 1 0 4 8 242 0 1 1 5 12 364 1 0 0 6 16 485 1 0 1 7 20 606 1 1 0 8 24 727 1 1 1 9 28 848 dual data pointer the timing of block moves of data memory is faster using the dual data pointer (dptr). the standard 8051 dptr is a 16-bit value that is used to addr ess off-chip data ram or peripherals. in the ds87c530/ds83c530, the standard data pointer is called dptr, located at sfr addresses 82h and 83h. these are the standard locations. using dptr requir es no modification of sta ndard code. the new dptr at sfr 84h and 85h is called dptr1. th e dptr select bit (dps) chooses the active pointer. its location is the lsb of the sfr location 86h. no other bits in register 86h have any effect and are 0. the user switches between data pointe rs by toggling the lsb of register 86h. the increment (inc) instruction is the fastest way to accomplish this. all dptr-related instructions use the currently selected dptr for any activity. therefore it takes only one instruction to switch from a source to a destination address. using the dual data pointer saves code from needing to save source and destination addresses when doing a block move. the software simply switches between dptr and 1 once software loads them. the relevant register locations are as follows. dpl 82h low byte original dptr dph 83h high byte original dptr dpl1 84h low byte new dptr dph1 85h high byte new dptr dps 86h dptr select (lsb) ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 17 of 47 power management along with the standard idle and power-dow n (stop) modes of the standard 80c52, the ds87c530/ds83c530 provide a new powe r management mode. this mode allows the processor to continue functioning, yet to sa ve power compared with full ope ration. the ds87c530/ ds83c530 also feature several enhancements to st op mode that make it more useful. power management mode (pmm) power management mode offers a complete scheme of reduced internal clock speeds that allow the cpu to run software but to use substantially less power. during default operation, the ds87c530/ds83c530 use four clocks per machine cycle. thus the instructi on cycle rate is (clock/4). at 33mhz crystal speed, the instruction cycle speed is 8.25mhz (33/4). in pmm, the microcontroller conti nues to operate but uses an internally divided version of the clock source. this creates a lower power state without external components. it offers a choice of two reduced instru ction cycle speeds (and two clock sources - discussed below). the speeds are (clock/64) and (clock/1024). software is the only mechanism to invoke the pmm. ta ble 4 illustrates the instruction cycle rate in pmm for several common crystal frequencies. since power c onsumption is a direct function of operating speed, pmm 1 eliminates most of the power consumption while still allowing a reasonable speed of processing. pmm 2 runs very slowly and provide s the lowest power consumption w ithout stopping the cpu. this is illustrated in table 5. note that pmm provides a lower power condition than idle mode. this is because in idle, all clocked functions such as timers run at a rate of crystal divided by 4. since wake-up from pmm is as fast as or faster than from idle and pmm allows the cpu to operate (even if doing nops), there is little reason to use idle mode in new designs. table 4. machine cycle rate crystal speed (mhz) full operation (4 clocks) (mhz) pmm1 (64 clocks) (khz) pmm2 (1024 clocks) (khz) 11.0592 2.765 172.8 10.8 16 4.00 250.0 15.6 25 6.25 390.6 24.4 33 8.25 515.6 32.2 table 5. typical operating current in pmm crystal speed (mhz) full operation (4 clocks) (ma) pmm1 (64 clocks) (ma) pmm2 (1024 clocks) (ma) 11.0592 13.1 5.3 4.8 16 17.2 6.4 5.6 25 25.7 8.1 7.0 33 32.8 9.8 8.2 ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 18 of 47 crystal-less pmm a major component of power consumption in pmm is the crystal amplifier circuit. the ds87c530/ds83c530 allow the user to sw itch cpu operation to an internal ring oscillator and turn off the crystal amplifier. the cpu would then have a cl ock source of approximately 2mhz to 4mhz, divided by either 4, 64, or 1024. the ring is not accurate, so software cannot perform precision timing. however, this mode allows an additional saving of betw een 0.5ma and 6.0ma, depending on the actual crystal frequency. while this saving is of little use when r unning at 4 clocks per instruction cycle, it makes a major contribution when running in pmm1 or pmm2. pmm operation software invokes the pmm by setting the appropriate b its in the sfr area. the basic choices are divider speed and clock source. there are three speeds (4, 64, and 1024) and two clock sources (crystal, ring). both the decisions and the controls are separate. software will typically select the clock speed first. then, it will perform the switch to ring operation if desired. lastly, software can disable the crystal amplifier if desired. there are two ways of exiting pmm. software can remove the condition by reversing the procedure that invoked pmm or hardware can (opti onally) remove it. to resume ope ration at a divide-by-4 rate under software control, simply select 4 clocks per cycle, and then crysta l-based operation if relevant. when disabling the crystal as the time base in favor of the ring oscillator, there are timing restrictions associated with restarting the crystal operati on. details are described below. there are three registers containing bits that are concerned with pmm functions. they are power management register (pmr; c4h), status (status; c5h), and external interrupt flag (exif; 91h) clock divider software can select the instruction cycle rate by selecting bits cd1 (pmr .7) and cd0 (pmr.6) as follows: cd1 cd0 cycle rate 0 0 reserved 0 1 4 clocks (default) 1 0 64 clocks 1 1 1024 clocks the selection of instruction cycle rate will take effect after a delay of one instruction cycle. note that the clock divider choice applies to all functions including timers. since baud rates are altered, it will be difficult to conduct serial communication while in p mm. there are minor restrictions on accessing the clock selection bits. the processor mu st be running in a 4-clock state to select either 64 (pmm1) or 1024 (pmm2) clocks. this means software cannot go directly from pmm1 to pmm2 or visa versa. it must return to a 4-clock rate first. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 19 of 47 switchback to return to a 4-clock rate from pmm, software can simply select the cd1 and cd0 clock control bits to the 4 clocks per cycle state. ho wever, the ds87c530/ds83c530 provide several hardware alternatives for automatic switchback. if switchback is enabled, then the device will automatically return to a 4-clock per cycle speed when an interrupt occurs from an en abled, valid external interrupt source. a switchback will also occur when a uart detects th e beginning of a serial start bit if the serial receiver is enabled (ren = 1). note the beginning of a start bit does not ge nerate an interrupt; this occurs on reception of a complete serial word. the automatic switchback on detection of a start bit allows hardware to correct baud rates in time for a proper serial reception. a switchback will also occur when a byte is written to the sbuf0 or sbuf1 for transmission. switchback is enabled by setting the swb bit (pmr.5) to a 1 in software. for an external interrupt, switchback will occur only if the interrupt source could really generate the interrupt. for example, if int0 is enabled but has a low priority setting, then switchback will not occur on int0 if the cpu is servicing a high priority interrupt. status information in the status register assists decisions about switching in to pmm. this register contains information about the level of active inte rrupts and the activity on the serial ports. the ds87c530/ds83c530 support three leve ls of interrupt priority. thes e levels are power-fail, high, and low. bits status.7?5 indicate the service status of each level. if pip (power-fail interrupt priority; status. 7) is 1, then the processor is servicing th is level. if either hip (high interrupt priority; status.6) or lip (low interrupt priority; status .5) is high, then the corresponding level is in service. software should not rely on a lower priority level interrupt source to remove pmm (switchback) when a higher level is in service. check the current priority service level before entering pmm. if the current service level locks out a desired switchback source, th en it would be advisable to wait until this condition clears before entering pmm. alternately, software can prevent an undesired exit from pmm by entering a low priority interrupt service level before entering pmm. this will prevent other low priority interrupts from causing a switchback. status also contains information a bout the state of the serial ports. serial port zero receive activity (spra0; status.0) indicates a serial word is being received on serial port 0 when this bit is set to a 1. serial port 0 transmit activity (spta0; status.1) indicates that the serial port is still shifting out a serial transmission. status.2 and status.3 provide the same information for serial port 1, respectively. these bits should be interrogated before entering pmm1 or pmm2 to ensure that no serial port operations are in progress. changing the clock di visor rate during a serial transmission or reception will corrupt the operation. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 20 of 47 crystal/ring operation the ds87c530/ds83c530 allow software to choose the clock source as an independent selection from the instruction cycle rate. the us er can select crystal-based or ring oscillator-based operation under software control. power-on reset default is the crystal (or external clock) source. the ring may save power depending on the actual crystal speed. to save still more power, software can then disable the crystal amplifier. this process requires two steps. reversing the process also requires two steps. the xt/ rg bit (exif.3) selects the crystal or ring as the clock source. setting xt/ rg = 1 selects the crystal. setting xt/ rg = 0 selects the ring. the rgmd (exif.2) bit serves as a status bit by indicating the active clock source. rgmd = 0 i ndicates the cpu is running from the crystal. rgmd = 1 indicates it is running from the ring. when operating from th e ring, disable the crystal amplifier by setting the xtoff bit (pmr.3) to a 1. this can only be done when xt/ rg = 0. when changing the clock source, the selection will take effect after a one-instruction-cycle delay. this applies to changes from crystal to ring and vise versa. however, this assumes that the crystal amplifier is running. in most cases, when the ring is active, software previously disabled the crystal to save power. if ring operation is being used and the system must sw itch to crystal operation, the crystal must first be enabled. set the xtoff bit to 0. at this time, the crystal oscillation will begin. the ds87c530/ds83c530 then provi de a warm-up delay to make certa in that the frequency is stable. hardware will set the xtup bit (status.4) to 1 when the crystal is ready for use. then software should write xt/ rg to 1 to begin operating from the crystal. hardware prevents writing xt/ rg to 1 before xtup = 1. the delay between xtoff = 0 and xtup = 1 will be 65,536 crystal clocks in addition to the crystal cycle startup time. switchback has no affect on the clock source. if softwa re selects a reduced clock divider and enables the ring, a switchback will only restore the divider speed. the ring will remain as the time base until altered by software. if there is serial activity, switchback us ually occurs with enough time to create proper baud rates. this is not true if the cr ystal is off and the cpu is running from the ring. if sending a serial character that wakes the system from crystal-less pmm, then it should be a dummy character of no importance with a subsequent delay for crystal startup. table 6 is a summary of the bits relating to pmm and its operation. the flow chart below illustrates a typical decision set associated with pmm. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 21 of 47 table 6. pmm control and status bit summary name location function reset write access xt/ rg exif.3 control. xt/ rg =1, runs from crystal or external clock; xt/ rg =0, runs from internal ring oscillator. x 0 to 1 only when xtup = 1 and xtoff= 0 rgmd exif.2 status. rgmd=1, cpu clock = ring; rgmd = 0, cpu clock = crystal. 0 none cd1, cd0 pmr7, pmr.6 control. cd1, 0 = 01, 4 clocks; cs1, 0 = 10, pmm1; cd1, 0 = 11, pmm2. 0, 1 write cd1, 0 = 10 or 11 only from cd1, 0 = 01 swb pmr.5 control. swb = 1, hardware invokes switchback to 4 clocks, swb = 0, no hardware switchback. 0 unrestricted xtoff pmr.3 control. disables crystal operation after ring is selected. 0 1 only when xt/ rg = 0 pip status.7 status. 1 indicates a power-fail interrupt in service. 0 none hip status.6 status. 1 indicates high priority interrupt in service. 0 none lip status.5 status. 1 indicates low priority interrupt in service. 0 none xtup status.4 status. 1 indicates that the crystal has stabilized. 1 none spta1 status.3 status. serial transmission on serial port 1. 0 none spra1 status.2 status. serial word reception on serial port 1. 0 none spta0 status.1 status. serial transmission on serial port 0. 0 none spra0 status.0 status. serial word reception on serial port 0. 0 none ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 22 of 47 figure 5. invoking and clearing pmm ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 23 of 47 idle mode setting the lsb of the power control register (pcon; 87h) invokes the idle mode. idle will leave internal clocks, serial ports and timers running. power consum ption drops because the cpu is not active. since clocks are running, the idle power consumption is a function of crystal frequency. it should be approximately one-half the operational power at a given frequency. the cpu can exit the idle state with any interrupt or a reset. idle is available for backward software compatibility. the system can now reduce power consumption to below idle levels by using pmm1 or pmm2 and running nops. stop mode enhancements setting bit 1 of the power control register (pcon; 87h) invokes the stop mode. stop mode is the lowest power state since it turns off all internal clocking. the i cc of a standard stop m ode is approximately 1 a but is specified in the electrical specifications. the cpu will exit stop mode from an external interrupt or a reset condition. internally genera ted interrupts (timer, serial port, watchdog) are not useful since they require clocking activity. one exception is that a rtc interrupt can cause the device to exit stop mode. this provides a very power efficient way of performing infrequent yet periodic tasks. the ds87c530/ds83c530 provide two enhancements to the stop mode. as documented below, the device provides a bandgap reference to determine powe r-fail interrupt and reset thresholds. the default state is that the bandgap reference is off while in stop mode. this allows the extremely low-power state mentioned above. a user can optiona lly choose to have the bandgap enabled during stop mode. with the bandgap reference enabled, pfi and power-fail reset are f unctional and are a valid means for leaving stop mode. this allows software to detect and comp ensate for a brownout or power supply sag, even when in stop mode. in stop mode with the bandgap enabled, i cc will be approximately 50 a compared with 1 a with the bandgap off. if a user does not require a power-fail reset or interrupt while in stop mode, the bandgap can remain disabled. only the most power sensitive applications should turn off the bandgap, as this results in an uncontrolle d power-down condition. the control of the bandgap reference is located in the extended interrupt flag register (exif; 91h). setting bgs (exif.0) to a 1 will keep the bandgap re ference enabled during stop mode. the default or reset condition is with the bit at a logic 0. this results in the bandgap being off during stop mode. note that this bit has no control of the refere nce during full power, pmm, or idle modes. the second feature allows an additional power saving op tion while also making stop easier to use. this is the ability to start instantly when exiting stop mode. it is the internal ring oscillator that provides this feature. this ring can be a clock source when exitin g stop mode in response to an interrupt. the benefit of the ring oscillator is as follows. using stop mode turns off the crystal oscillator and all internal clocks to save power. this requires that the oscillator be restarted when exiting stop mode. actual startup time is crystal-dependent, but is normally at least 4ms. a common recommendation is 10m s. in an application that will wake up, perform a short operation, then return to slee p, the crystal startup can be longer than the real transaction. however, the ring oscillator will start instantly. running from th e ring, the user can perform a simple operation and return to sleep before the crystal has even started. if a user selects the ring to pr ovide the startup clock and the processor remains running, hardware will automatically switch to the crystal once a power-on reset interval (65,536 clocks) has expired. hardware uses this value to assure proper crystal start even though power is not being cycled. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 24 of 47 the ring oscillator runs at approx imately 2mhz to 4mhz but will not be a precise value. do not conduct real-time precision operations (inc luding serial communication) during this ring period. figure 6 shows how the operation would compare when using the ring , and when starting up normally. the default state is to exit stop mode without using the ring oscillator. the rgsl ring-select bit at exif.1 (exif; 91h) cont rols this function. when rgsl = 1, the cpu will use the ring oscillator to exit stop mode quickly. as mentioned above, the proc essor will automatically switch from the ring to the crystal after a delay of 65,536 crystal clocks. for a 3.57mhz crystal, this is approximately 18ms. the processor sets a flag called rgmd- ring mode, located at exif.2, that tells software that the ring is being used. the bit will be a logic 1 when the ring is in use. attempt no serial communication or precision timing while this bit is set, since the operating frequency is not precise. figure 6. ring oscillator exit from stop mode emi reduction one of the major contributors to radiated noise in an 8051-based system is the toggling of ale. the ds87c530/ds83c530 allow software to disable ale when not used by setting the aleoff (pmr.2) bit to 1. when aleoff = 1, ale will still toggle during an off-chip movx. however, ale will remain in a static when performing on-chip memory access. the default state of aleoff = 0 so ale toggles with every instruction cycle. note : diagram assumes that the operation following stop requires less than 18ms to complete. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 25 of 47 peripheral overview the ds87c530/ds83c530 provide several of the most commonly needed peripheral functions in microcomputer-based systems. thes e new functions include a second se rial port, power-fail reset, power- fail interrupt, and a programmable watchdog timer. these are described below, and more details are available in the high-speed microcontroller user?s guide . serial ports the ds87c530/ds83c530 provide a serial port (uart) that is identical to the 80c52. in addition it includes a second hardware serial port that is a full duplicate of the standard one. this port optionally uses pins p1.2 (rxd1) and p1.3 (t xd1). it has duplicate control functions included in new sfr locations. both ports can operate simultaneously but can be at different baud rates or even in different modes. the second serial port has similar control registers (sc on1; c0h, sbuf1; c1h) to the original. the new serial port can only use timer 1 for timer-generated baud rates. timer rate control there is one important difference between the ds87c530/ds83c530 and 8051 regarding timers. the original 8051 used 12 clocks per cycle for timers as well as for machine cycles. the ds87c530/ds83c530 architect ure normally uses 4 clocks per machine cycle. however, in the area of timers and serial ports, the ds87c530/ ds83c530 will default to 12 clocks per cycle on reset. this allows existing code with real-tim e dependencies such as baud rates to operate properly. if an application needs higher speed timers or serial baud rates, the user can select individual timers to run at the 4-clock rate. the clock control register (ckcon; 8eh) determines these timer speeds. when the relevant ckcon bit is logic 1, the ds87c530/ds83c 530 use 4 clocks per cycle to generate timer speeds. when the bit is a 0, the ds87c530 uses 12 cl ocks for timer speeds. the reset condition is a 0. ckcon.5 selects the speed of timer 2. ckcon.4 selects timer 1 and ckcon.3 selects timer 0. unless a user desires very fast timing, it is unnecessary to alter these bits. note that the timer controls are independent. power-fail reset the ds87c530/ds83c530 use a pr ecision bandgap voltage reference to decide if v cc is out of tolerance. while powering up, the internal monitor circuit maintains a reset state until v cc rises above the v rst level. once above this level, the monitor enables the crystal oscillator and counts 65,536 clocks. it then exits the reset state. this power-on reset (por) interval allows time for the oscillator to stabilize. a system needs no external components to generate a power-related reset. anytime v cc drops below v rst , as in power failure or a power drop, the mon itor will generate and hold a reset. it occurs automatically, needing no action from the software. refer to the electrical specifications section for the exact value of v rst . power-fail interrupt the voltage reference that sets a precise reset threshold also generates an optional early warning power- fail interrupt (pfi). when enabled by software, the processor will vector to program memory address 0033h if v cc drops below v pfw . pfi has the highest priority. the pfi enable is in the watchdog control sfr (wdcon?d8h). setting wdcon.5 to logic 1 will en able the pfi. application software can also ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 26 of 47 read the pfi flag at wdcon.4. a pfi condition sets this bit to a 1. the flag is independent of the interrupt enable and software must manually clear it. if the pfi is enabled and the bandgap select bit (bgs) is set, a pfi will bring the device out of stop mode. watchdog timer to prevent software from losing control, th e ds87c530/ds83c530 include a programmable watchdog timer. the watchdog is a free-running timer that sets a flag if allowed to reach a preselected timeout. it can be (re)started by software. a typical application is to select the flag as a reset source. when the watchdog times out it sets its flag, which generates reset. software must restart the timer before it reaches its timeout or the processor is reset. software can select one of four timeout values. then, it restarts the timer and enables the reset function. after enabling the reset function, soft ware must then restart the timer be fore its expiration or hardware will reset the cpu. both the watc hdog reset enable and the watchdog re start control bits are protected by a ?timed access? circuit. this prevents errant software from accidentally clearing the watchdog. timeout values are precise since they are a function of the crystal frequency as shown in table 7. for reference, the time periods at 33mhz also are shown. the watchdog also provides a useful option for systems that do not require a reset circuit. it will set an interrupt flag 512 clocks before setting the reset flag. software can optionally enable this interrupt source. the interrupt is independent of the reset. a comm on use of the interrupt is during debug, to show developers where the watchdog times out. this indi cates where the watchdog must be restarted by software. the interrupt also can serve as a conveni ent time-base generator or can wake-up the processor from power saving modes. the watchdog function is controlled by the clock control (ckcon?8eh), watchdog control (wdcon?d8h), and extended interrupt enable (e ie?e8h) sfrs. ckcon.7 and ckcon.6 are wd1 and wd0, respectively, and they select the watchdog timeout period as shown in table 7. table 7. watchdog timeout values wd1 wd0 interrupt timeout time (33mhz) reset timeout time (33mhz) 0 0 2 17 clocks 3.9718ms 2 17 + 512 clocks 3.9874ms 0 1 2 20 clocks 31.77ms 2 20 + 512 clocks 31.79ms 1 0 2 23 clocks 254.20ms 2 23 + 512 clocks 254.21ms 1 1 2 26 clocks 2033.60ms 2 26 + 512 clocks 2033.62ms as shown above, the watchdog timer uses the crystal frequency as a time base. a user selects one of four counter values to determine the timeout. these clock counter lengths are 2 17 = 131,072 clocks; 2 20 = 1,048,576; 2 23 = 8,388,608 clocks; and 2 26 = 67,108,864 clocks. the times shown in table 7 are with a 33mhz crystal frequency. once the counter chain ha s completed a full interrupt count, hardware will set an interrupt flag. regardless of whether the user enables this interrupt, there are then 512 clocks left until the reset flag is set. software can enable the interrupt and reset individually. note that the watchdog is a free-running timer and does not require an enable. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 27 of 47 there are five control bits in special function registers that affect the watchdog timer and two status flags that report to the user. wdif (wdcon.3) is the interrupt flag that is set at timer termination when there are 512 clocks remaining until the reset flag is se t. wtrf (wdcon.2) is the flag that is set when the timer has completely timed out. this flag is normally associated with a cpu reset and allows software to determine the reset source. ewt (wdcon.1) is the enable for the watchdog timer reset function. rwt (wdcon.0) is the bit that software uses to rest art the watchdog timer. setting this bit restarts the timer for another full interval. application software must set this bit before the timeout. both of these bits are protected by timed access discussed below. as mentioned previously, wd1 and 0 (ckcon .7 and 6) select the timeout. the reset wa tchdog timer bit (wdcon.0) should be asserted prior to modifying the watchdog timer mode select bits (wd1, wd0) to avoid corruption of the watchdog count. finally, the user can enable the watchdog interrupt using ewdi (eie.4). interrupts the ds87c530/ds83c530 provide 14 inte rrupt sources with three priority levels. the power-fail interrupt (pfi) has the highest priority. software can assign high or low priority to other sources. all interrupts that are new to the 8051 family, except fo r the pfi, have a lower natural priority than the originals. table 8. interrupt sources and priorities name function vector natural priority 8051/dallas pfi power-fail interrupt 33h 1 dallas int0 external interrupt 0 03h 2 8051 tf0 timer 0 0bh 3 8051 int1 external interrupt 1 13h 4 8051 tf1 timer 1 1bh 5 8051 scon0 ti0 or ri0 from serial port 0 23h 6 8051 tf2 timer 2 2bh 7 8051 scon1 ti1 or ri1 from serial port 1 3bh 8 dallas int2 external interrupt 2 43h 9 dallas int3 external interrupt 3 4bh 10 dallas int4 external interrupt 4 53h 11 dallas int5 external interrupt 5 5bh 12 dallas wdti watchdog timeout interrupt 63h 13 dallas rtci rtc interrupt 6bh 14 dallas ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 28 of 47 timed-access protection it is useful to protect certain sfr bits from an accidental write operation. the timed-access procedure stops an errant cpu from accidentally changing these bits. it requires that the following instructions precede a write of a protected bit. mov 0c7h, #0aah mov 0c7h, #55h writing an aah and then a 55h to the timed-access re gister (location c7h) opens a three-cycle window for write access. the window allows software to modi fy a protected bit(s). if these instructions do not immediately precede the write operation, then the write will not take effect. the protected bits are: exif.0 bgs bandgap select wdcon.6 por power-on reset flag wdcon.1 ewt enable watchdog reset wdcon.0 rwt restart watchdog wdcon.3 wdif watchdog interrupt flag romsize.2 rms2 rom size select 2 romsize.1 rms1 rom size select 1 romsize.0 rms0 rom size select 0 trim.7?0 ? all rtc trim functions rtcc.2 rtcwe rtc write enable rtcc.0 rtce rtc oscillator enable eprom programming the ds87c530 follows standards for a 16kb eprom versi on in the 8051 family. it is available in a uv erasable, ceramic windowed package and in plastic packages for one-time user-programmable versions. the part has unique signature information so pr ogrammers can support its specific eprom options. programming procedure the ds87c530 should run from a clock speed betw een 4mhz and 6mhz when programmed. the programming fixture should apply addr ess information for each byte to the address lines and the data value to the data lines. the control signals must be manipulated as shown in table 9. the diagram in figure 5 shows the expected electrical connection for programming. note that the programmer must apply addresses in demultiplexed fashion to ports 1 and 2 with data on port 0. waveforms and timing are provided in the electrical specifications section. program the ds87c530 as follows: 1) apply the address value, 2) apply the data value, 3) select the programming option from table 9 using the control signals, 4) increase the voltage on v pp from 5v to 12.75v if writing to the eprom, 5) pulse the prog signal five times for eprom array and 25 times for encryption table, lock bits, and other eprom bits, 6) repeat as many times as necessary. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 29 of 47 ds87c530 security options the ds87c530 employs a standard three-level lock th at restricts viewing of the eprom contents. a 64- byte encryption array allows the authorized user to verify memory by presenting the data in encrypted form. lock bits the security lock consists of 3 lock bits. these bits select a total of 4 levels of security. higher levels provide increasing security but also limit application flexibility. table 10 shows the security settings. note that the programmer cannot directly read the stat e of the security lock. user software has access to this information as described in the memory section. encryption array the encryption array allows an authorized user to verify eprom without allowing the true memory to be dumped. during a verify, each byte is exclusive nored (xnor) with a byte in the encryption array. this results in a true representation of the epro m while the encryption is unprogrammed (ffh). once the encryption array is programmed in a non-ffh state, the verify value will be encrypted. for encryption to be effective, the encryption array mu st be unknown to the party that is trying to verify memory. the entire eprom also should be a non-ffh st ate or the encryption array can be discovered. the encryption array is programmed as shown in ta ble 9. note that the programmer cannot read the array. also note that the verify operation always uses the encryption array. the array has no impact while ffh. simply programming the array to a non-ffh state will cause the encryption to function. other eprom options the ds87c530 has user-selectable opti ons that must be set before beginning software execution. these options use eprom bits rather than sfrs. program the eprom selectable options as shown in table 9. the option register sets or reads these selections. the bits in the option contro l register have the following function: bits 7 to 4 reserved, program to 1. bit 3 watchdog por default. set = 1; wa tchdog reset function is disabled on power-up. set = 0; watchdog reset function is enabled automatically. bits 2 to 0 reserved. program to 1. ds87c530 signature the signature bytes identify the product and pr ogramming revision to ep rom programmers. this information is at programming addresses 30h, 31h, and 60h. this information is as follows: address value meaning 30h dah manufacturer 31h 30h model 60h 01h extension ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 30 of 47 table 9. eprom programming modes mode rst psen ale/ prog ea /vpp p2.6 p2.7 p3.3 p3.6 p3.7 program code data h l pl 12.75v l h h h h verify code data h l h h l l l h h program encryption array address 0-3fh h l pl 12.75v l h h l h lb1 h l pl 12.75v h h h h h lb2 h l pl 12.75v h h h l l program lock bits lb3 h l pl 12.75v h l h h l program option register address fch h l pl 12.75v l h h l l read signature or option registers 30, 31, 60, fch h l h h l l l l l * pl indicates pulse to a logic low. table 10. eprom lock bits lock bits level lb1 lb2 lb3 protection 1 u u u no program lock. encrypted verify if encryption table was programmed. 2 p u u prevent movc instructions in external memory from reading program bytes in internal memory. ea is sampled and latched on reset. allow no further programming of eprom. 3 p p u level 2 plus no verify operation. also, prevent movx instructions in external memory from reading sram (movx) in internal memory. 4 p p p level 3 plus no external execution. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 31 of 47 figure 7. eprom programming configuration rom-specific features (ds83c530) the ds83c530 supports a subset of the eprom features found on the ds87c530. security options lock bits the ds83c530 employs a lock that re stricts viewing of the rom contents. when set, the lock will prevent movc instructions in external memory from reading program bytes in internal memory. when locked, the ea pin is sampled and latched on reset. the lock setting is enabled or disabled when the devices are manufactured according to customer specifications. the lock bit cannot be read in software, and its status can only be determined by observing the operation of the device. encryption array the ds83c530 encryption array allows an authorized user to verify rom without allowing the true memory contents to be dumped. during a verify, each byte is exclusive nored (xnor) with a byte in the encryption array. this results in a true representation of the rom while the encryption is unprogrammed (ffh). once the encryption array is programmed in a non-ffh state, the encryption array is programmed (or optionally left unprogrammed) when the devices are manufactured according to customer specifications. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 32 of 47 ds83c530 rom verification the ds83c530 memory contents can be verified us ing a standard eprom programmer. the memory address to be verified is placed on the pins shown in figure 7, and the programming control pins are set to the levels shown in table 9. the data at that location is then asserted on port 0. ds83c530 signature the signature bytes identify the ds83c530 to ep rom programmers. this information is at programming addresses 30h, 31h, and 60h. because mask rom devices are not programmed in device programmers, most designers will find little use for the feature, and it is included only for compatibility. address value meaning 30h dah manufacturer 31h 31h model 60h 01h extension ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 33 of 47 absolute maximum ratings voltage range on any pin relative to ground??????????????????.???-0.3v to (v cc + 0.5v) voltage range on v cc relative to ground?????????????????????????..-0.3v to +6.0v operating temperature range???????????????????????????????.0c to +70c storage temperature range??????????????? ???????????...-55c to +125c (note 1) soldering temperature.??????????????????????see ipd/jedec j-std-020 specification this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in t he operation sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods of time may affect reliability. dc electrical characteristics (v cc = 4.5v to 5.5v, t a = -40c to +85c.) (note 2) parameter symbol min typ max units notes supply voltage v cc 4.5 5.0 5.5 v 3 power-fail warning v pfw 4.25 4.38 4.5 v 3 minimum operating voltage v rst 4.0 4.13 4.25 v 3 backup battery voltage v bat 2.5 3.0 v cc -0.7 v supply current active mode at 33mhz i cc 30 46 ma 4 supply current idle mode at 33mhz i idle 15 25 ma 5 supply current stop mode, bandgap disabled (0c to +70c) 1 100 a 6 supply current stop mode, bandgap disabled (-40c to +85c) i stop 1 150 a 6 supply current stop mode, bandgap enabled (0c to +70c) 50 170 a 6 supply current stop mode, bandgap enabled (-40c to +85c) i spbg 50 195 a 6 backup supply current, data-retention mode (0c to +70c) 0 0.5 a 7 backup supply current, data-retention mode (-40c to +85c) i bat 0 1 a 7 input low level v il -0.3 +0.8 v 3 input high level v ih 2.0 v cc +0.3 v 3 input high level xtal1 and rst v ih2 3.5 v cc +0.3 v 3 output low voltage at i ol = 1.6ma v ol1 0.15 0.45 v 3 output low voltage ports 0, 2, ale, and psen at i ol = 3.2ma v ol2 0.15 0.45 v 3 output high voltage ports 1, 2, 3, ale, psen at i oh = -50 a v oh1 2.4 v 3, 8 output high voltage ports 1, 2, 3 at i oh = -1.5ma v oh2 2.4 v 3, 9 output high voltage port 0 in bus mode i oh = -8ma v oh3 2.4 v 3, 10 input low current ports 1, 2, 3 at 0.45v i il -70 a 11 transition current from 1 to 0 ports 1, 2, 3 at 2v i tl -800 a 12 ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 34 of 47 dc electrical characteristics (continued) (v cc = 4.5v to 5.5v, t a = -40c to +85c.) parameter symbol min typ max units notes input leakage port 0, ea , pins, i/o mode i l -10 +10 a 13 input leakage port 0, bus mode i l -300 +300 a 14 rst pulldown resistance r rst 50 200 k note 1: storage temperature is defined as the temperature of the device when v cc = 0v and v bat = 0v. in this state, the contents of sram are not battery backed and are undefined. note 2: all parameters apply to both commercial and industrial temperature operation unless otherwise noted. note 3: all voltages are referenced to ground. note 4: active current measured with 33mhz clock source on xtal1, v cc = rst = 5.5v, other pins disconnected. note 5: idle mode current measured with 33mhz clock source on xtal1, v cc = 5.5v, rst at ground, other pins disconnected. note 6: stop mode current measured with xtal1 and rst grounded, v cc = 5.5v, all other pins disconnected. note 7: v cc = 0v, v bat = 3.3v. 32.768khz crystal with 12.5pf load capacitance between rtcx1 and rtcx2 pins. rtce bit set to 1. note 8: rst = v cc . this condition mimics operation of pins in i/o mode. port 0 is tri-stated in reset and when at a logic high state during i/o mode. note 9: during a 0-to-1 transition, a one-shot drives the ports hard for two clock cycles. this measurement reflects port in transitio n mode. note 10: when addressing external memory. this specification only applies to the first clock cycle following the transition. note 11: this is the current required from an external circuit to hold a logic low level on an i/o pin while the corresponding port lat ch bit is set to 1. this is only the current required to hold the low level; transitions from 1 to 0 on an i/o pin will also have to overcome the transition current. note 12: ports 1, 2, and 3 source transition current when being pulled down externally. it reaches its maximum at approximately 2v. note 13: 0.45 < v in < v cc . rst = v cc . this condition mimics operation of pins in i/o mode. note 14: 0.45 < v in < v cc . not a high-impedance input. this port is a weak address holding latch in bus mode. peak current occurs near the input transition point of the latch, approximately 2v. typical i cc vs. frequency ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 35 of 47 ac electrical characteristics (note 1) 33mhz variable clock parameter symbol min max min max units external oscillator 0 33 0 33 oscillator frequency external crystal 1/t clcl 1 33 1 33 mhz ale pulse width t lhll 40 1.5t clcl -5 ns port 0 address valid to ale low t avll 10 0.5t clcl -5 ns address hold after ale low t llax1 (note 2) (note 2) ns ale low to valid instruction in t lliv 43 2.5t clcl -33 ns ale low to psen low t llpl 4 0.5t clcl -11 ns psen pulse width t plph 55 2t clcl -5 ns psen low to valid instruction in t pliv 37 2t clcl -24 ns input instruction hold after psen t pxix 0 0 ns input instruction float after psen t pxiz 26 t clcl -5 ns port 0 address to valid instruction in t aviv1 59 3t clcl -32 ns port 2 address to valid instruction in t aviv2 68 3.5t clcl -38 ns psen low to address float t plaz (note 2) (note 2) ns note 1: all parameters apply to both commercial and industrial temperature range operation unless otherwise noted. specifications to -40c are guaranteed by design and are not production tested. ac electrical characteristics are not 100% tested, but are characterized and guaranteed by design. all signals are characterized with load capacitance of 80pf except port 0, ale, psen , rd and wr with 100pf. interfacing to memory devices with float times (turn off times) over 25ns may cause contention. this will not damage the parts, but will cause an increase in operating current. specifications assume a 50% duty cycle for the oscillator. p ort 2 and ale timing will change in relation to duty cycle variation. note 2: address is driven strongly until ale falls, and is then held in a weak latch until overdriven externally. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 36 of 47 movx characteristics using stretch memory cycles variable clock parameter symbol min max units stretch 1.5t clcl -5 t mcs =0 data access ale pulse width t lhll2 2t clcl -5 ns t mcs >0 0.5t clcl -5 t mcs =0 port 0 address valid to ale low t avll2 t clcl -5 ns t mcs >0 0.5t clcl -10 t mcs =0 address hold after ale low for movx write t llax2 t clcl -7 ns t mcs >0 2t clcl -5 t mcs =0 rd pulse width t rlrh t mcs -10 ns t mcs >0 2t clcl -5 t mcs =0 wr pulse width t wlwh t mcs -10 ns t mcs >0 2t clcl -22 t mcs =0 rd low valid data in t rldv t mcs -24 ns t mcs >0 data hold after read t rhdx 0 ns ? t clcl -5 ns t mcs =0 data float after read t rhdz 2t clcl -5 t mcs >0 2.5t clcl -31 t mcs =0 ale low to valid data in t lldv t mcs +t clcl -26 ns t mcs >0 3t clcl -29 t mcs =0 port 0 address to valid data in t avdv1 t mcs +2 clcl -29 ns t mcs >0 3.5t clcl -37 t mcs =0 port 2 address to valid data in t avdv2 t mcs +2.5 lcl -37 ns t mcs >0 0.5t clcl -10 0.5t clcl +5 t mcs =0 ale low to rd or wr low t llwl t clcl -5 t clcl +5 ns t mcs >0 t clcl -9 t mcs =0 port 0 address to rd or wr low t avwl1 2t clcl -7 ns t mcs >0 1.5t clcl -17 t mcs =0 port 2 address to rd or wr low t avwl2 2.5t clcl -16 ns t mcs >0 data valid to wr transition t qvwx -6 ns t clcl -5 t mcs =0 data hold after write t whqx 2t clcl -6 ns t mcs >0 rd low to address float t rlaz (note 1) ns -4 10 t mcs =0 rd or wr high to ale high t whlh t clcl -5 t clcl +5 ns t mcs >0 note 1: t mcs is a time period related to the stretch memory cycle selection. the following table shows the value of t mcs for each stretch selection. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 37 of 47 movx characteristics using stretch memory cycles (continued) m2 m1 m0 movx cycles t mcs 0 0 0 2 machine cycles 0 0 0 1 3 machine cycles (default) 4 t clcl 0 1 0 4 machine cycles 8 t clcl 0 1 1 5 machine cycles 12 t clcl 1 0 0 6 machine cycles 16 t clcl 1 0 1 7 machine cycles 20 t clcl 1 1 0 8 machine cycles 24 t clcl 1 1 1 9 machine cycles 28 t clcl external clock characteristics parameter symbol min typ max units clock high time t chcx 10 ns clock low time t clcx 10 ns clock rise time t clcl 5 ns clock fall time t chcl 5 ns serial port mode 0 timing characteristics parameter symbol conditions min typ max units sm2 = 0, 12 clocks per cycle 12t clcl serial port clock cycle time t xlxl sm2 = 1, 4 clocks per cycle 4t clcl ns sm2 = 0, 12 clocks per cycle 10t clcl output data setup to clock rising t qvxh sm2 = 1, 4 clocks per cycle 3t clcl ns sm2 = 0, 12 clocks per cycle 2t clcl output data hold from clock rising t xhqx sm2 = 1, 4 clocks per cycle t clcl ns sm2 = 0, 12 clocks per cycle t clcl input data hold after clock rising t xhdx sm2 = 1, 4 clocks per cycle t clcl ns sm2 = 0, 12 clocks per cycle 11t clcl clock rising edge to input data valid t xhdv sm2 = 1, 4 clocks per cycle 3t clcl ns ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 38 of 47 explanation of ac symbols in an effort to remain compatible with the original 8051 family, this device specifies the same parameters as such devices, using the same symbols. for completeness, the following is an explanation of the symbols. t time a address c clock d input data h logic level high l logic level low i instruction p psen q output data r rd signal v valid w wr signal x no longer a valid logic level z tri-state power-cycle timing characteristics parameter symbol min typ max units notes cycle startup time t csu 1.8 ms 1 power-on reset delay t por 65,536 t clcl 2 note 1: startup time for crystals varies with load capacitance and manufacturer. time shown is for an 11.0592mhz crystal manufactured b y fox. note 2: reset delay is a synchronous counter of crystal oscillations after crystal startup. at 33mhz, this time is 1.99ms. eprom programming and verification (v cc = 4.5v to 5.5v, t a = +21c to +27c.) parameter symbol min typ max units notes programming voltage v pp 12.5 13.0 v 1 programming supply current i pp 50 ma oscillator frequency 1/t clcl 4 6 mhz address setup to prog low t avgl 48t clcl address hold after prog t ghax 48t clcl data setup to prog low t dvgl 48t clcl data hold after prog t ghdx 48t clcl enable high to v pp t ehsh 48t clcl v pp setup to prog low t shgl 10 s v pp hold after prog t ghsl 10 s prog width t glgh 90 110 s address to data valid t avqv 48t clcl enable low to data valid t elqv 48t clcl data float after enable t ehqz 0 48t clcl prog high to prog low t ghgl 10 s note 1: all voltages are referenced to ground. ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 39 of 47 external program memory read cycle external data memory read cycle t vall2 ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 40 of 47 data memory write cycle data memory write with stretch = 1 t avll2 ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 41 of 47 data memory write with stretch = 2 external clock drive ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 42 of 47 serial port mode 0 timing ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 43 of 47 power-cycle timing eprom programming and verification waveforms ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 44 of 47 package information (the package drawing(s) in this data sheet may not reflect the most current specifications. for the latest package outline information, go to www.maxim-ic.com/dallaspackinfo .) ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 45 of 47 package information (continued) (the package drawing(s) in this data sheet may not reflect the most current specifications. for the latest package outline information, go to www.maxim-ic.com/dallaspackinfo .) ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 46 of 47 package information (continued) (the package drawing(s) in this data sheet may not reflect the most current specifications. for the latest package outline information, go to www.maxim-ic.com/dallaspackinfo .) pkg 52-pin dim min nom max a ? ? 1.20 a1 0.05 0.10 0.15 a2 0.95 1.00 1.05 b 0.25 0.32 0.40 c 0.09 ? 0.20 d 11.80 12.00 12.20 d1 10.00 bsc e 11.80 12.00 12.20 e1 10.00 bsc e 0.65 bsc l 0.45 0.60 0.75 ds87c530/ds83c530 eprom/rom microcontrollers with real-time clock 47 of 47 maxim/dallas semiconductor cannot assume res ponsibility for use of any circuitry other than circuitry entirely embodied in a ma xim/dallas semiconductor product. no circuit patent licenses are implied. maxi m/dallas semiconductor reserves the right to change the circuitry and specification s without notice at any time. maxim integrated products, 120 san gabriel drive, sunnyvale, ca 94086 408-737-7600 ? 2007 maxim integrated products the maxim logo is a registered trademark of maxim integrated produ cts, inc. the dallas logo is a registered trademark of dallas semiconductor corporation. data sheet revi sion summary revision description 071107 1) corrected p1.5 pin for tq fp package from 4 to 1 (page 5). 070505 2) added pb-free/rohs-compliant part numbers to ordering information table. 3) deleted the ?a? from the ipc/jedec j-std-020 specification in the absolute maximum ratings. 040104 4) removed ?preliminary? status. 5) soldering temperature parameter now references jedec specification. 6) added note to absolute maximums clarifying voltages referenced to ground and storage temperature. 7) updated i cc , i idle , i stop , i spbg , i il , and i tl to incorporate errata conditions. 8) added note clarifying dc electrical test conditions. 9) added note clarifying v oh3 specification applies to first clock cycle following the transition. 10) updated ac and movx electrical charact eristics with final characterization values. 11) added t avll2 specification and corrected movx timing diagrams to show t avll2 instead of t avll . 12) updated i bat to incorporate errata conditions. 112299 contact factory for details. 070798 1) added ds83c530 to data sheet. 2) updated pmm operating current estimates. 3) added note to clarify i il specification. 4) added note to prevent accidental corruption of watchdog timer coun t while changing counter length. 5) changed i bat specification to 1 a over extended temperature range. 6) changed minimum oscillator frequency to 1mhz when using external crystal. 7) changed rst pulldown resistance from 170k to 200k maximum. 8) corrected ?data memory write with stretch? diag rams to show falling edge of ale coincident with rising edge of c3 clock. 022097 1) updated ale pin description. 2) added note pertaining to erasure window. 3) added note pertaining to internal movx sram. 4) changed note 6 from rst=5.5v to rst=v cc . 5) changed note 10 from rst=5.5v to rst=v cc . 6) changed serial port mode 0 timing diagram label from t qvxl to t qvxh . 7) added information pertaining to 52-pin tqfp package. 060895 initial release. |
Price & Availability of DS87C53005
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |