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

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

 

 

18 of 47

  

CRYSTAL-LESS PMM 

A major component of power consumption in PMM is the crystal amplifier circuit. The 
DS87C530/DS83C530 allow the user to switch CPU operation to an internal ring oscillator and turn off 
the crystal amplifier. The CPU would then have a clock source of approximately 2MHz to 4MHz, divided 
by either 4, 64, or 1024. The ring is not accurate, so software cannot perform precision timing. However, 
this mode allows an additional saving of between 0.5mA and 6.0mA, depending on the actual crystal 
frequency. While this saving is of little use when running at 4 clocks per instruction cycle, it makes a 
major contribution when running in PMM1 or PMM2. 
 

PMM OPERATION 

Software invokes the PMM by setting the appropriate bits in the SFR area. The basic choices are divider 
speed and clock source. There are three speeds (4, 64, and 1024) and two clock sources (crystal, ring). 
Both the decisions and the controls are separate. Software will typically select the clock speed first. Then, 
it will perform the switch to ring operation if desired. Lastly, software can disable the crystal amplifier if 
desired.  
 
There are two ways of exiting PMM. Software can remove the condition by reversing the procedure that 
invoked PMM or hardware can (optionally) remove it. To resume operation at a divide-by-4 rate under 
software control, simply select 4 clocks per cycle, and then crystal-based operation if relevant. When 
disabling the crystal as the time base in favor of the ring oscillator, there are timing restrictions associated 
with restarting the crystal operation. Details are described below. 
 
There are three registers containing bits that are concerned with PMM functions. They are Power 
Management Register (PMR; C4h), Status (STATUS; C5h), and External Interrupt Flag (EXIF; 91h) 
 

Clock Divider 

Software can select the instruction cycle rate by selecting bits CD1 (PMR.7) and CD0 (PMR.6) as 
follows: 

CD1 CD0 

CYCLE 

RATE 

0 0 

Reserved 

4 clocks (default) 

1 0 

64 

clocks 

1 1 

1024 

clocks 

 
The selection of instruction cycle rate will take effect after a delay of one instruction cycle. Note that the 
clock divider choice applies to all functions including timers. Since baud rates are altered, it will be 
difficult to conduct serial communication while in PMM. There are minor restrictions on accessing the 
clock selection bits. The processor must be running in a 4-clock state to select either 64 (PMM1) or 1024 
(PMM2) clocks. This means software cannot go directly from PMM1 to PMM2 or visa versa. It must 
return to a 4-clock rate first. 
 

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...

Отзывы: