Maxim DS87C530 manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Maxim DS87C530, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Maxim DS87C530 one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of Maxim DS87C530. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of Maxim DS87C530 should contain:
- informations concerning technical data of Maxim DS87C530
- name of the manufacturer and a year of construction of the Maxim DS87C530 item
- rules of operation, control and maintenance of the Maxim DS87C530 item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Maxim DS87C530 alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Maxim DS87C530, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Maxim service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Maxim DS87C530.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Maxim DS87C530 item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    1 of 47 REV: 070505 Note: Some revisions of t his device may incorporate deviations from publis hed specificati ons known as errata. Multiple revisions of any device may be si multaneously available through various s ales channels. For information about devic e errata, cl ick here: www .maxim-ic .com/errata . FEATURES § 80C52 Compatible 8051 Instr[...]

  • Page 2

    DS87C530/DS83C530 EPROM/ROM M icrocontrollers with Real-Time Clock 2 of 47 ORDERING INFORMATION PART TEMP RANGE MAX CLOCK SPEED (MHz) PIN-PACKAGE DS87C530 -QCL 0 ° C to +70 ° C 33 52 PLCC DS87C530 - QCL+ 0 ° C to +70 ° C 33 52 PLCC DS87C530-QNL -40 ° C to +85 ° C 33 52 PLCC DS87C530-QNL+ -40 ° C to +85 ° C 33 52 PLCC DS87C530-KCL* 0 ° C to[...]

  • Page 3

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 3 of 47 DETAILED DESCRI PTION The DS87C530/DS83C530 EPROM/ROM microcontrollers with a real-time clock (RTC) are 8051- compatible microcontrollers based on the Dallas Semic onductor high-speed core. The y use 4 clocks per instruction cycle instead of the 12 used by the standard[...]

  • Page 4

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 4 of 47 Figure 1. Block D iagram PIN DESCRIPTION PIN PLCC TQFP NAME FUNCTION 52 45 V CC +5V Processo r Power Supply 1, 25 18, 46 GND Processor Dig ital Circuit Gr ound 29 22 V CC2 +5V RTC Supp ly. V CC2 is iso lated from V CC to isolate the RT C from digital noise. 26 19 GND2 [...]

  • Page 5

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 5 of 47 PIN DESCRIPTION ( continued) PIN PLCC TQFP NAME FUNCTION 38 31 PSEN Program Store-Enab le Output. T his active-low signal is a chip enable for optional external ROM m emory. PSEN provides an active-low pulse an d is driven high when external ROM is not being accessed. [...]

  • Page 6

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 6 of 47 PIN DESCRIPTION ( continued) PIN PLCC TQFP NAME FUNCTION 30 23 P2.0 (AD8) 31 24 P2.1 (AD9) 32 25 P2.2 (AD10) 33 26 P2.3 (AD11) 34 27 P2.4 (AD12) 35 28 P2.5 (AD13) 36 29 P2.6 (AD14) 37 30 P2.7 (AD15) Port 2 (A8–A1 5), I/O . Port 2 is a bidirectional I/O port. The rese[...]

  • Page 7

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 7 of 47 COMPATIBILIT Y The DS87C530/DS83C530 are fully sta tic, CMOS 8051-compatible microc ontrollers designed for high performance. While rem aining familiar to 8051 users, th e devices have many new features. In general, software written for ex isting 8051-based sy stems wo[...]

  • Page 8

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 8 of 47 The relative time of two instructions mig ht be different in the new architectur e than it was previously . For example, i n the original architectu re, the “M OVX A, @DPTR ” instruction and the “MOV di rect, direct” instruction used two ma chine cycles or 24 o[...]

  • Page 9

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 9 of 47 Table 1. Special Func tion Register Locations * Function s not prese nt in the 80C52 ar e in bold. REGIST ER BIT 7 BIT 6 BIT 5 B IT 4 BIT 3 BIT 2 BIT 1 BIT 0 ADDRESS P0 P0.7 P0.6 P0.5 P0.4 P0.3 P0.2 P0. 1 P0.0 80h SP 81h DPL 82h DPH 83h DPL1 84h DPH1 85h DPS 0 0 0 0 0 [...]

  • Page 10

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 10 of 47 Table 1. Special Func tion Regi ster Locations (continued) * Function s not prese nt in the 80C52 ar e in bold. REGIST ER BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 ADDRESS TL2 CCh TH2 C Dh PSW CY AC F0 RS1 RS0 OV FL P D0h WDCON SM OD_1 POR EPFI PFI WDIF WTRF EWT[...]

  • Page 11

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 11 of 47 automatically to occur once per s econd, once per minute, once per h our, or once pe r day. Enabling interrupts with no match will genera te an interrupt 256 times per second. Software e nables the timeke eper oscillator using the RTC enable bit in the RTC Control re [...]

  • Page 12

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 12 of 47 12.5pF crystal uses more power, giving a shorter batter y backed life, but produces a more robust oscillator. Bit 6 in the RTC Trim register (TR I M; 96h) must be pro grammed to specify the crystal type for the oscillator. When TRIM.6 = 1, the circuit expects a 12.5pF[...]

  • Page 13

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 13 of 47 space SRAM is read/wr ite accessible and is memor y mapped. This on-chi p SRAM is reached by the MOVX instruction. It is not used for executable memo r y. The scratchpad area is 256 b ytes of register mapped RAM and is identical to the RAM found on th e 80C52. There i[...]

  • Page 14

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 14 of 47 device will immediately jump to external program execution because program code from 4k B to 16kB (1000h–3FFFh) is no long er located on-chip. This could result in code misalignm ent and execution of an invalid instruction. The recommende d method is to modify the R[...]

  • Page 15

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 15 of 47 The on-chip data area is software sel ectable using 2 bits in the Power Management Register at location C4h. This selection is dynamicall y programmable. Thus access to the on-c hip area becomes t ransparent to reach off- chip devices at the same addresses. Th e contr[...]

  • Page 16

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 16 of 47 Using a Stre tch value between 1 and 7 ca uses the microcontrolle r to stretch the rea d/write strobe and all related timing . Also, setup and hold times are increased by 1 clock when using an y Str etch greater than 0. This results in a wider read/wr ite strobe and r[...]

  • Page 17

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 17 of 47 POWER M ANAGEMENT Along with the standard Idle and power-dow n (Stop) modes of the standard 80C52, the DS87C530/DS83C530 provide a new Powe r Management Mode. This mode allows the processor to continue functioning, yet to sa ve power compared with full ope ration. The[...]

  • Page 18

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 18 of 47 CRYSTAL-LES S PMM A major component of power consumption in PMM is the cry stal amplifie r circuit. The DS87C530/DS83C530 allow the user to sw itch CPU operation to an internal ring oscillator and turn off the crystal a mplifier. The CPU would the n have a cl ock sour[...]

  • Page 19

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 19 of 47 Switchback To return to a 4-clock rat e from PMM, software c an simply select the CD1 and CD0 clock control b its to the 4 clocks per c ycle state. Ho wever, the DS87C530/DS83C530 provide several hardwa re altern atives for automa tic Switchback. If Switchbac k is ena[...]

  • Page 20

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 20 of 47 Crystal/Ring Operation The DS87C530/DS83C530 allow software to choose the clock source as an independent selection from the instruction cycle rate. The us er can select crystal-based or ring oscillator-based operation under software control. Powe r-on reset default is[...]

  • Page 21

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 21 of 47 Table 6. PMM Control and Status Bit Summary NAME LOCAT ION FUNCTION RESET WRITE AC CESS XT/ RG EXIF.3 Control. XT/ RG =1, run s from crystal or external clock; XT/ RG =0, runs f ro m internal ring oscillator. X 0 to 1 on ly when XTUP = 1 and XTOFF= 0 RGMD EXIF. 2 Stat[...]

  • Page 22

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 22 of 47 Figure 5. Inv oking and Clearing PMM WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y[...]

  • Page 23

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 23 of 47 IDLE MODE Setting the lsb of the Po wer Control register (PCON; 87h) invokes the Idle mode. I dle will leave internal clocks, serial ports and timers running. Power co nsum ption drops because the CPU is not active. Since clocks are running, the Idle power consumption[...]

  • Page 24

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 24 of 47 The ring oscillator runs at approx imatel y 2MHz to 4MHz but will not be a pre cise value. Do not c onduct real-time precision opera tions (inc luding serial communication) durin g this ring period. Figure 6 s hows how the operation would compare wh en using the ring [...]

  • Page 25

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 25 of 47 PERIPHER AL OVERVIEW The DS87C530/DS83C530 provide several of the most commonly needed periph eral functions in microcomputer-based s ystems. These new functions include a second se rial port, power-fail reset, P ower- fail inter rupt, and a programmable watchdog time[...]

  • Page 26

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 26 of 47 read the PFI fla g at WDCON.4. A PFI condition sets this bit to a 1. The flag is independent of the interrupt ena ble and software must manually clear it. If the PFI is enabled and the bandgap select bit (BGS) is se t, a PFI will bring the device out of Stop mode. WAT[...]

  • Page 27

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 27 of 47 There are fiv e control bits i n special function re gisters that affe ct the W atchdog Timer and two status flags that re port to the user. WDIF (WDCON.3) is the inter rupt flag that is set at time r termination when there are 512 clocks remaining until the res et fl[...]

  • Page 28

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 28 of 47 TIMED- A CCES S PROTECTI ON It is useful to protect certain SFR bits from an accidental write operation. The Timed-Access procedure stops an errant C PU from accidentall y changin g these bits. It requires that the fol lowing inst ructions precede a w rite of a prote [...]

  • Page 29

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 29 of 47 DS87C530 SECURI TY OPTIONS The DS87C530 employs a stand ard three-level lo ck that restricts viewing of the EPROM contents. A 64- byte Encry ption Arra y allows the author ized user to verify memory by presenting the data in encry pted form. Lock Bits The security loc[...]

  • Page 30

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 30 of 47 Table 9. EPROM Prog ramming Modes MODE RST PSEN ALE/ PROG EA /VPP P2.6 P2.7 P3.3 P 3.6 P3.7 Program Code Data H L PL 12.75V L H H H H Verify Code Dat a H L H H L L L H H Program Encryption Array Address 0- 3Fh H L PL 12.75V L H H L H LB1 H L PL 12.75V H H H H H LB2 H [...]

  • Page 31

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 31 of 47 Figure 7. EPROM Pro gramming Configuration ROM-SPECIFIC FE ATURES (DS8 3C530) The DS83C530 supports a subset of the EPROM features found on the DS87C530. SECURITY OPTION S Lock Bits The DS83C530 employs a lock that re stricts viewing of the ROM cont ents. When set, th[...]

  • Page 32

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 32 of 47 DS83C530 R OM Verification The DS83C530 memory contents can be ve rified us ing a standard EPROM programmer. Th e memory address to be verified is placed on the pins shown in Figure 7, and the programming control pins ar e set to the levels shown in Table 9. The data [...]

  • Page 33

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 33 of 47 ABSOLUTE M AXIMUM R ATINGS Voltage Ra nge on Any Pin Relative t o Ground… ……………… ……………… ……………. ………-0.3V to ( V CC + 0.5V) Voltage Ra nge on V CC Rela tive to Gr ound……… ……………………… …………… ……?[...]

  • Page 34

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 34 of 47 DC ELECTRIC AL CHARACTERIST ICS (continued) (V CC = 4.5V to 5. 5V, T A = -40°C t o +85° C.) PARAMETER SYM B OL MIN TYP MAX UNITS NOTES Input Leak age Port 0, EA , Pins, I/O Mode I L -10 +10 m A 13 Input Leakage Port 0, Bu s Mode I L -300 +300 m A 14 RST Pulldown Res[...]

  • Page 35

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 35 of 47 AC ELECTRIC AL CHARACTERIST ICS (Note 1) 33MHz VARIAB LE CLOCK PARAMETER SY MBOL MIN MAX MIN MAX UNITS External Osc illator 0 33 0 33 Oscillator Frequency E xternal C rystal 1/t CL CL 1 33 1 33 MHz ALE Pulse Wid th t LHL L 40 1.5t CLCL -5 ns Port 0 Address Valid to AL[...]

  • Page 36

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 36 of 47 MOVX CH ARACTERISTICS USIN G STRETCH M EMORY C YCLES VARIABLE CLOCK PARAMETER SYM B OL MIN M AX UNITS STRETCH 1.5t CLCL -5 t MCS =0 Data Access ALE Pulse Width t LHLL2 2t CLCL -5 ns t MCS >0 0.5t CLCL -5 t MCS =0 Port 0 A ddress Val id to ALE Low t AVLL2 t CLCL -5 [...]

  • Page 37

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 37 of 47 MOVX CH ARACTERISTICS USIN G STRETCH M EMORY C YCLES (continued) M2 M1 M0 MOVX CYCLES t MCS 0 0 0 2 machine cy cles 0 0 0 1 3 m achine cycle s (default) 4 t CLCL 0 1 0 4 machine cy cles 8 t CLCL 0 1 1 5 machine cy cles 12 t CLCL 1 0 0 6 machine cy cles 16 t CLCL 1 0 1[...]

  • Page 38

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 38 of 47 EXPLAN ATION OF A C SYM BOLS In an effort to remain compatible with the original 8051 famil y, this device specifies the same parameters as such devices, using the same s ymbols. F or completene ss, the following is an explanation of the symbols. t Tim e A Address C C[...]

  • Page 39

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 39 of 47 EXTERNA L PROGRAM MEM ORY READ CYCLE EXTERN A L D ATA MEMORY READ CYCLE t VALL2 WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .10[...]

  • Page 40

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 40 of 47 DATA MEMOR Y WRITE CYCLE DATA MEMORY WRITE W ITH STRETCH = 1 t AVL L2 WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.T[...]

  • Page 41

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 41 of 47 DATA MEMORY WRITE W ITH STRETCH = 2 EXTERNA L CLOCK DRIVE WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 [...]

  • Page 42

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 42 of 47 SERIAL PORT MODE 0 TIMING WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW[...]

  • Page 43

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 43 of 47 POWER-CYCLE TIMING EPROM PROGRAM MING AND VERIFICATION WAVEFORM S WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW[...]

  • Page 44

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 44 of 47 PACKAGE INFORM ATION (The package drawing(s) in this dat a sheet may n ot reflect th e most curren t specificati ons. For the latest pac kage outline information, go to ww w.maxim-ic.co m/DallasPackInfo .) WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW[...]

  • Page 45

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 45 of 47 PACKAGE INFORM ATION (continu ed) (The package drawing(s) in this dat a sheet may n ot reflect th e most curren t specificati ons. For the latest pac kage outline information, go to ww w.maxim-ic.co m/DallasPackInfo .) WW W .100 Y .COM.TW WW W .100 Y .COM.TW WW W .100[...]

  • Page 46

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 46 of 47 PACKAGE INFORM ATION (continu ed) (The pac kage dr awing(s ) in this data sh eet m ay not ref lect the m ost c urrent spec ific ations. For the la test pac kage outline inf orm ation, go t o www .maxim-ic.com /DallasPac kInfo .) PKG 52-PIN DIM MI N NOM M A X A — —[...]

  • Page 47

    DS87C530/D S83C 530 EP ROM/ROM Microc ontrol lers with Rea l-T ime Clock 47 of 47 Maxim/Dallas S emiconductor cannot assu me responsibility for use of a ny circuitry other than circuitry entirel y embodied i n a Ma xim/Dall as Se micond uctor pr oduct. No circuit paten t licenses are i mplied. Maxi m/Dallas S emicon ductor rese rves the right t o c[...]