DS87C530/DS83C530 EPROM/ROM Microcontrollers with
Crystal/Ring Operation
The DS87C530/DS83C530 allow software to choose the clock source as an independent selection from the instruction cycle rate. The user can select
The XT/ RG bit (EXIF.3) selects the crystal or ring as the clock source. Setting XT/ RG = 1 selects the crystal. Setting XT/ RG = 0 selects the ring. The RGMD (EXIF.2) bit serves as a status bit by indicating the active clock source. RGMD = 0 indicates the CPU is running from the crystal. RGMD = 1 indicates it is running from the ring. When operating from the ring, disable the crystal amplifier by setting the XTOFF bit (PMR.3) to a 1. This can only be done when XT/ RG = 0.
When changing the clock source, the selection will take effect after a
Switchback has no affect on the clock source. If software selects 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 usually occurs with enough time to create proper baud rates. This is not true if the crystal is off and the CPU is running from the ring. If sending a serial character that wakes the system from
Table 6 is a summary of the bits relating to PMM and its operation. The flow chart below illustrates a typical decision set associated with PMM.
20 of 47