Maxim Dallas DS83C530 Скачать руководство пользователя страница 25

DS87C530/DS83C530 EPROM/ROM Microcontrollers with Real-Time Clock 

 

 

25 of 47

  

PERIPHERAL OVERVIEW 

The DS87C530/DS83C530 provide several of the most commonly needed peripheral functions in 
microcomputer-based systems. These new functions include a second serial port, power-fail reset, Power-
fail interrupt, and a programmable watchdog timer. These are described below, and more details are 
available in the 

High-Speed Microcontroller User’s Guide

 

SERIAL PORTS 

The DS87C530/DS83C530 provide a serial port (UART) that is identical to the 80C52. In addition it 
includes a second hardware serial port that is a full duplicate of the standard one. This port optionally 
uses pins P1.2 (RXD1) and P1.3 (TXD1). It has duplicate control functions included in new SFR 
locations.  
 
Both ports can operate simultaneously but can be at different baud rates or even in different modes. The 
second serial port has similar control registers (SCON1; C0h, SBUF1; C1h) to the original. The new 
serial port can only use Timer 1 for timer-generated baud rates. 
 

TIMER RATE CONTROL 

There is one important difference between the DS87C530/DS83C530 and 8051 regarding timers. The 
original 8051 used 12 clocks per cycle for timers as well as for machine cycles. The 
DS87C530/DS83C530 architecture normally uses 4 clocks per machine cycle. However, in the area of 
timers and serial ports, the DS87C530/DS83C530 will default to 12 clocks per cycle on reset. This allows 
existing code with real-time dependencies such as baud rates to operate properly. 
 
If an application needs higher speed timers or serial baud rates, the user can select individual timers to run 
at the 4-clock rate. The Clock Control register (CKCON; 8Eh) determines these timer speeds. When the 
relevant CKCON bit is logic 1, the DS87C530/DS83C530 use 4 clocks per cycle to generate timer 
speeds. When the bit is a 0, the DS87C530 uses 12 clocks for timer speeds. The reset condition is a 0. 
CKCON.5 selects the speed of Timer 2. CKCON.4 selects Timer 1 and CKCON.3 selects Timer 0. 
Unless a user desires very fast timing, it is unnecessary to alter these bits. Note that the timer controls are 
independent. 
 

POWER-FAIL RESET 

The DS87C530/DS83C530 use a precision bandgap voltage reference to decide if V

CC

 is out of tolerance. 

While powering up, the internal monitor circuit maintains a reset state until V

CC

 rises above the V

RST

 

level. Once above this level, the monitor enables the crystal oscillator and counts 65,536 clocks. It then 
exits the reset state. This power-on reset (POR) interval allows time for the oscillator to stabilize. 
 
A system needs no external components to generate a power-related reset. Anytime V

CC

 drops below 

V

RST

, as in power failure or a power drop, the monitor will generate and hold a reset. It occurs 

automatically, needing no action from the software. Refer to the 

Electrical Specifications

 section for the 

exact value of V

RST

 

POWER-FAIL INTERRUPT 

The voltage reference that sets a precise reset threshold also generates an optional early warning power-
fail interrupt (PFI). When enabled by software, the processor will vector to program memory address 
0033h if V

CC

 drops below V

PFW

. PFI has the highest priority. The PFI enable is in the Watchdog Control 

SFR (WDCON–D8h). Setting WDCON.5 to logic 1 will enable the PFI. Application software can also 

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

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

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

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

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

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

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

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

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

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

 

 

Содержание Dallas DS83C530

Страница 1: ...ROM Microcontrollers with Real Time Clock The High Speed Microcontroller User s Guide must be used in conjunction with this data sheet Download it at www maxim ic com microcontrollers WWW 1 WWW 100Y...

Страница 2: ...100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y CO...

Страница 3: ...ted Please contact your local Dallas Semiconductor sales representative for ordering information Note The DS87C530 DS83C530 are monolithic devices A user must supply an external battery or super cap a...

Страница 4: ...M TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW...

Страница 5: ...own that remains on until either a 1 is written or a reset occurs Writing a 1 after the port has been at 0 will cause a strong transition driver to turn on followed by a weaker sustaining pullup Once...

Страница 6: ...7 RD External Data Memory Read Strobe 42 35 EA External Access Input Active Low Connect to ground to use an external ROM Internal RAM is still accessible as determined by register settings Connect to...

Страница 7: ...to 1 improved opcodes makes dramatic speed improvements likely for any code These architecture improvements produce a peak instruction cycle in 121ns 8 25 MIPs The Dual Data Pointer feature also allow...

Страница 8: ...in the standard 80C52 are duplicated in this device Table 1 shows the register addresses and bit locations The High Speed Microcontroller User s Guide describes all SFRs WWW 1 WWW 100Y COM WWW 100Y C...

Страница 9: ...WW 100Y COM TW WWW 100Y CO WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y CO WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM...

Страница 10: ...g from 0000 The RTC features a programmable alarm condition A user selects the alarm time When the RTC reaches the selected value it sets a flag This will cause an interrupt if enabled even in Stop mo...

Страница 11: ...Hz crystal as the RTC time base There are two versions of standard crystals available with 6pF and 12 5pF load capacitance The tradeoff is that the 6pF uses less power giving longer life while VCC is...

Страница 12: ...otection should be added to prevent the device pin from going below 0 3V Some power supplies can give a small undershoot on power up which should be prevented Application Note 93 Design Guidelines for...

Страница 13: ...is required if this feature is not used When accessing external program memory the first 16kB would be inaccessible To select a smaller effective ROM size software must alter bits RMS2 RMS0 Altering...

