28.10.2014 Views

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Freescale</strong> <strong>Semiconductor</strong>, Inc.<br />

Queued Analog-to-Digital Converter (QADC)<br />

NOTE:<br />

The guideline for selecting PSH and PSL is to maintain approximately<br />

50 percent duty cycle; for prescaler values less than 16 or PSH ~=PSL.<br />

For prescaler values greater than 16, keep PSL as large as possible.<br />

nc...<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, I<br />

Figure 18-42 shows that the prescaler is essentially a variable pulse<br />

width signal generator. A 5-bit down counter, clocked at the system clock<br />

rate, is used to create both the high phase and the low phase of the<br />

QCLK signal. At the beginning of the high phase, the 5-bit counter is<br />

loaded with the 5-bit PSH value. When the 0 detector finds that the high<br />

phase is finished, the QCLK is reset. A 3-bit comparator looks for a one’s<br />

complement match with the 3-bit PSL value, which is the end of the low<br />

phase of the QCLK.<br />

These equations define QCLK frequency:<br />

Where:<br />

high QCLK time = (PSH + 1) ÷ f sys<br />

low QCLK time = (PSL + 1) ÷ f sys<br />

f QCLK = 1 ÷ (high QCLK time + low QCLK time)<br />

PSH = 0 to 31, the prescaler QCLK high cycles in QACR0<br />

PSL = 0 to 7, the prescaler QCLK low cycles in QACR0<br />

f sys = system clock frequency<br />

f QCLK = QCLK frequency<br />

These are equations for calculating the QCLK high and low phases in<br />

example 1:<br />

high QCLK time = (11 + 1) ÷ 40 × 10 6 = 300 ns<br />

low QCLK time = (7 + 1) ÷ 40 × 10 6 = 200 ns<br />

f QCLK = 1/(300 + 200) = 2 MHz<br />

These are equations for calculating the QCLK high and low phases in<br />

example 2:<br />

high QCLK time = (7 + 1) ÷ 32 × 10 6 = 250 ns<br />

low QCLK time = (7 + 1) ÷ 32 × 10 6 = 250 ns<br />

f QCLK = 1/(250 + 250) = 2 MHz<br />

Technical Data <strong>MMC2107</strong> – Rev. 2.0<br />

478 Queued Analog-to-Digital Converter (QADC) MOTOROLA<br />

For More Information On This Product,<br />

Go to: www.freescale.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!