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

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

 

 

19 of 47

  

Switchback 

To return to a 4-clock rate from PMM, software can simply select the CD1 and CD0 clock control bits to 
the 4 clocks per cycle state. However, the DS87C530/DS83C530 provide several hardware alternatives 
for automatic Switchback. If Switchback is enabled, then the device will automatically return to a 4-clock 
per cycle speed when an interrupt occurs from an enabled, valid external interrupt source. A Switchback 
will also occur when a UART detects the beginning of a serial start bit if the serial receiver is enabled 
(REN = 1). Note the beginning of a start bit does not generate an interrupt; this occurs on reception of a 
complete serial word. The automatic Switchback on detection of a start bit allows hardware to correct 
baud rates in time for a proper serial reception. A Switchback will also occur when a byte is written to the 
SBUF0 or SBUF1 for transmission.  
 
Switchback is enabled by setting the SWB bit (PMR.5) to a 1 in software. For an external interrupt, 
Switchback will occur only if the interrupt source could really generate the interrupt. For example, if 

INT0

 is enabled but has a low priority setting, then Switchback will not occur on 

INT0

 if the CPU is 

servicing a high priority interrupt. 
 

Status 

Information in the Status register assists decisions about switching into PMM. This register contains 
information about the level of active interrupts and the activity on the serial ports. 
 
The DS87C530/DS83C530 support three levels of interrupt priority. These levels are Power-fail, High, 
and Low. Bits STATUS.7–5 indicate the service status of each level. If PIP (Power-fail Interrupt Priority; 
STATUS. 7) is 1, then the processor is servicing this level. If either HIP (High Interrupt Priority; 
STATUS.6) or LIP (Low Interrupt Priority; STATUS.5) is high, then the corresponding level is in 
service. 
 
Software should not rely on a lower priority level interrupt source to remove PMM (Switchback) when a 
higher level is in service. Check the current priority service level before entering PMM. If the current 
service level locks out a desired Switchback source, then it would be advisable to wait until this condition 
clears before entering PMM. 
 
Alternately, software can prevent an undesired exit from PMM by entering a low priority interrupt service 
level before entering PMM. This will prevent other low priority interrupts from causing a Switchback. 
 
Status also contains information about the state of the serial ports. Serial Port Zero Receive Activity 
(SPRA0; STATUS.0) indicates a serial word is being received on Serial Port 0 when this bit is set to a 1. 
Serial Port 0 Transmit Activity (SPTA0; STATUS.1) indicates that the serial port is still shifting out a 
serial transmission. STATUS.2 and STATUS.3 provide the same information for Serial Port 1, 
respectively. These bits should be interrogated before entering PMM1 or PMM2 to ensure that no serial 
port operations are in progress. Changing the clock divisor rate during a serial transmission or reception 
will corrupt the operation. 
 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

 

 

WW

W.100

Y.COM.TW

      

WW

W.100

Y.COM.TW

      

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

Отзывы: