C-23
REGISTERS
FREQ_GEN
FREQ_GEN
(8XC196MD)
Address:
Reset State:
1FB8H
00H
The frequency (FREQ_GEN) register holds a programmed value that specifies the output frequency.
This value is reloaded into the down-counter each time the counter reaches 0.
7 0
8XC196MD
Output Frequency
Bit
Number
Function
7:0 Output Frequency
Use the following formula to calculate the FREQ value for the desired output frequency
and write this value to the frequency register.
where:
FREQ = 8-bit value to load into FREQ_GEN register
F
XTAL1
= input frequency on XTAL1 pin, in MHz
FREQ_OUT = output frequency on FREQOUT pin, in MHz
FREQ
F
XTAL1
16
FREQ_OUT
×
---------------------------------------------
= 1–