1998 Oct 07
33
Philips Semiconductors
Product specification
Pager baseband controller
PCA5007
6.12.2
6 MH
Z
O
SCILLATOR
C
ONTROL
R
EGISTER
(OS6CON)
The OS6CON special function register is used to control the operation of the on-chip 6 MHz oscillator. The 6 MHz
oscillator can be controlled as follows:
It can be enabled or disabled. Disabling this oscillator when the DC/DC converter is in standby mode and no port I/O
nor I
2
C-bus activity is required saves current.
The frequency of the oscillator can be adjusted by setting the SFx bits accordingly
The actual frequency of the oscillator can be measured by writing the MFR bit to logic 1.
Table 24
6 MHz Oscillator Control Register (OS6CON, SFR address D3H)
Table 25
Description of the OS6CON bits
6.12.3
6 MH
Z
O
SCILLATOR
M
EASURED
F
REQUENCY
R
EGISTER
(OS6M0)
The actual frequency of the 6 MHz on-chip oscillator can be calculated from the value in the OS6M0 special function
register, after a Measure Frequency operation (MFR).
Table 26
6 MHz Oscillator Measured Frequency Register (OS6M0, SFR address D4H)
The value stored in this SFR is the counted number of 6 MHz cycles during one 76.8 kHz period. The frequency of the
6 MHz oscillator is therefore f = MF
×
76800 Hz with a resolution of 76800 Hz.
7
6
5
4
3
2
1
0
ENB
SF4
SF3
SF2
SF1
SF0
MFR
BIT
SYMBOL
FUNCTION
OS6CON.7
ENB
Enable oscillator
. If ENB = 1 then the function is enabled. The enable bit is only
cleared when the processor writes the bit to logic 0, or if the DC/DC converter is put into
‘OFF’ state and a reset is generated during the following power-up sequence.
unused
Set frequency
. This 5-bit value adjusts the current of the ring oscillator and thus the
frequency. Writing a small value decreases the frequency. The nominal frequency of
6 MHz is assigned to code (SF4, SF3, SF2, SF1 SF0) = 00000. The resolution of the
frequency adjustment is 200 kHz per step, the range is approximately 3 to 9 MHz.
In order to start with the nominal frequency the MSB bit is inverted in this SFR.
OS6CON.6
OS6CON.5
OS6CON.4
OS6CON.3
OS6CON.2
OS6CON.1
OS6CON.0
SF4
SF3
SF2
SF1
SF0
MFR
Measure frequency
. If a positive pulse is issued on this SFR-bit a frequency
measurement cycle is executed. The duration of this cycle is one period of 76.8 kHz.
The count of 6 MHz periods during the measurement cycle is reported back in OS6M0.
The bit must be reset by software.
7
6
5
4
3
2
1
0
MF7
MF6
MF5
MF4
MF3
MF2
MF1
MF0