Part Number Hot Search : 
SB10150 JMB387 KRA305V NJM2741 NMR108C F3L100 US3018CW 3EVKI
Product Description
Full Text Search
 

To Download 89C450 Datasheet File

  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: 060204 note: some revisions of this device may incorporate deviations from published specifications known as errata. multiple revisions of any device may be simultaneously available through various sales channels. for information about device errata, click here: www.maxim-ic.com/errata . general description the ds89c430, ds89c440, and ds89C450 offer the highest performance available in 8051-compatible microcontrollers. they feature newly designed processor cores that execute instructions up to 12 times faster than the original 8051 at the same crystal speed. typical applications will experience a speed improvement up to 10x. at 1 million instructions per second (mips) per megahertz, the microcontrollers achieve 33 mips performance from a maximum 33mhz clock rate. the ultra-high-speed flash microcontroller user?s guide should be used in conjunction with this data sheet. download it at www.maxim-ic.com/microcontrollers . applications data logging vending automotive test equipment motor control magstripe reader/scanner consumer electronics gaming equipment telephones hvac programmable logic controllers uninterruptible power supplies building security and door access control building energy control and management industrial control and automation white goods (washers, microwaves, etc.) ordering information part flash memory size pin-package ds89c430 -mnl 16kb x 8 40 pdip ds89c430-qnl 16kb x 8 44 plcc ds89c430-enl 16kb x 8 44 tqfp ds89c440 -mnl 32kb x 8 40 pdip ds89c440-qnl 32kb x 8 44 plcc ds89c440-enl 32kb x 8 44 tqfp ds89C450 -mnl 64kb x 8 40 pdip ds89C450-qnl 64kb x 8 44 plcc ds89C450-enl 64kb x 8 44 tqfp complete selector guide appears at end of data sheet. pin configurations appear at end of data sheet. features  high-speed 8051 architecture one clock-per-machine cycle dc to 33mhz operation single cycle instruction in 30ns optional variable length movx to access fast/slow peripherals dual data pointers with automatic increment/decrement and toggle select supports four paged memory-access modes  on-chip memory 16kb/32kb/64kb flash memory in-application programmable in-system programmable through serial port 1kb sram for movx  80c52 compatible 8051 pin and instruction set compatible four bidirectional, 8-bit i/o ports three 16-bit timer counters 256 bytes scratchpad ram  power-management mode programmable clock divider automatic hardware and software exit  romsize feature selects internal program memory size from 0 to 64kb allows access to entire external memory map dynamically adjustable by software  peripheral features two full-duplex serial ports programmable watchdog timer 13 interrupt sources (six external) five levels of interrupt priority power-fail reset early warning power-fail interrupt electromagnetic interference (emi) reduction ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers www.maxim-ic.com
