
N5132 Technical Reference Manual
November 7, 2014 Page 17 of 20 Rev. 1.0
NuSpeech N5132 Technical Reference Manual
6 THE CALIBRATION OF SYSTEM CLOCK
The desired system clock of N5132 is 8,192 KHz. The system clock is generated by the ring oscillator
which connects 150K ohm resistor at OSC pin to ground. That 150K ohm resistor is labeled as Rosc.
Somehow the built-in ring oscillation circuit may vary from lot to lot. In this case, the 8,192 KHz of
system clock will relate to different Rosc value. The N5132 has one method to calibrate the system
clock. The BP33 will output 250 Hz clock signal when the system clock operates at 8,192 KHz exactly.
When the clock frequency of BP33 signal is more than 250 Hz, it means the system clock is more than
8,192 KHz. In this case, Rosc can be changed to a higher value of 150K ohm. On the other hand,
when the clock frequency of BP33 signal is less than 250 Hz, it means the system clock is less than
8,192 KHz, then Rosc can be changed to a lower value of 150K ohm.
The BP33 is a pull-high input pin by default. In order to facilitate measurement the N5132 provides two
schemes to enable the output of 250 Hz clock signal. One method is to connect BP32 to low and
another method is to send the CLK250HZ_EN command through the SPI command protocol. One is
hardware method and the other is software method to do the same function. These two methods may
conflict at the same time. So the Table 6-1 comes out a truth table to enable the output of 250 Hz
clock.
Table 6-1: The method to enable the output of 250 Hz clock.
The interpretation of Table 6-1 is that the SPI command CLK250HZ_EN will force the output of 250 Hz
clock at BP33 no matter the setting of BP32 pin. The BP32 setting can take effect only when the
CLK250HZ_EN command is not issued or the clock output function is disabled after CLK250HZ_DIS
command is issued.
The 250 Hz clock can occur at BP33 continually no matter playback occurs or not when the clock
output is enabled using the above scheme.
BP32
1
0
1/0
SPI command
CLK250HZ_EN
BP33
250Hz clock
CLK250HZ_DIS No clock
250Hz clock
Ignore
N5132 pins