Categories: Electronics

Preaccumulator handles VFC outputs which are too quick for a unadorned CTP to swallow



Analog-to-digital conversion based mostly on the traditional mixture of a voltage-to-frequency converter (VFC) with a counter has been round for (many) many years, primarily as a result of it has some sturdy time-proven benefits. VFC digitization is of course integrating, so excessive noise rejection is inherent, as is programmable decision (if you would like extra bits, simply depend longer). Sadly, excessive conversion velocity isn’t. 

Wow the engineering world along with your distinctive design: Design Concepts Submission Information

Helpful decision (8 or extra bits) tens-of-microseconds VFC conversion instances require tens-of-megahertz output frequencies. There are current VFC designs that may flap that quick, e.g., Jim Williams’s superior 100 MHz King Kong  and my very own “20 MHz VFC with take-back-half cost pump. Nonetheless, these attainable options solely pose one other doubtlessly pesky downside. What to make use of for a counter?

Incessantly (no pun meant) the best and most cost-effective digital associate for a VFC is the µC’s onboard counter-timer peripheral (CTP), usually offering 16 bits of decision at zero added components value. Sadly, the need of taking a number of (e.g., 4) samples of every cycle of incoming pulses by onboard CTP logic limits most depend fee to a fraction (usually ¼) of the µC’s inner clock.  

Thus, for a 20-MHz inner clock, 5 MHz is the quickest achievable CTP depend fee. Sorry, Kong.

After all, an exterior hardwired counter peripheral might be carried out that might simply accommodate quick VFCs (okay, possibly Kong not so completely straightforward), however value, components depend, and board space make this feature fairly unattractive.

Proven in Determine 1 is a compromise topology that mixes the CTP doing what it does greatest (offering plenty of bits), with a single exterior 4-bit MSI pre/scaler/accumulator chip. This extends the peripheral’s velocity by as much as 16x (therefore as much as 80 MHz with a CTP 5-MHz prime finish), at the price of (at most) 4 extra common objective I/O (GPIO) pins.

Right here’s the way it works.

Determine 1 100-MHz MSI counter prescales and accumulates VFC LSBs so clunky CTP can cope.

  1. 5 GPIO pins are programmed for interface with the preaccumulator:
    1. 4 as inputs (IN1 by means of IN4)
    2. One as output (OUT).
  2. IN4 can also be programmed for enter to the chosen CTP, which is programmed for 16-bit accumulation.

Every VFC integration cycle contains the next steps:

  1. OUT = 0 to disable counting.
  2. A 20-bit preliminary worth (X1) is fashioned by concatenating the states of the INx bits (as 4 LSBs) with the 16 bits of the CTP (as 16 MSBs), i.e., X1=[cccc cccc cccc cccc iiii].
  3. OUT = 1 for the specified integration interval.  A sensible most = 220/VFCmax, shorter if decrease decision and/or increased conversion velocity is required.
  4. OUT = 0 to freeze counting.
  5. A 20-bit ultimate worth (X2) is fashioned by concatenating INx with the CTP.
  6. The 20-bit conversion end result = X2 – X1 modulo 220.

Be aware that if the ratio of max VFC output to max CTP depend fee is lower than 8x, then solely three INx pins want be allotted to the interface (Xx = [ccc cccc cccc ciii]), with IN3 programmed as CTP enter. If lower than 4x, then solely two, (Xx = [cc cccc cccc ccii]). And so forth.

If less complicated arithmetic is extra vital than conserving GPIO pins, then a sixth output pin will be related to and pulsed low on the onset of conversion to reset the INx bits to zero, together with the same preload of the CTP bits. This might eradicate steps #6 and #10 of the conversion sequence.

Stephen Woodward’s relationship with EDN’s DI column goes again fairly a good distance. Over 100 submissions have been accepted since his first contribution again in 1974.

Associated Content material

<!–
googletag.cmd.push(perform() { googletag.show(‘div-gpt-ad-native’); });
–>

The publish Preaccumulator handles VFC outputs which are too quick for a unadorned CTP to swallow appeared first on EDN.


👇Comply with extra 👇
👉 bdphone.com
👉 ultraactivation.com
👉 trainingreferral.com
👉 shaplafood.com
👉 bangladeshi.assist
👉 www.forexdhaka.com
👉 uncommunication.com
👉 ultra-sim.com
👉 forexdhaka.com
👉 ultrafxfund.com
👉 ultractivation.com
👉 bdphoneonline.com

Uncomm

Share
Published by
Uncomm

Recent Posts

Rubidium Stabilises Laser For Quantum Know-how

- Commercial - Researchers at UC Santa Barbara have engineered compact, low-cost lasers matching lab-grade…

5 hours ago

Memes, Jokes and Cats: South Koreans Use Parody for Political Protest

As South Koreans took to the streets this month demanding the ousting of their president,…

20 hours ago

2024 Wrap Up: The place Are We with Development Security?

Is building security a precedence at your organization? There was an evolution that has occurred…

20 hours ago

This is all the things we count on and need from smartwatches and good rings in 2025

Sunday Runday(Picture credit score: Android Central)On this weekly column, Android Central Wearables Editor Michael Hicks…

20 hours ago

সবকিছু ঠিক থাকলে ২৯ ডিসেম্বর লন্ডন যাত্রা করবেন খালেদা জিয়া

শারীরিকভাবে নতুন কোনও সমস্যা উদয় না হলে আগামী ২৯ ডিসেম্বর (রবিবার) লন্ডনের উদ্দেশে ঢাকা ত্যাগ…

20 hours ago

Photo voltaic MPPT Charger Reference Design

The photo voltaic charging reference design makes use of MPPT to enhance power use for…

1 day ago