English
Language : 

IC-TW8_13 Datasheet, PDF (60/63 Pages) IC-Haus GmbH – 16-BIT SIN/COS INTERPOLATOR WITH AUTO-CALIBRATION
iC-TW8 16-BIT SIN/COS INTERPOLATOR
Serial Configuration Mode
preliminary
Jan 9, 2013 Page SC33/36
Tuning the Internal Oscillator
The iC-TW8’s internal oscillator has a nominal fre-
quency of 20 MHz with 5V supplies and 16 MHz
with 3.3V supplies. However, manufacturing toler-
ances and changes in temperature can cause large
variations in the actual internal oscillator frequency
of any given device.
The clock tuning value in the MAIN_CLOCK.freq
variable allows tuning the frequency of the internal
oscillator. In addition, the clock divider value in the
MAIN_CLOCK.div variable allows dividing the
oscillator frequency by 1, 2, or 4. These two param-
eters allow setting the internal oscillator of any spe-
cific device to the desired frequency. The
MAIN_CLOCK register can be accessed using the
serial ports (see Programmer’s Reference) or via the
Settings tab in the GUI.
To observe the internal oscillator output, enable In-
ternal Oscillator Test Mode in the Test Mode pane
of the Settings tab in the GUI or set the Enable
Clock Test Mode bit (adctest) in the RB_TEST1
register in the RB Block of internal memory using
serial port commands (see Programmer’s Refer-
ence). This forces fcore/2 onto the FRAME output
(pin 8), as shown below, where it can be observed
using an oscilloscope or a frequency counter.
MAIN_CLOCK.div
Internal
Oscillator
Clock
Tuning
Value
MAIN_CLOCK.freq
Clock
Divider
fcore
÷2
FRAME
the actual oscillator frequency. Finally, disable In-
ternal Oscillator Test Mode in the Test Mode pane
of the Settings tab in the GUI or reset the Enable
Clock Test Mode bit (adctest) in the RB_TEST1
register and then store the updated MAIN_CLOCK
register value to EEPROM using a Write All com-
mand via one of the serial ports or the Write
EEPROM button in the GUI.
Typical internal oscillator frequency of the iC-TW8
with 5V supplies and a clock divider of 1 at room
temperature (20°C) is shown below. Other clock
divider values produce appropriately scaled-down
frequencies.
Typical Internal Oscillator Frequency
Clock FRAME Output
fcore
Tuning
Frequency
Frequency
Value
[MHz]
[MHz]
0
10.6
21.2
1
11.0
22.0
2
11.5
23.0
3
11.9
23.8
4
12.5
25.0
5
13.0
26.0
6
13.6
27.2
7
14.3
28.6
8
15.1
30.2
9
15.8
31.6
10
16.8
33.6
11
17.7
35.4
12
18.9
37.8
13
20.2
40.4
14
21.6
43.2
15
23.3
46.6
Note that the nominal oscillator frequency is
achieved with a clock tuning value of 0 and that the
range of the clock tuning value allows setting the
internal oscillator frequency above the maximum
allowed for proper operation of the device (shown in
red). Setting the internal oscillator frequency higher
than the specified maximum may result in undefined
operation.
Figure 36: Internal Oscillator Tuning
First, set the clock divider to the desired value, usu-
ally 1 (MAIN_CLOCK.div = 3), and the clock tun-
ing value to its lowest value (MAIN_CLOCK.freq =
0). Increment the clock tuning value until the de-
sired oscillator frequency is obtained, remembering
that the output frequency on the FRAME pin is half
In general, set the internal oscillator frequency as
close to—but not greater than—the maximum fre-
quency for the supply voltage used (32 MHz at 5V,
24MHz at 3.3V). The temperature coefficient of the
internal oscillator is negative, so oscillator frequen-
cy decreases with rising temperature and increases
with decreasing temperature. In applications where
low temperature operation is expected, the room
Copyright © 2011–2013 iC-Haus
http://www.ichaus.com