ds89c430/ds89c44/ds89C450 ultra-high-speed flash microcontrollers 2 of 47 absolute maximum ratings voltage range on any pin relati ve to ground???????????????????????????-0.3v to (v cc + 0.5v) voltage range on v cc relative to ground ???????????????????????????????..-0.3v to +6.0v ambient temperature range ( under bias)???????????????????????????????-40c to +85c storage temperature range ????????????????????????????????????.-55c to +125c soldering temperat ure?????????????????????????????????see ipc/jedec j-std-020a stresses beyond those listed under ?absolute maximum ratings? may cause permanent damage to the device. these are stress rating s only, and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of t he specifications is not implied. exposure to the absolute maximum rating conditions for extended periods may affect device reliability. dc electrical characteristics (v cc = 4.5v to 5.5v, t o = -40c to +85c.) (note 1) parameter symbol min typ max units supply voltage (notes 2, 3) v cc 4.5 5.0 5.5 v power-fail warning (notes 2, 4) v pfw 4.2 4.375 4.6 v reset trip point (min operating voltage) (notes 2, 3, 4) v rst 3.95 4.125 4.35 v supply current, active mode (note 5) i cc 75 110 ma supply current, idle mode at 33mhz (note 6) i idle 40 50 ma supply current, stop mode, bandgap disabled (note 7) i stop 1 100  a supply current, stop mode, bandgap enabled (note 7) i spbg 150 300  a input low level (note 2) v il -0.3 +0.8 v input high level (note 2) v ih 2.0 v cc + 0.3 v input high level xtal and rst (note 2) v ih2 3.5 v cc + 0.3 v output low voltage, port 1 and 3 at i ol = 1.6ma (note 2) v ol1 0.15 0.45 v output low voltage, port 0 and 2, ale, psen at i ol = 3.2ma (note 2) v ol2 0.15 0.45 v output high voltage, port 1, 2, and 3, at i oh = -50  a (notes 2, 8) v oh1 2.4 v output high voltage, port 1, 2, and 3 at i oh = -1.5ma (notes 2, 9) v oh2 2.4 v output high voltage, port 0, 1, 2, ale, psen , rd , wr in bus mode at i oh = -8ma (notes 2, 10) v oh3 2.4 v output high voltage, rst at i ol = -0.4ma (note 2, 11) v oh4 2.4 v input low current, port 1, 2, and 3 at 0.4v i il -50  a transition current from 1 to 0, port 1, 2, and 3 at 2v (note 12) i tl -650  a input leakage current, port 0 in i/o mode and ea (note 13) i l -10 +10  a input current, port 0 in bus mode (note 14) i l -300 +300  a rst pulldown resistance (note 13) r rst 50 120 200 k 
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 3 of 47 note 1: specifications to -40c are guaranteed by design and not production tested. note 2: all voltages are referenced to ground. note 3: the user should note that this part is tested and guaranteed to operate down to 4.5v (10%) and that v rst (min) is specified below that point. this indicates that there is a range of voltages [(v min to v rst (min)] where the processor's operation is not guaranteed, but the reset trip point has not been reached. this should not be an issue in most applications, but should be considered when prop er operation must be maintained at all times. for these applications, it may be desirable to use a more accurate external reset. note 4: while the specifications for v pfw and v rst overlap, the design of the hardware makes it so this is not possible. within the ranges given, there is guaranteed separation between these two voltages. note 5: active current is measured with a 33mhz clock source driving xtal1, v cc = rst = 5.5v. all other pins are disconnected. note 6: idle mode current is measured with a 33mhz clock source driving xtal1, v cc = 5.5v, rst at ground. all other pins are disconnected. note 7: stop mode is measured with xtal and rst grounded, v cc = 5.5v. all other pins are disconnected. note 8: rst = 5.5v. this condition mimics the operation of pins in 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 a port pin in tran sition mode. note 10: when addressing external memory. note 11: guaranteed by design. note 12: ports 1, 2, and 3 source transition current when pulled down externally. the current reaches its maximum at approximately 2v. note 13: rst = 5.5v. port 0 is floating during reset and when in the logic-high state during i/o mode. note 14: this port is a weak address holding latch in bus mode. peak current occurs near the input transition point of the holding latch at approximately 2v.
ds89c430/ds89c440/ds89C450 4 of 47 ac characteristics (v cc = 4.5v to 5.5v, t o = -40c to +85c.) (see figure 1 , figure 2 , and figure 3 .) 1-cycle page mode 1 2-cycle page mode 1 4-cycle page mode 1 page mode 2 nonpage mode parameter symbol min max min max min max min max min max units system clock external oscillator (note 15) 1/t clcl 0 33 0 33 0 33 0 33 0 33 system clock external crystal (note 15) 1/t clcl 1 33 1 33 1 33 1 33 1 33 mhz ale pulse width (note 16) t lhll 0.5t clcl - 2 + t stc3 t clcl - 2 + t stc3 2t clcl - 4 + t stc3 1.5t clcl - 5 + t stc3 1.5t clcl - 5 + t stc3 ns port 0 instruction address valid to ale low t avll t clcl - 3 0.5t clcl - 3 ns port 2 instruction address valid to ale low t avll2 0.5t clcl - 4 0.5t clcl - 4 1.5t clcl - 4 0.5t clcl - 4 t clcl - 4 ns port 0 data addressvalid to ale low t avll3 t clcl - 3 + t stc3 0.5t clcl - 3 + t stc3 ns program address hold after ale low t llax 0.5t clcl - 8 1.5t clcl - 8 2.5t clcl - 8 1t clcl - 10 1t clcl - 10 ns address hold after ale low movx write t llax2 0.5t clcl - 8 + t stc4 1.5t clcl - 8 + t stc4 2.5t clcl - 8 + t stc3 0.5t clcl - 8 + t stc2 0.5t clcl - 8 + t stc2 ns address hold after ale low movx read t llax3 0.5t clcl - 8 + t stc4 1.5t clcl - 8 + t stc4 2.5t clcl - 8 + t stc3 0.5t clcl - 8 + t stc3 0.5t clcl - 8 + t stc2 ns ale low to valid instruction in t lliv 2t clcl - 6 2t clcl - 6 ns ale low to psen low t llpl 1.5t clcl - 6 0.5t clcl - 2 ns psen pulse width for program fetch t plph t clcl - 5 t clcl - 5 2t clcl - 5 t clcl - 5 2t clcl - 5 ns
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 5 of 47 ac characteristics (continued) (v cc = 4.5v to 5.5v, t o = -40c to +85c.) (see figure 1 , figure 2 , and figure 3 .) 1-cycle page mode 1 2-cycle page mode 1 4-cycle page mode 1 page mode 2 nonpage mode parameter symbol min max min max min max min max min max units psen low to valid instruction in t pliv t clcl - 20 t clcl - 20 2t clcl - 20 t clcl - 20 2t clcl - 20 ns input instruction hold after psen t pxix 0 0 0 0 0 ns input instruction float after psen t pxiz t clcl - 5 t clcl - 5 ns port 0 address to valid instruction in t aviv0 1.5t clcl - 22 3t clcl - 22 ns port 2 address to valid instruction in t aviv2 t clcl - 20 1.5t clcl - 20 2.5t clcl - 20 3t clcl - 20 3.5t clcl - 20 ns psen low to port 0 address float t plaz 0 0 ns rd pulse width (p3.7) (note 16) t rlrh t clcl - 5 + t stc1 t clcl - 5 + t stc1 2t clcl - 5 + t stc1 2t clcl - 5 + t stc1 2t clcl - 5 + t stc1 ns wr pulse width (p3.6) (note 16) t wlwh t clcl - 5 + t stc1 t clcl - 5 + t stc1 2t clcl - 5 + t stc1 2t clcl - 5 + t stc1 2t clcl - 5 + t stc1 ns rd (p3.7) low to valid data in (note 16) t rldv t clcl - 18 + t stc1 t clcl - 18 + t stc1 2t clcl - 18 + t stc1 2t clcl - 18 + t stc1 2t clcl - 18 + t stc1 ns data hold after rd (p3.7) t rhdx 0 0 0 0 0 ns data float after rd (p3.7) t rhdz t clcl - 5 t clcl - 5 ns movx ale low to input data valid (note 16) t lldv 2t clcl - 8 + t stc1 2t clcl - 5 + t stc1 ns
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 6 of 47 ac characteristics (continued) (v cc = 4.5v to 5.5v, t o = -40c to +85c.) (see figure 1 , figure 2 , and figure 3 .) 1-cycle page mode 1 2-cycle page mode 1 4-cycle page mode 1 page mode 2 nonpage mode parameter symbol min max min max min max min max min max units port 0 address to valid data in (note 16) t avdv0 3t clcl - 20 + t stc1 3t clcl - 20 + t stc1 ns port 2 address to valid data in (note 16) t avdv2 t clcl - 20 + t stc1 1.5t clcl - 20 + t stc1 3.5t clcl - 20 + t stc1 3.0t clcl - 20 + t stc1 3.5t clcl - 20 + t stc1 ns ale low to rd or wr low (note 16) t llrl ( t llwl) 0.5t clcl - 8 + t stc2 0.5t clcl + 6 + t stc2 2t clcl - 8 + t stc2 2t clcl + 6 + t stc2 4t clcl - 8 + t stc2 4t clcl + 6 + t stc2 0.5t clcl - 8 + t stc2 0.5t clcl + 4 + t stc2 0.5t clcl - 8 + t stc2 0.5t clcl + 5 + t stc2 ns port 0 address valid to rd or wr low (note 16) t avrl0 ( t avwl0) 1.5t clcl - 5 + t stc2 t clcl - 5 + t stc2 ns port 2 address valid to rd or wr low (note 16) t avrl2 (t avwl2) 0 + t stc5 - 5 0.5t clcl - 5 + t stc5 1.5t clcl - 5 + t stc5 t clcl - 5 + t stc5 1.5t clcl - 5 + t stc5 ns data out valid to wr transition (note 15) t qvwx -5 -5 -5 -5 -5 ns data hold after wr (note 15) t whqx t clcl + t stc2 - 10 t clcl + t stc2 - 10 t clcl + t stc2 - 10 t clcl + t stc2 - 10 t clcl + t stc2 - 10 ns rd or wr high to ale high (note 15) t rhlh ( t whlh) t stc2 - 2 t stc2 + 4 t stc2 - 2 t stc2 + 4 t stc2 - 2 t stc2 + 4 t stc2 - 2 t stc2 + 4 t stc2 - 2 t stc2 + 4 ns note: specifications to -40c are guaranteed by design and are not production tested. ac electrical characteristics assume 50% duty cycle for the oscillator and are not 100% tested, but are guaranteed by design.
ds89c430/ds89c440/ds89C450 7 of 47 note 15: the clock divide and crystal multiplier control bits in the pmr register determine the system clock frequency and the minimum/ maximum external clock speed. the term ?1/t clcl ? used in the ac characteristics variable timing table is determined from the following table. the minimum/maximum external clock speed columns clarify that [(external clock speed) x (multipliers)] cannot exceed the rated speed of the device. in addition, the use of the crystal multiplier feature establishes a minimum external spe ed. external clock speed 4x/ 2x cd1 cd0 number of external clock cycles per system clock (1/t clcl ) min max 1 0 0 1/4 5mhz 8.25mhz 0 0 0 1/2 10mhz 16.5mhz x 0 1 reserved ? ? x 1 0 1 see ac characteristics see ac characteristics x 1 1 1024 see ac characteristics see ac characteristics note 16: external movx instruction times are dependent upon the setting of the md2, md1, and md0 bits in the clock control register. the terms ?t stc1 , t stc2 , t stc3 ? used in the variable timing table above are calculated through the use of the table given below. md2 md1 md0 movx instruction time t stc1 t stc2 t stc3 t stc4 t stc5 0 0 0 2 machine cycles 0 t clcl 0 t clcl 0 t clcl 0 t clcl 0 t clcl 0 0 1 3 machine cycles 2 t clcl 1 t clcl 0 t clcl 0 t clcl 1 t clcl 0 1 0 4 machine cycles 6 t clcl 1 t clcl 0 t clcl 0 t clcl 1 t clcl 0 1 1 5 machine cycles 10 t clcl 1 t clcl 0 t clcl 0 t clcl 1 t clcl 1 0 0 6 machine cycles 14 t clcl 5 t clcl 4 t clcl 1 t clcl 1 t clcl 1 0 1 7 machine cycles 18 t clcl 5 t clcl 4 t clcl 1 t clcl 1 t clcl 1 1 0 8 machine cycles 22 t clcl 5 t clcl 4 t clcl 1 t clcl 1 t clcl 1 1 1 9 machine cycles 26 t clcl 5 t clcl 4 t clcl 1 t clcl 1 t clcl note 17: maximum load capacitance (to meet the above timing) for port 0, ale, psen , wr, and rd is limited to 60pf. xtal1 and xtal2 load capacitance are dependent upon the frequency of the selected crystal. figure 1. nonpage mode timing ale port 0 port 2 lsb data xtal1 p sen r d msb msb msb msb msb w r lsb lsb lsb lsb data movx movx opcode t clcl t avll2 t lhll t wlwh t llax2 t llwl t llpl t llax t lliv t aviv0 t pxix t plph t pliv t avll3 t llax3 t rlrh t plaz t whlh t whqx t qvwx t aviv2 t avdv2 t avwl2 t pxiz t avll t lldv t avdv0 t rhdx t rhdz t rldv t avwl0
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 8 of 47 figure 2. page mode 1 timing ale port 0 port 2 lsb data xtal1 p sen r d w r lsb lsb lsb data movx opcode t clcl t avll2 t lhll t rldv t wlwh t llax2 t llwl t llax t aviv2 t pxix t plph t pliv t avwl2 t llax3 t rlrh t whlh t whqx msb lsb msb msb msb lsb opcode movx t qvwx t avdv2 t rhdx figure 3. page mode 2 timing ale port 0 port 2 msb opcode xtal1 p sen r d w r msb msb lsb msb data movx movx t clcl t avll2 t lhll t wlwh t llax2 t llwl t llpl t lliv t aviv0 t pxix t pliv t avll3 t llax3 t plph t plaz t whlh t whqx t qvwx t aviv2 t avdv2 t avwl2 t pxiz t avll t lldv t avdv0 t rhdx t rhdz t rldv t avwl0 t llax lsb lsb lsb lsb lsb opcode data t rlrh
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 9 of 47 external clock characteristics (v cc = 4.5v to 5.5v, t o = -40c to +85c.) parameter symbol min max units clock high time t chcx 10 ns clock low time t clcx 10 ns clock rise time t clch 5 ns clock fall time t chcl 5 ns serial port mode 0 timing characteristics (v cc = 4.5v to 5.5v, t o = -40c to +85c.) ( figure 4 ) 33mhz variable parameter symbol conditions min max min max units sm2 = 0 360 12t clcl ns clock cycle time t xlxl sm2 = 1 120 4t clcl ns sm2 = 0 200 10t clcl - 100 ns output data setup to clock rising t qvxh sm2 = 1 40 3t clcl - 10 ns sm2 = 0 50 2t clcl - 10 ns output data hold to clock rising t xhqx sm2 = 1 20 t clcl - 100 sm2 = 0 0 0 ns input data hold after clock rising t xhdx sm2 = 1 0 0 sm2 = 0 200 10t clcl - 100 ns clock rising edge to input data valid t xhdv sm2 = 1 40 3t clcl - 50 ns note: sm2 is the serial port 0 mode bit 2. when serial port 0 is operating in mode 0 (sm0 = sm1 = 0), sm2 determines the number of c rystal clocks in a serial port clock cycle.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 10 of 47 figure 4. serial port timing t xlxl t xhdv t xhdx t xhqx t qvxh transmit receive ale write to sbuf psen rxd data out txd clock txd clock r1 ti write to scon to clear ri rxd data in d0 di d3 d4 d2 d5 d6 d7 d7 d6 d5 d4 d3 d2 di d0 rxd data in txd clock r e c e i v e t r a n s m i t d0 di d6 d7 write to scon to clear ri r1 d0 di d6 d7 1/(xtal freq/12) ale psen write to sbuf rxd data out txd clock ti txd clock serial port (synchronous mode) sm2 = 0 tdx clock = xtal freq/12 serial port (synchronous mode) sm2 = 1 tdx clock = xtal freq/4
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 11 of 47 power-cycle timing characteristics (v cc = 4.5v to 5.5v, t o = -40c to +85c.) parameter symbol min typ max units crystal startup time (note 18) t csu 8 ms power-on reset delay (note 19) t por 65,536 t clcl note 18: startup time for a crystal varies with load capacitance and manufacturer. the time shown is for an 11.0592mhz crystal manufact ured by fox electronics. note 19: reset delay is a synchronous counter of crystal oscillations after crystal startup. counting begins when the level on the xtal 1 pin meets the v ih2 criteria. at 33mhz, this time is 1.99ms. flash memory programming characteristics (v cc = 4.5v to 5.5v) parameter symbol min typ max units data retention t dr 100 years write/erase endurance t endure 10,000 cycles program/time t prog 40  s erase time t erase 4 ms
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 12 of 47 pin description pin pdip plcc tqfp name function 40 12, 44 6, 38 v cc +5v 20 1, 22, 23, 34 16, 17, 28, 39 gnd logic ground 9 10 4 rst external reset. the rst input pin is bidirectional and contains a schmitt trigger to recognize external active-high reset inputs. the pin also employs an internal pulldown resistor to allow for a combination of wire-ored external reset sources. an rc is not required for power-up, as the device provides this function internally. 19 21 15 xtal1 18 20 14 xtal2 crystal oscillators. these pins provide support for fundamental-mode parallel-resonant at-cut crystals. xtal1 also acts as an input if there is an external clock source in place of a crystal. xtal2 serves as the output of the crystal amplifier. 29 32 26 psen program store enable. this signal is commonly connected to optional external program memory as a chip enable. psen provides an active-low pulse and is driven high when external program memory is not being accessed. in one-cycle page mode 1, psen remains low for consecutive page hits. 30 33 27 ale/ prog address latch enable. this signal functions as a clock to latch 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 transparent latch. in default mode, ale has a pulse width of 1.5 xtal1 cycles and a period of four xtal1 cycles. in page mode, the ale pulse width is altered according to the page mode selection. in traditional 8051 mode, ale is high when using the emi reduction mode and during a reset condition. ale can be enabled by writing aleon = 1 (pmr.2). note that ale operates independently of aleon during external memory accesses. as an alternate mode, this pin ( prog ) is used to execute the parallel program function. 39 43 37 p0.0 (ad0) 38 42 36 p0.1 (ad1) 37 41 35 p0.2 (ad2) 36 40 34 p0.3 (ad3) 35 39 33 p0.4 (ad4) 34 38 32 p0.5 (ad5) 33 37 31 p0.6 (ad6) 32 36 30 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 logic 0, the port transitions to a bidirectional data bus. this bus is used to read external program memory and read/write external ram or peripherals. when used as a memory bus, the port provides weak pullups for logic 1 outputs. the reset condition of port 0 is tri-state. pullup resistors are required only when using port 0 as an i/o port.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 13 of 47 pin description (continued) pin pdip plcc tqfp name function 1 2 40 p1.0 2 3 41 p1.1 3 4 42 p1.2 4 5 43 p1.3 5 6 44 p1.4 6 7 1 p1.5 7 8 2 p1.6 8 9 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 logic 1. in this state, a weak pullup holds the port high. this condition also serves as an input state, since any external circuit that writes to the port overcomes the weak pullup. when software writes a 0 to any port pin, the ds89c430/ds89c440/ds89C450 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 causes a strong transition driver to turn on, followed by a weaker sustaining pullup. once the momentary strong driver turns off, the port again becomes the output high (and input) state. the alternate functions of port 1 are as follows: port alternate function p1.0 t2 external i/o for timer/counter2 p1.1 t2ex timer 2 capture/reload trigger p1.2 rxd1 serial port 1 receive p1.3 txd1 serial port 1 transmit 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) 21 24 18 p2.0 (a8) 22 25 19 p2.1 (a9) 23 26 20 p2.2(a10) 24 27 21 p2.3(a11) 25 28 22 p2.4(a12) 26 29 23 p2.5(a13) 27 30 24 p2.6(a14) 28 31 25 p2.7(a15) port 2 (a8?a15), i/o. port 2 is an 8-bit, 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 overcomes the weak pullup. when software writes a 0 to any port pin, the ds89c430/ds89c440/ds89C450 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 causes 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 the msb of the external address bus when reading external program memory and read/write external ram or peripherals. in page mode 1, port 2 provides both the msb and lsb of the external address bus. in page mode 2, it provides the msb and data. 10 11 5 p3.0 11 13 7 p3.1 12 14 8 p3.2 13 15 9 p3.3 14 16 10 p3.4 15 17 11 p3.5 16 18 12 p3.6 17 19 13 p3.7 port 3, i/o. port 3 functions as both an 8-bit, bidirectional 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 overcomes the weak pullup. when software writes a 0 to any port pin, the ds89c430/ds89c440/ds89C450 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 causes 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 as follows: port alternate function p3.0 rxd0 serial port 0 receive p3.1 txd0 serial port 0 transmit 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 31 35 29 ea external access. allows selection of internal or external program memory. connect to ground to force the ds89c430/ds89c440/ds89C450 to use an external memory program memory. the internal ram is still accessible as determined by register settings. connect to v cc to use internal flash memory.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 14 of 47 figure 5. functional diagram control and sequencer internal registers decode r ir interrupt cpu serial i/o timer/ counters 1kb x 8 ram 16kb/32kb 64kb x 8 flash i/o ports sfrs dptr dptr1 sp pc ar inc ar watchdog timer and power manager clock and reset memory control rom loader xtal2 xtal1 rst p sen e a ale/ prog p0 p1 p2 p3 address bus internal control bus detailed description the ds89c430, ds89c440, and ds89C450 are pin compatible with all three packages of the standard 8051 and include standard resources such as three timer/counters, serial port, and four 8-bit i/o ports. the three part numbers vary only by the amount of internal flash memory (ds89c430 = 16kb, ds89c440 = 32kb, ds89C450 = 64kb), which can be in-system/in-application programmed from a serial port using rom-resident or user-defined loader software. for volume deployments, the flash can also be loaded externally using standard commercially available parallel programmers. besides greater speed, the ds89c430/ds89c440/ds89C450 include 1kb of data ram, a second full hardware serial port, seven additional interrupts, two extra levels of interrupt priority, programmable watchdog timer, brownout monitor, and power-fail reset. dual data pointers (dptrs) are included to speed up block data-memory moves with further enhancements coming from selectable automatic increment/decrement and toggle select operation. the speed of movx data memory access can be adjusted by adding stretch values up to 10 machine cycles for flexibility in selecting external memory and peripherals. a power management mode consumes significantly lower power by slowing the cpu execution rate from one clock period per cycle to 1024 clock periods per cycle. a selectable switchback feature can automatically cancel this mode to enable normal speed responses to interrupts. for emi-sensitive applications, the microcontroller can disable the ale signal when the processor is not accessing external memory. dallas semiconductor ds89c430/ds89c440/ ds89C450
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 15 of 47 terminology the term ds89c430 is used in the remainder of the document to refer to the ds89c430, ds89c440, and ds89C450, unless otherwise specified. compatibility the ds89c430 is a fully static cmos 8051-compatible microcontroller similar in functional features to the ds87c520, but it offers much higher performance. in most cases, the ds89c430 can drop into an existing socket for the 8xc51 family, immediately improving the operation. while remaining familiar to 8051 family users, the ds89c430 has many new features. in general, software written for existing 8051-based systems works without modification on the ds89c430, with the exception of critical timing routines, as the ds89c430 performs its instructions much faster for any given crystal selection. the ds89c430 provides three 16-bit timer/counters, two full-duplex serial ports, and 256 bytes of direct ram plus 1kb of extra movx ram. i/o ports can operate as in standard 80 51 products. timers def ault to 12 clocks-per- cycle operation to keep their timing compatible with a legacy 8051 family systems. however, timers are individually programmable to run at the new one clock per cycle if desired. the ds89c430 provides several new hardware features, described in subsequent sections, implemented by new special-function registers (sfrs). performance overview featuring a completely redesigned high-speed 8051-compatible core, the ds89c430 allows operation at a higher clock frequency. this updated core does not have the wasted memory cycles that are present in a standard 8051. a conventional 8051 generates machine cycles using the clock frequency divided by 12. the same machine cycle takes one clock in the ds89c430. thus, the fastest instructions execute 12 times faster for the same crystal frequency (and actually 24 times faster for the inc data pointer instruction). it should be noted that this speed improvement is reduced when using external memory access modes that require more than one clock per cycle. individual program improvement depends on the instructions used. speed-sensitive applications would make the most use of instructions that are 12 times faster. however, the sheer number of 12-to-1 improved op codes makes dramatic speed improvements likely for any code. these architectural improvements produce instruction cycle times as low as 30ns. the dual data pointer feature also allows the user to eliminate wasted instructions when moving blocks of memory. the new page modes allow for increased efficiency in external memory accesses. instruction set summary all instructions have the same functionality as their 8051 counterparts, including their affect on bits, flags, and other status functions. however, the timing of each instruction is different, in both absolute and relative number of clocks. for absolute timing of real-time events, the duration of software loops can be calculated using information given in the instruction set table in the ultra-high-speed flash 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 a reduced number of clocks per increment to take advantage of faster processor operation. the relative time of some instructions may be different in the new architecture. 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 ds89c430, the movx instruction takes as little as two machine cycles or two oscillator cycles, but the ?mov direct, direct? uses three machine cycles or three oscillator cycles. while both are faster than their original counterparts, they now have different execution times. this is because the ds89c430 usually uses one machine cycle for each instruction byte and requires one cycle for execution. the user concerned with precise program timing should examine the timing of each instruction to become familiar with the changes . special-function registers (sfrs) all peripherals and operations that are not explicit instructions in the ds89c430 are controlled through sfrs. the most common features basic to the architecture are mapped to the sfrs. these include the cpu registers (acc, b, and psw), data pointers, stack pointer, i/o ports, timer/counters, and serial ports. in many cases, an sfr controls an individual function or reports the function?s status. the sfrs reside in register locations 80h?ffh and are only accessible by direct addressing. sfrs with addresses ending in 0h or 8h are bit addressable.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 16 of 47 all standard sfr locations from the 8051 are duplicated in the ds89c430, and several sfrs have been added for the unique features of the ds89c430. most of these features are controlled by bits in sfrs located in unused locations in the 8051 sfr map, allowing for increased functionality while maintaining complete instruction set compatibility. table 1 shows the sfrs and their locations. table 2 specifies the default reset condition for all sfr bits. data pointers the data pointers (dptr and dptr1) are used to assign a memory address for the movx instructions. this address can point to a movx ram location (on-chip or off-chip) or a memory-mapped peripheral. two pointers are useful when moving data from one memory area to another, or when using a memory-mapped peripheral for both source and destination addresses. the user can select the active pointer through a dedicated sfr bit (sel = dps.0), or can activate an automatic toggling feature for altering the pointer selection (tsl = dps.5). an additional feature, if selected, provides automatic incrementing or decrementing of the current dptr. stack pointer the stack pointer denotes the register location at the top of the stack, which is the last used value. the user can place the stack anywhere in the scratchpad ram by setting the stack pointer to the desired location, although the lower bytes are normally used for working registers. i/o ports the ds89c430 offers four 8-bit i/o ports. each i/o port is represented by an sfr location and can be written or read. the i/o port has a latch that contains the value written by software. counter/timers three 16-bit timer/counters are available in the ds89c430. each timer is contained in two sfr locations that can be read or written by software. the timers are controlled by other sfrs, described in the sfr bit description section of the ultra-high-speed flash microcontroller user?s guide . serial ports the ds89c430 provides two uarts that are controlled and accessed by sfrs. each uart has an address that is used to read and write the value contained in the uart. the same address is used for both read and write operations, and the read and write operations are distinguished by the instruction. its own sfr control register controls each uart. table 1. sfr register map register address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 p0 80h p0.7 p0.6 p0.5 p0.4 p0.3 p0.2 p0.1 p0.0 sp 81h dpl 82h dph 83h dpl1 84h dph1 85h dps 86h id1 id0 tsl aid ? ? ? sel pcon 87h smod_0 smod0 ofdf ofde gf1 gf0 stop idle tcon 88h tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 tmod 89h gate c/ t m1 m0 gate c/ t m1 m0 tl0 8ah tl1 8bh th0 8ch
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 17 of 47 table 1. sfr regist er map (continued) register address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 th1 8dh ckcon 8eh wd1 wd0 t2m t1m t0m md2 md1 md0 p1 90h p1.7/ int5 p1.6/int4 p1.5/ int3 p1.4/int2 p1.3/txd1 p1.2/rxd1 p1.1/t2ex p1.0/t2 exif 91h ie5 ie4 ie3 ie2 ckry rgmd rgsl bgs ckmod 96h t2mh t1mh t0mh ? ? ? scon0 98h sm0/fe_0 sm1_0 sm2_0 ren_0 tb8_0 rb8_0 ti_0 ri_0 sbuf0 99h acon 9dh pagee pages1 pages0 ? ? ? ? ? p2 a0h p2.7 p2.6 p2.5 p2.4 p2.3 p2.2 p2.1 p2.0 ie a8h ea es1 et2 es0 et1 ex1 et0 ex0 saddr0 a9h saddr1 aah p3 b0h p3.7/ rd p3.6/ wr p3.5/t1 p3.4/t0 p3.3/ int1 p3.2/ int0 p3.1/txd0 p3.0/rxd0 ip1 b1h ? mps1 mpt2 mps0 mpt1 mpx1 mpt0 mpx0 ip0 b8h ? lps1 lpt2 lps0 lpt1 lpx1 lpt0 lpx0 saden0 b9h saden1 bah scon1 c0h sm0/fe_1 sm1_1 sm2_1 ren_1 tb8_1 rb8_1 ti_1 ri_1 sbuf1 c1h romsize c2h prame rms2 rms1 rms0 pmr c4h cd1 cd0 swb ctm 4x/ 2x aleon dme1 dme0 status c5h pis2 pis1 pis0 ? spta1 spra1 spta0 spra0 ta c7h t2con c8h tf2 exf2 rclk tclk exen2 tr2 c/ t2 cp/ rl2 t2mod c9h t2oe dcen rcap2l cah rcap2h cbh tl2 cch th2 cdh psw d0h cy ac f0 rs1 rs0 ov f1 p fcntl d5h fbusy ferr fc3 fc2 fc1 fc0 fdata d6h wdcon d8h smod_1 por epfi pfi wdif wtrf ewt rwt acc e0h eie e8h ? ? ? ewdi ex5 ex4 ex3 ex2 b f0h eip1 f1h ? ? ? mpwdi mpx5 mpx4 mpx3 mpx2 eip0 f8h ? ? ? lpwdi lpx5 lpx4 lpx3 lpx2 note: shaded bits are timed-access protected.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 18 of 47 table 2. sfr reset value register address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 p0 80h 1 1 1 1 1 1 1 1 sp 81h 0 0 0 0 0 1 1 1 dpl 82h 0 0 0 0 0 0 0 0 dph 83h 0 0 0 0 0 0 0 0 dpl1 84h 0 0 0 0 0 0 0 0 dph1 85h 0 0 0 0 0 0 0 0 dps 86h 0 0 0 0 0 1 0 0 pcon 87h 0 0 special special 0 0 0 0 tcon 88h 0 0 0 0 0 0 0 0 tmod 89h 0 0 0 0 0 0 0 0 tl0 8ah 0 0 0 0 0 0 0 0 tl1 8bh 0 0 0 0 0 0 0 0 th0 8ch 0 0 0 0 0 0 0 0 th1 8dh 0 0 0 0 0 0 0 0 ckcon 8eh 0 0 0 0 0 0 0 1 p1 90h 1 1 1 1 1 1 1 1 exif 91h 0 0 0 0 special special special 0 ckmod 96h 1 1 0 0 0 1 1 1 scon0 98h 0 0 0 0 0 0 0 0 sbuf0 99h 0 0 0 0 0 0 0 0 acon 9dh 0 0 0 1 1 1 1 1 p2 a0h 1 1 1 1 1 1 1 1 ie a8h 0 0 0 0 0 0 0 0 saddr0 a9h 0 0 0 0 0 0 0 0 saddr1 aah 0 0 0 0 0 0 0 0 p3 b0h 1 1 1 1 1 1 1 1 ip1 b1h 1 0 0 0 0 0 0 0 ip0 b8h 1 0 0 0 0 0 0 0 saden0 b9h 0 0 0 0 0 0 0 0 saden1 bah 0 0 0 0 0 0 0 0 scon1 c0h 0 0 0 0 0 0 0 0 sbuf1 c1h 0 0 0 0 0 0 0 0 romsize c2h 1 1 1 1 0 1 0 1 pmr c4h 1 0 0 0 0 0 0 0 status c5h 0 0 0 1 0 0 0 0 ta c7h 1 1 1 1 1 1 1 1 t2con c8h 0 0 0 0 0 0 0 0 t2mod c9h 1 1 1 1 1 1 0 0 rcap2l cah 0 0 0 0 0 0 0 0 rcap2h cbh 0 0 0 0 0 0 0 0
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 19 of 47 table 2. sfr reset value (continued) register address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 tl2 cch 0 0 0 0 0 0 0 0 th2 cdh 0 0 0 0 0 0 0 0 psw d0h 0 0 0 0 0 0 0 0 fcntl d5h 1 0 1 1 0 0 0 0 fdata d6h 0 0 0 0 0 0 0 0 wdcon d8h 0 special 0 special 0 special special 0 acc e0h 0 0 0 0 0 0 0 0 eie e8h 1 1 1 0 0 0 0 0 b f0h 0 0 0 0 0 0 0 0 eip1 f1h 1 1 1 0 0 0 0 0 eip0 f8h 1 1 1 0 0 0 0 0 note: consult the ultra-high-speed flash microcontroller user?s guide for more information about the bits marked ?special.? memory organization there are three distinct memory areas in the ds89c430: scratchpad registers, program memory, and data memory. the registers are located on-chip but the program and data memory spaces can be on-chip, off-chip, or both. the ds89c430/ds89c440/ds89C450 have 16kb/32kb/64kb of on-chip program memory, respectively, implemented in flash memory and also have 1kb of on-chip data memory space that can be configured as program space using the prame bit in the romsize feature. the ds89c430 uses a memory-addressing scheme that separates program memory from data memory. the program and data segments can be overlapped since they are accessed in different manners. if the maximum address of on-chip program or data memory is exceeded, the ds89c430 performs an external memory access using the expanded memory bus. the psen signal goes active low to serve as a chip enable or output enable when performing a code fetch from external program memory. movx instructions activate the rd or wr signal for external movx data memory access. the program memory romsize feature allows software to dynamically configure the maximum address of on-chip program memory. this allows the ds89c430 to act as a bootloader for an external memory. it also enables the use of the overlapping external program spaces. the lower 128 bytes of on-chip flash memory?if romsize is greater than 0?are used to store reset and interrupt vectors. 256 bytes of on-chip ram serve as a register area and program stack, which are separated from the data memory. register space registers are located in the 256 bytes of on-chip ram labeled ?internal registers? ( figure 6 ), which can be divided into two sub areas of 128 bytes each. separate classes of instructions are used to access the registers and the program/data memory. the upper 128 bytes are overlapped with the 128 bytes of sfrs in the memory map. indirect addressing is used to access the upper 128 bytes of scratchpad ram, while the sfr area is accessed using direct addressing. the lower 128 bytes can be accessed using direct or indirect addressing. there are four banks of eight working registers in the lower 128 bytes of scratchpad ram. the working registers are general-purpose ram locations that can be addressed within the selected bank by any instructions that use r0?r7. the register bank selection is controlled through the program status register in the sfr area. the contents of the working registers can be used for indirect addressing of the upper 128 bytes of scratchpad ram. individually addressable bits in the ram and sfr areas support boolean operations. in the scratchpad ram area, registers 20h?2fh are bit addressable by software using boolean operation instructions. another use of the scratchpad ram area is for the stack. the stack pointer, contained in the sfrs, is used to select storage locations for program variables and for return addresses of control operations.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 20 of 47 figure 6. memory map (as shown for the ds89c430) external data memory 8k x 8 flash memory (program) 1k x 8 sram data or prog mem addr from 400 - 7ff 128 bytes indirect addressing bit addressable bank 3 bank 2 bank 1 bank 0 00 1f 20 2f 7f 80 128 bytes sfr ff 0000 1fff 2000 3fff internal memory 03ff 0000 ffff ffff 4000 0000 0000 03ff external program memory internal registers 8k x 8 flash memory (program) memory configuration as illustrated in figure 6 , the ds89c430 incorporates two 8kb flash areas for on-chip program memory and 1kb of sram for on-chip data memory or a particular range (400?7ff) of ?alternate? program memory space. the ds89c440 incorporates two 16kb flash memories and the ds89C450 incorporates two 32kb flash memories. the ds89c430 uses an address scheme that separates program memory from data memory such that the 16-bit address bus can address each memory area up to maximum of 64kb.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 21 of 47 program memory access on-chip program memory begins at address 0000h and is contiguous through 3fffh (16kb) on the ds89c430, through 7fffh (32kb) on the ds89c440, and through ffffh (64kb) on the ds89C450. exceeding the maximum address of on-chip program memory causes the device to access off-chip memory. the maximum on-chip decoded address is selectable by software using the romsize feature. software can cause the ds89c430 to behave like a device with less on-chip memory. this is beneficial when overlapping external memory 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 and then be restored to access on-chip memory. in fact, all the on-chip memory can be removed from the memory map allowing the full 64kb memory space to be addressed from off-chip memory. program memory addresses that are larger than the selected maximum are automatically fetched from outside the part through ports 0 and 2. figure 6 shows a depiction of the memory map. the romsize register is used to select the maximum on-chip decoded address for program memory. bits rms2, rms1, and rms0 have the following effect: rms2 rms1 rms0 maximum on-chip program memory address (size/address) 0 0 0 0kb 0 0 1 1kb/03ffh 0 1 0 2kb/07ffh 0 1 1 4kb/0fffh 1 0 0 8kb/1fffh 1 0 1 16kb/3fffh (ds89c430 default) 1 1 0 32kb/7fffh (ds89c440 default) 1 1 1 64kb/ffffh (ds89C450 default) the reset default condition for all devices is to their maximum on-chip program memory size. when accessing external program memory, that amount of external memory would be inaccessible. to select a smaller effective program memory size, software must alter bits rms2?rms0. altering these bits requires a timed-access procedure, as explained later. care should be taken so that changing the romsize register does not corrupt program execution. for example, assume that a ds89c430 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 r egister to 4kb (0000h?0fffh) in the current state, the device immediately jumps to external program execution because program code from 4kb to 16kb (1000h?3fffh) is no longer located on-chip. this could result in code misalignment and execution of an invalid instruction. the recommended method is to modify the romsize register from a location in memory that is internal (or external) both before and after the operation. in the above example, the instruction that modifies the romsize register should be located below the 4kb (1000h) boundary or above the 16kb (3fffh) boundary so that it is unaffected by the memory modification. the same precaution should be applied if the internal program memory size is modified while executing from external program memory. for nonpage mode operations, 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. off-chip program memory access also occurs if the ea pin is a logic 0. ea overrides all romsize bit settings. the psen signal goes active (low) to serve as a chip enable or output enable when ports 0 and 2 fetch from external program memory. the rd and wr signals are used to control the external data memory device. data memory is accessed by movx instructions. the movx@ri instruction uses the value in the designated working register to provide the lsb of the address, while port 2 supplies the address msb. the movx@dptr instruction uses one of the two data pointers to move data over the entire 64kb external data memory space. software selects the data pointer used by writing to the sel bit (dps.0). the ds89c430 also provides a user option for high-speed external memory access by reconfiguring the external memory interface into page mode operation. note: when using the original 8051 expanded bus structure, the throughput is reduced by 75% compared with that of internal operations. this is because of the cpu being stalled for three out of four clocks, waiting for the data
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 22 of 47 fetch that takes four clocks. page mode 1 is the only external addressing mode where the cpu does not require stalls for external memory access, but page misses result in reduced external access performance. on-chip program memory the processor can fetch the entire on-chip program memory range automatically. by default, the reset routines and all interrupt vectors are located in the lower 128 bytes of the on-chip program memory. on-chip program memory is logically divided into pairs of 8kb, 16kb, or 32kb flash memory banks to support in- application programming. the on-chip program memory is designed to be programmed in-application with the standard 5v v cc supply under the control of the user software or by using a built-in program memory loader. it can also be programmed in standard flash or eprom programmers. the ds89c430 incorporates a memory management unit (mmu) and other hardware to support any of the three programming methods. the mmu controls program and data memory access, and provides sequencing and timing controls for programming of the on-chip program memory. a separate security flash block supports a standard three-level lock, a 64-byte encryption array, and other flash options. security features the ds89c430 incorporates a 64-byte encryption array, allowing the user to verify program codes while viewing the data in encrypted form. the encryption array is implemented in a security flash memory block that has the same electrical and timing characteristics as the on-chip program memory. once the encryption array is programmed to non-ffh, the data presented in the verify mode is encrypted. each byte of data is xnored with a byte in the encryption array during verification. a three-level lock restricts viewing of the internal program and data memory contents. by programming the three lock bits, the user can select a level of security as specified in table 3 . once a security level is selected and programmed, the setting of the lock bits remains. only a mass erase can erase these bits and allow reprogramming the security level to a less restricted protection. table 3. flash memory lock bits level lb1 lb2 lb3 protection 1 1 1 1 no program lock. encrypted verify if encryption array is programmed. 2 0 1 1 prevent movc in external memory from reading program code in internal memory. ea is sampled and latched on reset. allow no further parallel or program memory loader programming. 3 x 0 1 level 2 plus no verify operation. also prevent movx in external memory from reading internal sram. 4 x x 0 level 3 plus no external execution. the ds89c430 provides user-selectable options that must be set before beginning software execution. the option control register uses flash bits rather than sfrs, and is individually erasable and programmable as a byte-wide register. bit 3 of this register is defined as the watchdog por. setting this bit to 1 disables the watchdog reset function on power-up. clearing this bit to 0 enables the watchdog reset function automatically. other bits of this register are undefined and are at logic 1 when read. the value of this register can be read at address fch in parallel programming mode or executing a verify-option-control register instruction in rom loader mode or in- application programming mode. the signature bytes can be read in rom loader mode or in parallel programming mode. reading data from addresses 30h, 31h, and 60h provides signature information on manufacturer, part, and extension as follows: address value meaning 30h dah manufacturer id 31h 43h ds89c430 device id 31h 44h ds89c440 device id 31h 45h ds89C450 device id 60h 01h device extension
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 23 of 47 note: the read/write accessibility of the flash memory during in-application programming is not affected by the state of the lock bits. however, the lock bits do affect the read/write accessibility in rom loader and parallel programming modes. in-application programming by user software the ds89c430 supports in-application programming of on-chip flash memory by user software. in-application programming is initiated by writing a flash command into the flash control (fcntl:d5h) register to enable the flash memory for erase/program/verify operations. address and data are input into the mmu through the flash data (fdata:d6h) register. the flash command also enables read/write accesses to the fdata. the mmu?s sequencer provides the operation sequences and control functions to the flash memory. the mmu is designed to operate independently from the processor, except for read/write access to the sfrs. only the upper bank of the on-chip program memory can be in-application programmed by the user software. the lower bank of the on-chip program memory contains system hardware-dependent codes that are crucial to system operation and should not be altered during in-application programming. all flash operations are self-timed. the user software can monitor the progress of an erase or programming operation through the flash busy (fbusy;fcntl.7) bit with a reset value at logic 1. a selected operation automatically starts when required data is written to the fdata sfr. the mmu clears the fbusy bit to indicate the start of a write/erase operation. the fbusy bit may not change state for up to 1  s after the operation is requested. during this time, the application should poll the status of the fbusy bit waiting for it to change state. this bit is held low until either the end of the operation or until an error indicator is returned. a flash operating failure terminates the current operation and sets the flash error flag (ferr;fcntl.6) to logic 1. both the busy and error flags are read-only bits. read/write access during in-application programming is not affected by the state of the lock bits. a sample programming sequence for a "w rite upper program memory bank " is shown below. the command must be reentered each time an operation is requested, i.e., it is not permissible to issue the ?write upper program memory bank? command once and then repeatedly load address and data values to program a block of memory. 1. make sure the fbusy bit is 1 to indicate flash mmu is idle. 2. write 0bh to the fcntl register using the timed access sequence. 3. write address_msb to the fdata register. 4. write address_lsb to the fdata register. 5. write data_value to the fdata register. 6. make sure the fbusy bit is 0 to indicate programming has started. 7. wait for fbusy bit to return to 1 to indicate end of programming operation. 8. make sure ferr is 0 to indicate no programming error. the flash command (fc3?fc0;fcntl.3:0) bits provide flash commands as listed in table 4 .
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 24 of 47 table 4. in-application programming commands fc3:fc0 command operation 0000 read mode default state. all flash blocks are in read mode. note: the upper bank of flash memory is inaccessible for execution unless the fc3:0 bits are in the read mode (0000b) state. 0001 verify option control register read data from the option control register. data is available in the fdata at the end of the following machine cycle. fdata.3 is the logic value of the watchdog por default setting. 0010 verify security block read a byte of data from the security block. after the address byte is written to the fdata, data is available in the fdata at the end of the following machine cycle. (lock bits are addressed at 40h and fdata.5:3 are the logic value of lb1, lb2 and lb3, respectively.) 0011 verify upper program memory bank read a byte of data from upper flash memory bank (address range from 2000h to 3fffh). the first and second byte writes to the fdata are the upper and lower byte of the address. data is available in the fdata at the end of the following machine cycle after the second address byte is written. 0100 reserved for future use this command should not be modified by user programs. 1000 reserved for future use this command should not be modified by user programs. 1001 write option control register write to the option control register as data is written to fdata. bit 3 of the data byte represents the watchdog por default setting. 1010 write security block write a byte of data to the security block at a selected locations addressed by the first byte write to the fdata. the second write to the fdata is the data byte. (lock bits are addressed at 40h and the fdata 5:3 represents lock bits lb 3, lb2, and lb1, respectively.) 1011 write upper program memory bank write a byte of code to the upper flash memory bank (address range from 2000h to 3fffh). the first and second byte writes to the fdata are the upper byte and the lower byte of the address. the third write to the fdata is the data byte. 1100 erase option control register erase the option control register. the contents of this register are returned to ffh. this operation disables the watchdog reset function on power-up. 1101 erase security block erase the security flash block that contains the 64-byte encryption array and the lock bits. the content of every memory location is turned into ffh. 1110 erase upper program memory bank erase the upper bank of flash memory bank. the contents of every memory location are returned to ffh. 1111 system reset this command is used to cause a system reset. the flash command bits are cleared to 0 on all forms of reset, and it is important for the user software to clear these bits to 0 to return the flash memory to read mode from erase/program operation. this setting is a ?no operation? condition for the mmu, which allows the processor to return to its normal execution. note that the busy and error flags have no function in normal flash-read mode. the fcntl sfr can only be written using timed access. this procedure provides protection against inadvertent erase/program operation on the flash memory. any command written to the fcntl during a flash operation is ignored (fbusy = 0). to ensure data integrity, an erase command sequence should be reinitiated if an erase or program operation is interrupted by a reset.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 25 of 47 rom loader the full on-chip flash program memory space, security flash block, and external sram can be programmed in- system from an external source through serial port 0 under the control of a built-in rom loader. the rom loader also has an auto-baud feature that determines which baud-rate frequencies are being used for communication and sets the baud-rate generator for that speed. when the ds89c430 is powered up and has entered its user operating mode, the rom loader mode can be invoked at any time by forcing rst = 1, ea = 0, and psen = 0. it remains in effect until power-down or when the condition (rst = 1 and psen = ea = 0) is removed. entering the rom loader mode forces the processor to start fetching from the 2kb internal rom for program memory initialization and other loader functions. the read/write accessibility is determined by the state of the lock bits, which can be verified directly by the rom loader. the flash memory can be programmed (by the built-in rom loader) using commands that are received over the serial interface from a host pc. full details of the rom loader commands are given in the ultra-high-speed flash microcontroller user?s guide . host software to communicate with the rom loader is available in windows? format as well as other platforms. contact our technical support department at micro.support@dalsemi.com for more information. parallel programming mode the microcontroller also supports a programming mode such as that used by commercial device programmers. this mode is of little utility in normal applications and is only used by commercial device programmers. for information on this mode, contact our technical support department at micro.support@dalsemi.com . data pointer increment/decrement and options the ds89c430 incorporates a hardware feature to assist applications that require data pointer increment/ decrement. data pointer increment/decrement bits id0 and id1 (dps.6 and dps.7) define how the inc dptr instruction functions in relation to the active dptr (selected by the sel bit). setting id0 = 1 and sel = 0 enables the decrement operation for dptr, and execution of the inc dptr instruction decrements the dptr contents by 1. similarly, setting id1 = 1 and sel = 1 enables the decrement operation for dptr1, and execution of the inc dptr instruction decrements the dptr1 contents by 1. with this feature, the user can configure the data pointers to operate in four ways for the inc dptr instruction: id1 id0 sel = 0 sel = 1 0 0 inc dptr inc dptr1 0 1 dec dptr inc dptr1 1 0 inc dptr dec dptr1 1 1 dec dptr dec dptr1 sel (dps.0) bit always selects the active data pointer. the ds89c430 offers a programmable option that allows any instructions related to data pointer to toggle the sel bit automatically. this option is enabled by setting the toggle-select-enable bit (tsl?dps.5) to a logic 1. once enabled, the sel bit is automatically toggled after the execution of one of the following five dptr-related instructions: inc dptr mov dptr #data16 movc a, @a+dptr movx a, @dptr movx @dptr, a the ds89c430 also offers a programmable option that automatically increases (or decreases) the contents of the selected data pointer by 1 after the execution of a dptr-related instruction. the actual function (increment or decrement) is dependent on the setting of the id1 and id0 bits. this option is enabled by setting the automatic increment/decrement enable (aid?dps.4) to a logic 1 and is affected by the following three instructions: movc a, @a+dptr movx a, @dptr movx @dptr, a windows is a registered trademark of microsoft corporation.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 26 of 47 external memory the ds89c430 executes external memory cycles for code fetches and read/writes of external program and data memory. a nonpage external memory cycle is four times slower than the internal memory cycles (i.e., an external memory cycle contains four system clocks). however, a page mode external memory cycle can be completed in one, two, or four system clocks fo r a page hit and two, four, or eight sy stem clocks for a page miss, depending on user selection. the ds89c430 also supports a second page mode operation with a different external bus structure that provides for fast external code fetches but uses four system clock cycles for data memory access. external program memory interface (nonpage mode) figure 7 shows the timing relationship for internal and external code fetches when cd1 and cd0 are set to 10b, assuming the microcontroller is in nonpage mode for external fetches. note that an external program fetch takes four system clocks, and an internal program fetch r equires only one system clock. as illustrated in figure 7 , ale is deasserted when executing an internal memory fetch. the ds89c430 provides a programmable user option to turn on ale during internal program memory operation. ale is automatically enabled for code fetch externally, independent of the setting of this option. psen is only asserted for external code fetches, and is inactive during internal execution. figure 7. external program memory access (nonpage mode, cd1:cd0 = 10) internal memory cycles c2 c3 c4 c1 c2 c3 c4 xtal1 ale port 0 port 2 p sen c1 external memory cycle external memory cycle msb add msb add lsb add data lsb add data
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 27 of 47 external data memory interf ace in nonpage mode operation just like the program memory cycle, the external data memory cycle is four times slower than the internal data memory cycle in nonpage mode. a basic internal memory cycle contains one system clock and a basic external memory cycle contains four system clocks for nonpage mode operation. the ds89c430 allows software to adjust the speed of external data memory access by stretching the memory bus cycle. ckcon (8eh) provides an application-selectable stretch value for this purpose. software can change the stretch value dynamically by changing the setting of ckcon.2?ckcon.0. table 5 shows the data memory cycle stretch values and their effect on the external movx memory bus cycle and the control signal pulse width in terms of the number of oscillator clocks. a stretch machine cycle always contains four system clocks. table 5. data memory cycle stretch values rd / wr pulse width (in number of oscillator clocks) md2:md0 stretch cycles 4x/ 2x , cd1, cd0 = 100 4x/ 2x , cd1, cd0 = 000 4x/ 2x , cd1, cd0 = x10 4x/ 2x , cd1, cd0 = x11 000 0 0.5 1 2 2048 001 1 1 2 4 4096 010 2 2 4 8 8192 011 3 3 6 12 12,288 100 7 4 8 16 16,384 101 8 5 10 20 20,480 110 9 6 12 24 24,576 111 10 7 14 28 28,672 as table 5 shows, the stretch feature supports eight stretched external data memory access cycles, which can be categorized into three timing groups. when the stretch value is cleared to 000b, there is no stretch on external data memory access and a movx instruction is completed in two basic memory cycles. when the stretch value is set to 1, 2, or 3, the external data memory access is extended by 1, 2, or 3 stretch machine cycles, respectively. note that the first stretch value does not result in adding four system clocks to the rd / wr control signals. this is because the first stretch uses one system clock to create additional setup time and one system clock to create additional address hold time. when using very slow ram and peripherals, a larger stretch value (4?7) can be selected. in this stretch category, one stretch machine cycle (4 system clocks) is used to stretch the ale pulse width, one stretch machine cycle is used to create additional setup, one stretch machine cycle is used to create additional hold time, and one stretch machine cycle is added to the rd or wr strobes. the following diagrams illustrate the timing relationship for external data memory access in full speed (stretch value = 0), in the default stretch setting (stretch value = 1), and slow data memory accessing (stretch value = 4), when the system clock is in divide-by-1 mode (cd1:cd0 = 10b).
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 28 of 47 figure 8. nonpage mode, external data me mory access (stretch = 0, cd1:cd2 = 10) ale port 0 xtal1 p se n r d/w r movx inst a data a a a a port 2 movx instruction 1st machine cycle 2nd machine cycle movx instruction fetch memory access stretch = 0 figure 9. nonpage mode, external data me mory access (stretch = 1, cd1:cd2 = 10) ale port 0 xtal1 p se n r d/w r movx inst a data a a a a port 2 movx instruction 1st machine cycle 2nd machine cycle movx instruction fetch memory access stretch = 1 3rd machine cycle
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 29 of 47 page mode, external memory cycle page mode retains the basic circuitry requirement for an original 8051 external memory interface, but alters the configuration of p0 and p2 for the purposes of address output and data i/o during external memory cycles. additionally, the functions of ale and psen are altered to support this mode of operation. setting the pagee (acon.7) bit to logic 1 enables page mode. clearing the pagee bit to logic 0 disables the page mode and the external bus structure defaults to the original 8051 expanded bus configuration (nonpage mode). the ds89c430 supports page mode in two external bus structures. the logic value of the page-mode- select bits in the acon register determines the external bus structure and the basic memory cycle in number of system clocks. table 6 summarizes this option. the first three selections use the same bus structure but with different memory cycle time. setting the select bits to 11b selects another bus structure. write access to the acon register requires a timed access. table 6. page mode select clocks per memory cycle pages1:pages0 page-hit page-miss external bus structure 00 1 2 p0: primary data bus. p2: primary address bus, multiplexing both the upper byte and lower byte of address. 01 2 4 p0: primary data bus. p2: primary address bus, multiplexing both the upper byte and lower byte of address. 10 4 8 p0: primary data bus. p2: primary address bus, multiplexing both the upper byte and lower byte of address. 11 2 4 p0: lower address byte. p2: the upper address byte is multiplexed with the data byte. note: this setting affects external code fetches only; accessing the external data memory requires four clock cycles, regardless of page hit or miss. the first page mode?s (page mode 1) external bus structure uses p2 as the primary address bus, (multiplexing both the most significant byte and least significant byte of the address for each external memory cycle) and p0 is used as the primary data bus. during external code fetches, p0 is held in a high-impedance state by the processor. op codes are driven by the external memory onto p0 and latched at the end of the external fetch cycle at the rising edge of psen . during external data read/write operations, p0 functions as the data i/o bus. it is held in a high- impedance state for external reads from data memory and driven with data during external writes to data memory.  a page miss occurs when the most significant byte of the subsequent address is different from the last address. the external memory machine cycle can be 2, 4, or 8 system clocks in length for a page miss.  a page hit occurs when the most significant byte of the subsequent address does not change from the last address. the external memory machine cycle can be 1, 2, or 4 system clocks in length for a page hit. during a page hit, p2 drives addr [0?7] of the 16-bit address, while the most significant address byte is held in the external address latches. psen , rd , and wr strobes accordingly for the appropriate operation on the p0 data bus. there is no ale assertion for page hits.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 30 of 47 figure 10. page mode 1, external memory cycle (cd1:cd0 = 10) internal memory cycles xtal1 ale port 0 port 2 data data inst msb msb msb msb msb lsb lsb lsb lsb lsb lsb inst inst external memory cycles page miss page hit page miss data access data access pages=00 ale p se n movx inst data page miss page miss data access page hit msbadd lsb add lsb add msbadd msbadd lsb add pages=01 port 0 port 2 msbadd lsb add lsb add inst data port 2 port 0 p se n ale page miss data access r d/w r r d / wr pages=10 r d / wr movx movx lsb p se n movx executed movx executed movx executed next instruction during a page miss, p2 drives the addr [8:15] of the 16-bit address and holds it for the duration of the first half of the memory cycle to allow the external address latches to latch the new most significant address byte. ale is asserted to strobe the external address latches. during this operation, psen , rd , and wr are held in inactive states and p0 is in a high-impedance state. the following half-memory cycle is executed as a page hit cycle and the appropriate operation takes place. a page miss can occur at set intervals or during external operations that require a memory access into a page of memory that has not been accessed during the last external cycle. generally, the first external memory access causes a page miss. the new page address is stored internally and is used to detect a page miss for the current external memory cycle.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 31 of 47 note that there are a few exceptions for this mode of operation when pages1 and pages2 are set to 00b:  psen is asserted for both a page hit and a page miss for a full clock cycle.  the execution of external movx instruction causes a page miss.  a page miss occurs when fetching the next external instruction following the execution of an external movx instruction. figure 10 shows the external memory cycle for this bus structure. the first case illustrates a back-to-back execution sequence for the one-cycle page mode (pages1 = pages0 = 0b). psen remains active during page hit cycles, and page misses are forced during and after movx executions, independent of the most significant byte of the subsequent addresses. the second case illustrates a movx execution sequence for two-cycle page mode (pages1 = 0 and pages0 = 1). psen is active for a full clock cycle in code fetches. note that changing the most significant byte of the data address causes the page misses in this sequence. the third case illustrates a movx execution sequence for four-cycle page mode (pages1 = 1 and pages0 = 0). there is no page miss in this execution cycle as the most significant byte of the data address is assumed to match the last program address. the second page mode (page mode 2) external bus structure multiplexes the most significant address byte with data on p2 and uses p0 for the least significant address byte. this bus structure is used to speed up external code fetches only. external data memory access cycles are identical to the nonpage mode except for the different signals on p0 and p2. figure 11 illustrates the memory cycle for external code fetches. figure 11. page mode 2, external code fetch cycle (cd1:cd0 = 10) internal memory cycles c2 c3 c4 c1 c2 c1 c2 xtal1 ale port 0 port 2 p sen c1 ext code fetches page miss page hit page hit data data lsb add lsb add lsb add data msb add stretch external data memory cycle in page mode the ds89c430 allows software to adjust the speed of external data memory access by stretching the memory bus cycle in page mode operation just like nonpage mode operation. the following tables summarize the stretch values and their effect on the external movx memory bus cycle and the control signals? pulse width in terms of the number of oscillator clocks. a stretch machine cycle always contains four system clocks, independent of the logic value of the page mode select bits.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 32 of 47 table 7. page mode 1, data memory cycle stretch values (pages1:pages0 = 00) rd / wr pulse width (in number of oscillator clocks) md2:md0 stretch cycles 4x/ 2x , cd1, cd0 = 100 4x/ 2x , cd1, cd0 = 000 4x/ 2x , cd1, cd0 = x10 4x/ 2x , cd1, cd0 = x11 000 0 0.25 0.5 1 1024 001 1 0.75 1.5 3 3072 010 2 1.75 3.5 7 7168 011 3 2.75 5.5 11 11,264 100 7 3.75 7.5 15 15,360 101 8 4.75 9.5 19 19,456 110 9 5.75 11.5 23 23,552 111 10 6.75 13.5 27 27,648 table 8. page mode 1, data memory cycle stretch values (pages1:pages0 = 01) rd / wr pulse width (in number of oscillator clocks) md2:md0 stretch cycles 4x/ 2x , cd1, cd0 = 100 4x/ 2x , cd1, cd0 = 000 4x/ 2x , cd1, cd0 = x10 4x/ 2x , cd1, cd0 = x11 000 0 0.25 0.5 1 1024 001 1 0.75 1.5 3 3072 010 2 1.75 3.5 7 7168 011 3 2.75 5.5 11 11,264 100 7 3.75 7.5 15 15,360 101 8 4.75 9.5 19 19,456 110 9 5.75 11.5 23 23,552 111 10 6.75 13.5 27 27,648 table 9. page mode 1, data memory cycle stretch values (pages1:pages0 = 10) rd/wr pulse width (in number of oscillator clocks) md2:md0 stretch cycles 4x/ 2x , cd1, cd0 = 100 4x/ 2x , cd1, cd0 = 000 4x/ 2x , cd1, cd0 = x10 4x/ 2x , cd1, cd0 = x11 000 0 0.5 1 2 2048 001 1 1 2 4 4096 010 2 2 4 8 8192 011 3 3 6 12 12,288 100 7 4 8 16 16,384 101 8 5 10 20 20,480 110 9 6 12 24 24,576 111 10 7 14 28 28,672
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 33 of 47 table 10. page mode 2, data memory cy cle stretch values (pages1:pages0 = 11) rd/wr pulse width (in number of oscillator clocks) md2:md0 stretch cycles 4x/ 2x , cd1, cd0 = 100 4x/ 2x , cd1, cd0 = 000 4x/ 2x , cd1, cd0 = x10 4x/ 2x , cd1, cd0 = x11 000 0 0.5 1 2 2048 001 1 1 2 4 4096 010 2 2 4 8 8192 011 3 3 6 12 12,288 100 7 4 8 16 16,384 101 8 5 10 20 20,480 110 9 6 12 24 24,576 111 10 7 14 28 28,672 as shown in the previous tables, the stretch feature supports eight stretched external data-memory access options, which can be categorized into three timing groups. when the stretch value is cleared to 000b, there is no stretch on external data memory access, and a movx instruction is completed in two basic memory cycles. when the stretch value is set to 1, 2, or 3, the external data memory access is extended by 1, 2, or 3 stretch memory cycles, respectively. note that the first stretch value does not result in adding four system clocks to the control signals. this is because the first stretch uses one system clock to create additional address setup and data bus float time and one system clock to create additional address and data hold time. when using very slow ram and peripherals, a larger stretch value (4?7) can be selected. in this stretch category, two stretch cycles are used to create additional setup (the ale pulse width is also stretched by one stretch cycle for page miss) and one stretch cycle is used to create additional hold time. the following timing diagrams illustrate the external data memory access at divide-by-1 system clock mode (cd1:cd0 = 10b). figure 12 illustrates the external data-memory stretch-cycle timing relationship when pagee = 1 and pages1:pages0 = 01. the stretch cycle shown is for a stretch value of 1 and is coincident with a page miss. note that the first stretch value does not result in adding four system clocks to the rd / wr control signals. this is because the first stretch uses one system clock to create additional setup and one system clock to create additional hold time. figure 13 shows the timing relationship for a slow peripheral interface (stretch value = 4). note that a page hit data memory cycle is shorter than a page miss data memory cycle. the ale pulse width is also stretched by a stretch cycle in the case of a page miss. the stretched data memory bus cycle timing relationship for pages = 11 is identical to nonpage mode operation since the basic data memory cycle always contains four system clocks in this page mode operation.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 34 of 47 figure 12. page mode 1, external data memory access (pages = 01, stretch = 1, cd = 10) ale p sen port 0 port 2 ale port 0 port 2 r d / w r ale p se n port 0 port 2 lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr lsb addr inst inst inst inst inst inst inst inst inst inst inst inst inst inst inst data data movx movx movx msb addr msb addr msb addr data memory access (stretch =1) memory access (stretch =1) memory access (stretch =1) movx instruction movx instruction movx instruction movx inst fetch movx inst fetch xtal1 p sen r d / wr r d / wr
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 35 of 47 figure 13. page mode 1, external data memory access (pages = 01, stretch = 4, cd = 10) ale p se n port 0 port 2 ale p se n port 0 port 2 rd / w r xtal1 inst inst inst inst inst msb lsb lsb lsb lsb lsb lsb lsb inst data memory access (stretch = 4) movx instruction (page miss) 1st cycle 2nd cycle 3rd cycle 4th cycle 9th cycle movx instruction fetch lsb lsb lsb inst inst inst movx instruction (page hit) memory access (stretch = 4) movx instruction fetch 1st cycle 2nd cycle 3rd cycle 4th cycle 5th cycle 9th cycle lsb lsb lsb lsb inst inst inst inst r d / wr data lsb interrupts the ds89c430 provides 13 interrupt sources. all interrupts, with the exception of the power fail, are controlled by a series combination of individual enable bits and a global enable (ea) in the interrupt-enable register (ie.7). setting ea to a logic 1 allows individual interrupts to be enabled. setting ea to a logic 0 disables all interrupts regardless of the individual interrupt-enable settings. the power-fail interrupt is controlled by its individual enable only. the interrupt enables and priorities are functionally identical to those of the 80c52, except that the ds89c430 supports five levels of interrupt priorities instead of the original two.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 36 of 47 interrupt priority there are five levels of interrupt priority: level 4 to 0. the highest interrupt priority is level 4, which is reserved for the power-fail interrupt. all other interrupts have individual priority bits in the interrupt priority registers to allow each interrupt to be assigned a priority level from 3 to 0. the power-fail interrupt always has the highest priority if it is enabled. all interrupts also have a natural hierarchy. in this manner, when a set of interrupts has been assigned the same priority, a second hierarchy determines which interrupt is allowed to take precedence. the natural hierarchy is determined by analyzing potential interrupts in a sequential manner with the order listed in table 11 . the processor indicates that an interrupt condition occurred by setting the respective flag bit. this bit is set regardless of whether the interrupt is enabled or disabled. unless marked in table 11 , all these flags must be cleared by software. table 11. interrupt summary interrupt vector natural order flag enable priority control power fail 33h 0 (highest) pfi (wdcon.4) epfi(wdcon.5) n/a external interrupt 0 03h 1 ie0 (tcon.1) (note 1) ex0 (ie.0) lpx0 (ip0.0); mpx0 (ip1.0) timer 0 overflow 0bh 2 tf0 (tcon.5) (note 2) et0 (ie.1) lpt0 (ip0.1); mpt0 (ip1.1) external interrupt 1 13h 3 ie1 (tcon.3) (note 1) ex1 (ie.2) lpx1 (ip0.2); mpx1 (ip1.2) timer 1 overflow 1bh 4 tf1 (tcon.7) (note 2) et1 (ie.3) lpt1 (ip0.3); mpt1 (ip1.3) serial port 0 23h 5 ri_0 (scon0.0); ti_0 (scon0.1) es0 (ie.4) lps0 (ip0.4); mps0 (ip1.4) timer 2 overflow 2bh 6 tf2 (t2con.7); exf2 (t2con.6) et2 (ie.5) lpt2 (ip0.5); mpt2 (ip1.5) serial port 1 3bh 7 ri_1 (scon1.0); ti_1 (scon1.1) es1 (ie.6) lps1 (ip0.6); mps1 (ip1.6) external interrupt 2 43h 8 ie2 (exif.4) ex2 (eie.0) lpx2 (eip0.0); mpx2 (eip1.0) external interrupt 3 4bh 9 ie3 (exif.5) ex3 (eie.1) lpx3 (eip0.1); mpx3 (eip1.1) external interrupt 4 53h 10 ie4 (exif.6) ex4 (eie.2) lpx4 (eip0.2); mpx4 (eip1.2) external interrupt 5 5bh 11 ie5 (exif.7) ex5 (eie.3) lpx5 (eip0.3); mpx5 (eip1.3) watchdog 63h 12 (lowest) wdif (wdcon.3) ewdi (eie.4) lpwdi (eip0.4); mpwdi (eip1.4) note 1: if the interrupt is edge triggered, the flag is cleared automatically by hardware when the service routine is vectored to. if the interrupt is level triggered, the flag follows the state of the pin. note 2: the flag is cleared automatically by hardware when the service routine is vectored to.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 37 of 47 timer/counters the ds89c430 incorporates three 16-bit timers. all three timers can be used as either counters of external events, where 1-to-0 transitions on a port pin are monitored and counted, or timers that count oscillator cycles. table 12 summarizes the timer functions. timers 0 and 1 both have three modes of operations. they can each be used as a 13-bit timer/counter, a 16-bit timer/counter, or an 8-bit timer/counter with autoreload. timer 0 has a fourth operating mode as two 8-bit timer/counters without autoreload. each timer can also be used as a counter of external pulses on the corresponding t0/t1 pin for 1-to-0 transitions. the timer mode (tmod) register controls the mode of operation. each timer consists of a 16-bit register in 2 bytes, which can be found in the sfr map as tl0, th0, tl1, and th1. the timer control (tcon) register enables timers 0 and 1. table 12. timer functions functions timer 0 timer 1 timer 2 timer/counter 13/16/8*/2x8 bit 13/16/8* bit 16 bit timer with capture no no yes external control pulse counter yes yes no up/down autoreload timer/counter no no yes baud rate generator no yes yes timer output clock generator no no yes * 8-bit timer/counter includes autoreload feature. 2x8-bit mode does not. each timer has a selectable time base ( table 14 ). following a reset, the timers default to divide by 12 to maintain drop-in compatibility with the 8051. if timer 2 is used as a baud rate generator or clock output, its time base is fixed at divide by 2, regardless of the setting of its timer mode bits. timer 2 is a true 16-bit timer/counter that, with a 16-bit capture (rcap2l and rcap2h) register, is able to provide some unique functions like up/down autoreload timer/counter and timer output-clock generation. timer 2 (registers tl2 and th2) is enabled by the t2con register. its mode of operation is selected by the t2mod register. for operation details, refer to section 11: programmable timers in the ultra-high-speed flash microcontroller user?s guide. timed access the timed-access function prevents an errant cpu from making accidental changes to certain sfr bits that are considered vital to proper system operation. this is achieved by using software control when accessing the following sfr control bits: sfr bit function wdcon.0 rwt reset watchdog timer wdcon.1 ewt watchdog reset enable wdcon.3 wdif watchdog interrupt flag wdcon.6 por power-on reset flag exif.0 bgs bandgap select acon.5 pages0 page mode select bit 0 acon.6 pages1 page mode select bit 1 acon.7 pagee page mode enable romsize.0 rms0 program memory size select bit 0 romsize.1 rms1 program memory size select bit 1 romsize.2 rms2 program memory size select bit 2 romsize.3 prame program ram enable fcntl.0 fc0 flash command bit 0 fcntl.1 fc1 flash command bit 1 fcntl.2 fc2 flash command bit 2 fcntl.3 fc3 flash command bit 3 before these bits can be altered, the processor must execute the timed-access sequence. this sequence consists of writing an aah to the timed access (ta, c7h) register, followed by writing a 55h to the same register within three machine cycles. this timed sequence of steps allows any of the timed access-protected sfr bits to be altered
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 38 of 47 during the three machine cycles following the writing of the 55h. writing to a timed-access-protected bit outside of these three machine cycles has no effect on the bit. the timed-access process is address, data, and time dependent. a processor running out of control and not executing system software statistically is not able to perform this timed sequence of steps, and as such, does not accidentally alter the protected bits. it should be noted that this method should be used in the main body of the system software and never used in an interrupt routine in conjunction with the watchdog reset. interrupt routines using the timed-access watchdog-reset bit (rwt) can recover a lost system and allow the resetting of the watchdog, but the system returns to a lost condition once the reti is executed, unless the stack is modified. also, it is advisable that interrupts be disabled (ea = 0) when executing the timed-access sequence, since an interrupt during the sequence adds time, making the timed-access attempt fail. power management and clock-divide control power-management features are available that monitor the power-supply voltage levels and support low-power operation with three power-saving modes. such features include a bandgap voltage monitor, watchdog timer, selectable internal ring oscillator, and programmable system clock speed. the sfrs that provide control and application software access are the watchdog control (wdcon, d8h), extended interrupt enable (eie, e8h), extended interrupt flag (exif, 91h) and power control (pcon, 87h) registers. system clock-divide control the programmable clock-divide control bits (cd1 and cd0) provide the processor with the ability to adapt to different crystals and to slow the system clocks, providing lower power operation when required. an on-chip crystal multiplier allows the ds89c430 to operate at two or four times the crystal frequency by setting the 4x/ 2x bit, and is enabled by setting the ctm bit to a logic 1. an additional ci rcuit provides a clock source at divide by 1024. when used with a 7.372mhz crystal, for example, the processor executes the machine cycle in times ranging from 33.9ns (mulitply-by-4 mode) to 138.9  s (divide-by-1024 mode) and maintains a highly accurate serial port baud rate, while allowing the use of more cost-effective lower frequency crystals. although the clock-divide control bits can be written at any time, certain hardware features enhance the use of these clock controls to guarantee proper serial port operation and to allow for a high-speed response to an external interrupt. the 01b setting of cd1 and cd0 is reserved. it has the same effect as the setting of 10b, which forces the system clock into a divide-by-1 mode. the ds89c430 defaults to divide-by-1 clock mode on all forms of reset. when in divide-by-1024 mode, in order to allow a quick response to incoming data on a serial port, the system uses the switchback mode to automatically revert to divide-by-1 mode whenever a start bit is detected. this automatic switchback is only enabled in divide-by-1024 mode when the switchback bit (pmr.5:swb) is set. all other clock modes are unaffected by interrupts and serial port activity. the oscillator multiply ratios of 4, 2, and 1 are also used to provide standard baud-rate generation for the serial ports through a forced divide-by-12 input clock (txmh,txm = 00b, x = 1, 2, or 3) to the timers. use of the multiply-by-4 or multiply-by-2 options through the clock-divide control bits requires that the crystal multiplier be enabled and the specific system-clock-multiply value be established by the 4x/ 2x bit in the pmr register. the multiplier is enabled through the ctm (pmr.4) bit but cannot be automatically selected until a startup delay has been established through the ckry bit in the status register. the 4x/ 2x bit can only be altered when the ctm bit is cleared to a logic 0. this prevents the system from changing the multiplier until the system has moved back to the divide-by-1 mode and the multiplier has been disabled by the ctm bit. the ctm bit can only be altered when the cd1 and cd0 bits are set to divide-by-1 mode and the rgmd bit is cleared to 0. setting the ctm to a logic 1 from a previous logic 0 automatically clears the ckry bit in the status register and starts the multiplier startup timeout in the multiplier startup counter. during the multiplier startup period, the ckry bit remains cleared and the cd1 and cd0 clock controls cannot be set to 00b. the ctm bit is cleared to a logic 0 on all resets. note that the rated maximum speed of operation applies to the speed of the microcontroller core, not the external clock source. when using the clock multiplier feature, the external clock source frequency, multiplied by the clock multiplier (2x or 4x) can never be faster than the maximum rated speed of the device. thus, if a designer wished to use the 4x clock multiplier on a device rated at 33mhz, the maximum external clock speed would be 8.25mhz. figure 14 gives a simplified description of the generation of the system clocks. specifics of hardware restrictions associated with the use of the 4x/ 2x ctm, ckry, cd1, and cd0 bits are outlined in the sfr section.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 39 of 47 figure 14. system clock sources 4x/ 2 x ctm crystal oscillator divide 1024 ring oscillator clock multiplier cd0 cd1 selector ring enable mux system clock bandgap-monitored interrupt and reset generation the power monitor in the ds89c430 monitors the v cc pin in relation to the on-chip bandgap voltage reference. whenever v cc falls below v pfw , an interrupt is generated if the corresponding power-fail interrupt-enable bit epfi (wdcon.5) is set, causing the device to vector to address 33h. the power-fail interrupt status bit pfi (wdcon.4) is set any time v cc transitions below v pfw , and can only be cleared by software once set. similarly, as v cc falls below v rst , a reset is issued internally to halt program execution. following power-up, a power-on reset initiates a power-on reset timeout before starting program execution. when v cc is first applied to the ds89c430, the processor is held in reset until v cc > v rst and a delay of 65,536 oscillator cycles has elapsed, to ensure that power is within tolerance and the clock source has had time to stabilize. once the reset timeout period has elapsed, the reset condition is removed automatically and software execution begins at the reset vector location of 0000h. the power-on reset flag por (wdcon.6) is set to logic 1 to indicate a power-on reset has occurred, and can only be cleared by software. when the ds89c430 enters stop mode, the bandgap, reset comparator, and power-fail interrupt comparator are automatically disabled to conserve power if the bgs (exif.0) bit is set to logic 0. this is the lowest power mode. if bgs is set to logic 1, the bandgap reference, reset comparator, and the power-fail comparator are powered up, although in a mode that reduces their power consumption.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 40 of 47 watchdog timer the watchdog timer functions as the source of both the watchdog interrupt and the watchdog reset. when the clock divider is set to 10b, the interrupt timeout has a default divide ratio of 2 17 of the crystal oscillator clock, with the watchdog reset set to time out 512 system clock cycles later. this results in a 33mhz crystal oscillator producing an interrupt timeout every 3.9718ms, followed 15.5s later by a watchdog reset. the watchdog timer is reset to the default divide ratio following any reset. using the wd0 and wd1 bits in the clock control (ckcon.6 and 7) register, other divide ratios can be selected for longer watchdog interrupt periods. table 13 summarizes the watchdog bits settings and the timeout values. note: all watchdog timer reset timeouts follow the programmed interrupt timeouts by 512 system clock cycles, which equates to varying numbers of oscillator cycles depending on the clock divide (cd1:0) and crystal multiplier settings. table 13. watchdog timeout value (i n number of oscillator clocks) watchdog interrupt timeout watchdog reset timeout 4x/ 2x cd1:0 wd1:0 = 00 wd1:0 = 01 wd1:0 = 10 wd1:0 = 11 wd1:0 = 00 wd1:0 = 01 wd1:0 = 10 wd1:0 = 11 1 00 2 15 2 18 2 21 2 24 2 15 + 128 2 18 + 128 2 21 + 128 2 24 + 128 0 00 2 16 2 19 2 22 2 25 2 16 + 256 2 19 + 256 2 22 + 256 2 25 + 256 x 01 2 17 2 20 2 23 2 26 2 17 + 512 2 20 + 512 2 23 + 512 2 26 + 512 x 10 2 17 2 20 2 23 2 26 2 17 + 512 2 20 + 512 2 23 + 512 2 26 + 512 x 11 2 27 2 30 2 33 2 36 2 27 + 524,288 2 30 + 524,288 2 33 + 524,288 2 36 + 524,288 a watchdog control (wdcon) sfr is used for programming the functions. ewt (wdcon.1) is the enable for the watchdog timer-reset function and rwt (wdcon.0) is the bit used to restart the watchdog timer. setting the rwt bit restarts the timer for another full interval. if the watchdog timer-reset function is masked by the ewt bit and no resets are issued to the timer through the rwt bit, the watchdog timer generates interrupt timeouts at a rate determined by the programmed divide ratio. wdif (wdcon.3) is the interrupt flag set at timer termination and wtrf (wdcon.2) is the reset flag set following a watchdog reset timeout. setting the ewdi bit (eie.4) enables the watchdog interrupt. the watchdog timer reset and interrupt timeouts are measured by counting system clock cycles. an independent watchdog timer functions as the crystal startup counter to count 65,536 crystal clock cycles before allowing the crystal oscillator to function as the system clock. this warmup time is verified by the watchdog timer following each power-up as well as each time the crystal is restarted following a stop mode. the watchdog is also used to establish a startup time whenever the ctm in the pmr register is set to enable the crystal multiplier (4x / 2x ). one of the watchdog timer applications is for the watchdog to wake up the system from idle mode. the watchdog interrupt can be programmed to allow a system to wake up periodically to sample the external world. internal system reset a software reset can be initiated by writing a system reset command to the flash control sfr. the reset state is maintained for approximately 90 external clock cycles. during this time, the rst pin is driven to a logic high. once the reset is removed, the rst pin is driven low, and operation begins from address 0000h.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 41 of 47 external/hardware reset a hardware reset can be initiated by asserting the rst pin high for at least three external clock cycles while the external clock is running. the reset is asserted immediately. when the rst pin is taken to a logic low, the microcontroller exits the reset state within a delay that depends on the state of the flash memory at the time the reset was asserted. if a flash write or erase operation was in progress, the reset state is a 4ms maximum. if no flash write or erase operations were in progress, there is a delay of 90 external clock cycles. operation resumes at address 0000h. if taking rst to a logic low causes the device to exit stop mode, an additional delay of 65,536 clock cycles is experienced before operation begins. reset output if a reset is caused by a power-fail reset, a watchdog timer reset, or an internal system reset, a logic high output- reset pulse is also generated at the bidirectional rst pin. this reset pulse is asserted as long as an internal reset is asserted. although the microcontroller generates its own power-on delay for crystal warmup, legacy designs may employ an external rc circuit. large values of ?c? may load the pin enough that the rst output may not achieve a logic high, but the state of the external rst pin does not affect the internal reset condition. oscillator-fail detect and reset the ds89c430 incorporates an oscillator-fail-detect circuit that, when enabled, causes a reset if the crystal oscillator frequency falls below 20khz and holds the chip in reset with the ring oscillator operating. setting the ofde (pcon.4) bit to logic 1 enables the circuit. the ofde bit is only cleared from logic 1 to logic 0 by a power- fail reset or by software. a reset caused by an oscillator failure also sets the ofdf (pcon.5) to logic 1. this flag is cleared by software or power-on reset. this circuit does not force a reset when the oscillator is stopped by the software-enabled stop mode. power-management mode the power-management mode offers a software-controllable power-saving scheme by providing a reduced instruction cycle speed, which allows the microcontroller to continue operating while using an internally divided version of the clock source to save power. power-management mode is invoked by software setting the clock- divide control bits cd1 and cd0 (pmr.7?6) bits to 11b, which sets an operating rate of 1024 oscillator cycles for one machine cycle. on all forms of reset, the clock-divide control bits default to 10b, which selects one oscillator cycle per machine cycle. since the clock speed choice affects all functional logic, including timers, several hardware switchback features allow the clock speed to automatically return to the divide-by-1 mode from a reduced cycle rate. setting the swb (pmr.5) bit to 1 in software enables this switchback function. when cd1 and cd0 are programmed to the divide-by-1024 mode and the swb bit is also enabled, the system forces the clock-divide control bits to automatically reset to the divide-by-1 mode whenever the system detects an externally enabled (and allowed by nesting priorities) interrupt. the switchback occurs whenever one of the two following conditions occurs. the first switchback condition is initiated by the detection of a low on either int0 , int1 , int3 , or int5 or a high on int2 or int4 when the respective pin has been programmed and allowed (by nesting priorities) to issue an interrupt. the second switchback condition occurs when either serial port is enabled to receive data and is found to have an active-low transition on the respective receive-input pin. serial port transmit activity also forces a switchback if the swb is set. note that the serial port activity, as related to the switchback, is independent of the serial port interrupt relationship. any attempt to change the clock divider to the divide-by-1024 mode while the serial port is either transmitting or receiving has no effect, leaving the clock control in the divide-by- 1 mode. note also that the switchback interrupt relationship requires that the respective external interrupt source is allowed to actually generate an interrupt, as defined by the priority of the interrupt and the state of the nested interrupts, before the switchback can actually occur. an interrupt by the serial port is not required, nor is the setting of serial port enable. disabling external interrupts and serial port receive/transmission mode disables the automatic switchback mode. clearing the swb bit also disables the switchback, and all interrupt and serial port controls of the clock divider are disabled. all other clock modes ignore the switchback relationship and are unaffected by interrupts and serial port activity. the basic divide-by-12 mode for the timers (txmh, txm = 00b) as well as the divide by 32 and 64 for mode 2 on the serial ports has been maintained when running the processor with the oscillator divide ratio of 0.25, 0.5, and 1.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 42 of 47 serial ports and timers track the oscillator cycles per machine cycle when the higher divide ratio of 1024 is selected, and require the switchback function to automatically return to the divide-by-1 mode for proper operation when a qualified event occurs. table 14 summarizes the effect of clock mode on timer operation. it is possible to enable a receive function on a serial port when incoming data is not present and then change to the higher divide ratio. an inactive serial port receive/transmission mode requires the receive input pin to remain high and all outgoing transmissions to be completed. during this inactive receive mode it is possible to change the clock-divide control bits from a divide by 1 to a 1024 divide ratio. in the case when the serial port is being used to receive or transmit data, it is very important to validate an attempted change in the clock-divide control bits (read cd1 and cd0 to verify write was allowed) before proceeding with low-power program functions. table 14. effect of clock mode on timer op eration (in number of oscillator clocks) osc cycles per timers 0, 1, 2 clock osc cycles per timer 2 clock txmh,txm = baud rate generation osc cycles per serial port clock mode 0 osc cycles per serial port clock mode 2 4x/ 2x , cd1, cd0 osc cycles per machine cycle 00 01 1x t2mh,t2m = xx sm2 = 0 sm2 = 1 smod = 0 smod = 1 100 0.25 12 1 0.25 2 3 1 64 32 000 0.5 12 2 0.5 2 6 2 64 32 x01 1 (reserved) x10 1 (default) 12 4 1 2 12 4 64 32 x11 1024 12,288 4096 1024 2048 12,288 4096 65,536 32,768 x = don?t care. ring oscillator when the system is in stop mode the crystal is disabled. when stop mode is removed, the crystal requires a period of time to start up and stabilize. to allow the system to begin immediate execution of software following the removal of the stop mode, the ring oscillator is used to supply a system clock until the crystal startup time is satisfied. once this time has passed, the ring oscillator is switched off and the system clock is switched to the crystal oscillator. this function is programmable and is enabled by setting the rgsl bit (exif.1) to logic 1. when it is logic 0, the processor delays software execution until after the 65,536 crystal clock periods. to allow the processor to know whether it is being clocked by the ring or by the crystal oscillator, an additional bit?rgmd? indicates which clock source is being used. when the processor is running from the ring, the clock-divide control bits (cd1 and cd0 in the pmr register) are locked into the divide-by-1 mode (cd1:cd0 = 10b). the clock-divide control bits cannot be changed from this state until after the system clock transitions to the crystal oscillator (rgmd = 0). note: the watchdog is connected to the crystal oscillator and continues to run at the external clock rate. the ring oscillator does not drive it. idle mode idle mode suspends the processor by holding the program counter in a static state. no instructions are fetched and no processing occurs. setting the idle bit (pcon.0) to logic 1 invokes idle mode. the instruction that executes this step is the last instruction prior to freezing the program counter. once in idle mode, all resources are preserved, but all peripheral clocks remain active and the timers, watchdog, serial ports, and power monitor functions continue to operate, so that the processor can exit the idle mode using any interrupt sources that are enabled. the oscillator-detect circuit also continues to function when enabled. the idle bit is cleared automatically once the idle mode is exited. on returning from the interrupt vector using the reti instruction, the next address is the one that immediately follows the instruction that invoked the idle mode. any reset of the processor also removes the idle mode.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 43 of 47 stop mode stop mode disables all circuits within the processor. all on-chip clocks, timers, and serial port communication are stopped, and no processing is possible. stop mode is invoked by setting the stop bit (pcon.1) to logic 1. the processor enters stop mode on the instruction that sets the bit. the processor can exit stop mode by using any of the six external interrupts that are enabled. an external reset through the rst pin unconditionally exits the processor from stop mode. if the bgs bit is set to logic 1, the bandgap provides a reset while in stop mode if v cc should drop below the v rst level. if bgs is 0, no reset is generated if v cc drops below v rst . when the stop mode is removed, the processor waits for 65,536 clock cycles for the internal flash memory to warm up before starting normal execution. also, the processor waits for the crystal warmup period if it is not using the ring oscillator. serial i/o the microcontroller provides 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 (txd1) and has duplicate control functions included in new sfr locations. both ports can operate simultaneously but can be at different baud rates or modes. the second serial port has similar control registers (scon1 at c0h, sbuf1 at c1h) to the original. the new serial port can only use timer 1 for timer-generated baud rates. control for serial port 0 is provided by the scon0 register, while its i/o buffer is sbuf0. the registers scon1 and sbuf1 provide the same functions for the second serial port. a full description of the use and operation of both serial ports can be found in the ultra-high-speed flash microcontroller user?s guide. instruction set all instructions are 100% binary compatible with the industry-standard 8051, and are only different in the number of machine cycles used for the instructions. there are some special conditions and features to be considered when analyzing the ds89c430 instruction set. full details are available in the ultra-high-speed flash microcontroller user?s guide. selector guide part temp range flash memory size max clock speed (mhz) pin-package ds89c430 -mnl -40c to +85c 16kb x 8 33 40 pdip ds89c430-qnl -40c to +85c 16kb x 8 33 44 plcc ds89c430-enl -40c to +85c 16kb x 8 33 44 tqfp ds89c440 -mnl -40c to +85c 32kb x 8 33 40 pdip ds89c440-qnl -40c to +85c 32kb x 8 33 44 plcc ds89c440-enl -40c to +85c 32kb x 8 33 44 tqfp ds89C450 -mnl -40c to +85c 64kb x 8 33 40 pdip ds89C450-qnl -40c to +85c 64kb x 8 33 44 plcc ds89C450-enl -40c to +85c 64kb x 8 33 44 tqfp ds89c430 -mng -40c to +85c 16kb x 8 25 40 pdip ds89c430-qng -40c to +85c 16kb x 8 25 44 plcc ds89c430-eng -40c to +85c 16kb x 8 25 44 tqfp ds89c440 -mng -40c to +85c 32kb x 8 25 40 pdip ds89c440-qng -40c to +85c 32kb x 8 25 44 plcc ds89c440-eng -40c to +85c 32kb x 8 25 44 tqfp ds89C450 -mng -40c to +85c 64kb x 8 25 40 pdip ds89C450-qng -40c to +85c 64kb x 8 25 44 plcc ds89C450-eng -40c to +85c 64kb x 8 25 44 tqfp
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 44 of 47 pin configurations revision history date description 111003 new product release. 032204 dc electrical characteristics table: corrected typo?under supply current for active and idle mode, changed units from ?  a? to ?ma.? note 15: changed number of external clock cyles per system clock and minimum external clock speeds. flash memory programming characteristics table: removed note 20 (room temperature only) from the data retention parameter. 060204 changed write/erase endurance parameter from 20,000 cycles to 10,000 cycles. removed original table 5. parallel programming instruction set , and replaced it with a paragraph introducing the subject and advising interested parties to contact the factory for more information. clarified iap programming sequence. 6 1 40 18 28 7 39 17 29 ds89c430 ds89c440 ds89C450 plcc 33 23 1 1 34 22 44 12 ds89c430 ds89c440 ds89C450 tqfp top view a le/ prog p1.0/t2 p1.1/t2ex p1.2/rxd1 p1.3/txd1 p1.4/int2 p1.5/int3 p1.6/int4 p1.7/int5 rst p3.0/rxd0 p3.1/txd0 p3.2/int0 p3.3/int1 p3.4/t0 p3.5/t1 p3.6/wr p3.7/rd xtal2 xtal1 vss vcc p0.0 p0.1 p0.2 p0.3 p0.4 p0.5 p0.6 p0.7 ea/vpp psen p2.7 p2.6 p2.5 p2.4 p2.3 p2.2 p2.1 p2.0 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 ds89c430 ds89c440 ds89C450 pdip
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 45 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 . ) pkg 40-pin pdip dim min max a ? 0.200 a1 0.015 ? a2 0.140 0.160 b 0.014 0.022 c 0.008 0.012 d 1.980 2.085 e 0.600 0.625 e1 0.530 0.555 e 0.090 0.110 l 0.115 0.145 eb 0.600 0.700 . 56-g5000-000 note: dimensions are in inches.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 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 .) note 1: pin 1 identifier to be located in zone indicated. note 2: controlling dimension are in inches.
ds89c430/ds89c440/ds89C450 ultra-high-speed flash microcontrollers 47 of 47 maxim/dallas semiconductor cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a ma xim/dallas semiconductor product. no circuit patent licenses are implied. maxim/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 ? 2004 maxim integrated products  printed usa are registered trademarks of maxim integrated products, inc., and dallas semiconductor corporation. 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 .)


▲Up To Search▲   

 
Price & Availability of 89C450

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]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X