Analogue, Mixed Signal, LSI


Analog MCU generates programmable digital waveforms

30 April 2008 Analogue, Mixed Signal, LSI

Many systems require fixed or programmable digital clock waveforms. In applications where PCB area is constrained, the microcontroller typically generates these signals. Three methods for generating a clock using an ADuC702x 'analog microcontroller' from Analog Devices are presented in this article. This microcontroller is optimised for analog applications and combines precision analog functions, such as high resolution ADCs and DACs, a voltage reference and temperature sensor, with an industry-standard microcontroller and flash memory.

Using general-purpose outputs

A classic solution for clock generation is to toggle one of the microcontroller's general-purpose outputs. If a timer is available, it can be configured to complement the general-purpose output in the interrupt service routine, each time it overflows. This type of fully programmable digital waveform generation allows for a programmable duty cycle, but the interrupt latency limits its speed and precision. The ARM7 based ADuC702x has a variable interrupt latency. This variation creates jitter on the generated signal. Another liability of this method is that the timer interrupt has to be serviced with high priority in order to maintain correct timing. Ideally, the digital waveform generation should not involve the core.

Using pulse-width modulation

One solution that does not involve the core uses an integrated PWM (pulse-width modulator). This method also allows variable duty cycles. The clock resolution depends on the size of the PWM switching frequency register and core clock frequency. The main advantages of this solution are that there is no CPU load, and that a wide range of frequencies can be generated - from a few hertz to tens of megahertz. The ADuC702x family integrates a PWM block.

The disadvantages of this solution are that the precision of the PWM generated clock is dependent on the precision of the internal clock, and that it uses a full 3-phase PWM block that was not intended originally for this purpose. The accuracy can be improved by using an external 32 kHz crystal instead of the ±3% accurate on-chip oscillator, but this adds to the cost, size, and power budgets.

Using a flip-flop

A smaller solution consists of using a gate and flip-flop. The ADuC702x family includes a programmable logic array (PLA) that can be used to implement glue logic. This PLA consists of 16 programmable gates and flip-flops that are entirely configurable by software. A very simple clock can be programmed using only a NOT gate and a flip-flop, as shown in Figure 1.

Figure 1. Programmable clock using  the PLA
Figure 1. Programmable clock using the PLA

The flip-flop can be clocked from the core clock, the internal 32 kHz oscillator, Timer1, or a general-purpose input. The clock frequency can be very flexible, but the duty cycle cannot be programmed. The big advantage of this solution is that it ties up only a very small block of the chip.

The integration of uncommitted gates on the ADuC702x allows great flexibility. The table below summarises the characteristics of the three approaches. While each approach has advantages, only the application can determine which one is the most appropriate solution.

Comparison of three methods on the ADuC702x series
Comparison of three methods on the ADuC702x series





Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Infineon launches Edge Ai software solution
Altron Arrow Analogue, Mixed Signal, LSI
Infineon has introduced DEEPCRAFT, a new software solution category brand for Edge AI and machine learning, after the company recognised the huge potential of Edge AI for the market.

Read more...
16-bit voltage output denseDAC
Altron Arrow Analogue, Mixed Signal, LSI
The AD5766 uses a versatile four-wire serial interface that operates at clock rates of up to 50 MHz for write mode, and is compatible with SPI, QSPI, MICROWIRE, and DSP interface standards.

Read more...
AFE enables the software-defined factory
Avnet Silica Analogue, Mixed Signal, LSI
With its software configurable analogue inputs, where each input can be configured for voltage, current, resistance, or temperature, NXP’s N-AFE enables a new level of flexibility.

Read more...
Precision voltage reference
Altron Arrow Analogue, Mixed Signal, LSI
The ADR1001 is a fully integrated, ultra-low drift, buried Zener precision voltage reference solution in a single chip.

Read more...
Microphones enable low-power always-on state
Avnet Abacus Analogue, Mixed Signal, LSI
TDK Corporation has announced its InvenSense SmartSound T5848 I2S microphones to enable intelligent keyword, voice command, and sound detection at ultra-low power.

Read more...
Low power, low-noise amplifier
Altron Arrow Analogue, Mixed Signal, LSI
The ADL8141 is a low power consumption, low-noise amplifier that operates from 14 to 24 GHz, and draws a supply current of 25 mA from a 2 V supply.

Read more...
QLC Flash memory with the latest BiCS technology
EBV Electrolink Analogue, Mixed Signal, LSI
KIOXIA has implemented the groundbreaking CBA (CMOS directly Bonded to Array) technology, which enables the creation of higher density devices and an industry-leading interface speed of 3,6nbsp;Gbps.

Read more...
Precision op-amp
Altron Arrow Analogue, Mixed Signal, LSI
The ADA4099-1 and ADA4099-2 are single/dual robust, precision, rail-to-rail input/output operational amplifiers with inputs that operate from -VS to +VS and beyond, which is referred to as Over-The-Top.

Read more...
Using linear regulators as a filter
Altron Arrow Editor's Choice Analogue, Mixed Signal, LSI
Different circuits can be used to filter a supply voltage, and this article explains the main differences between using an LC filter and a linear regulator for filtering.

Read more...
High-speed PIN diode
Altron Arrow Analogue, Mixed Signal, LSI
Vishay’s new high-speed Silicon PIN diode is able to detect both visible and near infra-red radiation over a wide spectrum range from 350 to 1100 nm.

Read more...