Страница 14: ...hile enabled MOVX addresses greater than 03FFh automatically go to external memory through Ports 0 and 2 When disabled the 1kB memory area is transparent to the system memory map Any MOVX directed to...

Страница 15: ...a two machine cycle MOVX A Stretch of 7 will result in a MOVX of nine machine cycles Software can dynamically change this value depending on the particular memory or peripheral On reset the Stretch v...

Страница 16: ...ated instructions use the currently selected DPTR for any activity Therefore it takes only one instruction to switch from a source to a destination address Using the Dual Data Pointer saves code from...

Страница 17: ...re is little reason to use Idle mode in new designs Table 4 Machine Cycle Rate CRYSTAL SPEED MHz FULL OPERATION 4 CLOCKS MHz PMM1 64 CLOCKS kHz PMM2 1024 CLOCKS kHz 11 0592 2 765 172 8 10 8 16 4 00 25...

Страница 18: ...ed 0 1 4 clocks default 1 0 64 clocks 1 1 1024 clocks The selection of instruction cycle rate will take effect after a delay of one instruction cycle Note that the clock divider choice applies to all...

Страница 19: ...M Alternately software can prevent an undesired exit from PMM by entering a low priority interrupt service level before entering PMM This will prevent other low priority interrupts from causing a Swit...

Страница 20: ...a reduced clock divider and enables the ring a Switchback will only restore the divider speed The ring will remain as the time base until altered by software If there is serial activity Switchback us...

Страница 21: ...W WWW 100Y COM TW WWW 100Y CO WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y CO WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y C...

Страница 22: ...WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100...

Страница 23: ...ll power PMM or Idle modes The second feature allows an additional power saving option while also making Stop easier to use This is the ability to start instantly when exiting Stop mode It is the inte...

Страница 24: ...very instruction cycle NOTE DIAGRAM ASSUMES THAT THE OPERATION FOLLOWING STOP REQUIRES LESS THAN 18ms TO COMPLETE WWW 1 WWW 100Y COM WWW 100Y COM TW WWW 100Y COM TW WWW WWW 100Y COM TW WWW 100Y CO WWW...

Страница 25: ...e the VRST level Once above this level the monitor enables the crystal oscillator and counts 65 536 clocks It then exits the reset state This power on reset POR interval allows time for the oscillator...

Страница 26: ...33MHz 0 0 217 clocks 3 9718ms 217 512 clocks 3 9874ms 0 1 220 clocks 31 77ms 220 512 clocks 31 79ms 1 0 223 clocks 254 20ms 223 512 clocks 254 21ms 1 1 226 clocks 2033 60ms 226 512 clocks 2033 62ms A...

Страница 27: ...or RI0 from Serial Port 0 23h 6 8051 TF2 Timer 2 2Bh 7 8051 SCON1 TI1 or RI1 from Serial Port 1 3Bh 8 DALLAS INT2 External Interrupt 2 43h 9 DALLAS INT3 External Interrupt 3 4Bh 10 DALLAS INT4 Externa...

Страница 28: ...veforms and timing are provided in the Electrical Specifications section Program the DS87C530 as follows 1 Apply the address value 2 Apply the data value 3 Select the programming option from Table 9 u...

Страница 29: ...egister have the following function Bits 7 to 4 Reserved program to 1 Bit 3 Watchdog POR default Set 1 Watchdog reset function is disabled on power up Set 0 Watchdog reset function is enabled automati...

Страница 30: ...100Y COM TW WWW 100Y COM TW WWW 100Y CO WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW...

Страница 31: ...COM TW WWW 100Y CO WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y CO WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 1...

Страница 32: ...TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW...

Страница 33: ...45 V 3 Output High Voltage Ports 1 2 3 ALE PSEN at IOH 50mA VOH1 2 4 V 3 8 Output High Voltage Ports 1 2 3 at IOH 1 5mA VOH2 2 4 V 3 9 Output High Voltage Port 0 in Bus Mode IOH 8mA VOH3 2 4 V 3 10 I...

Страница 34: ...t Note 12 Ports 1 2 and 3 source transition current when being pulled down externally It reaches its maximum at approximately 2V Note 13 0 45 VIN VCC RST VCC This condition mimics operation of pins in...

Страница 35: ...ll change in relation to duty cycle variation Note 2 Address is driven strongly until ALE falls and is then held in a weak latch until overdriven externally WWW 1 WWW 100Y COM WWW 100Y COM TW WWW 100Y...

Страница 36: ...n The following table shows the value of tMCS for each Stretch selection WWW 1 WWW 100Y COM WWW 100Y COM TW WWW 100Y COM TW WWW WWW 100Y COM TW WWW 100Y CO WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM...

Страница 37: ...WW 100Y CO WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y CO WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM...

Страница 38: ...a Float after Enable tEHQZ 0 48tCLCL PROG High to PROG Low tGHGL 10 ms Note 1 All voltages are referenced to ground WWW 1 WWW 100Y COM WWW 100Y COM TW WWW 100Y COM TW WWW WWW 100Y COM TW WWW 100Y CO W...

Страница 39: ...TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW...

Страница 40: ...WW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y...

Страница 41: ...0Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM T...

Страница 42: ...100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM...

Страница 43: ...WW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y...

Страница 44: ...W 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y C...

Страница 45: ...TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 1...

Страница 46: ...TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW 100Y COM TW WWW...

Страница 47: ...using external crystal 7 Changed RST pulldown resistance from 170kW to 200kW maximum 8 Corrected Data memory write with stretch diagrams to show falling edge of ALE coincident with rising edge of C3 c...

Отзывы: