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:

IMU with dual-sensing capability
EBV Electrolink Analogue, Mixed Signal, LSI
ST’s 6-axis inertial measurement unit integrates a dual accelerometer up to 320g and embedded AI for activity tracking and high-impact sensing.

Read more...
Plural data converter series
Analogue, Mixed Signal, LSI
Silanna Semiconductor has announced the launch of Plural, a new generation of data converters for customers eager to find a more available, affordable, high-performance alternative to existing brands.

Read more...
Precision JFET op-amp
Altron Arrow Analogue, Mixed Signal, LSI
The specifications of the ADA4620 make it optimal as a front-end amplifier in a data-acquisition system, or for a TIA circuit with high input impedance.

Read more...
A new era in modular I/O solutions
Rugged Interconnect Technologies Analogue, Mixed Signal, LSI
Aerospace and defence system designers are demanding scalable and high-performance I/O solutions and while traditional mezzanine standards have proven reliable, they often fall short of meeting modern bandwidth, size, and flexibility requirements.

Read more...
High voltage instrument op-amp
iCorp Technologies Analogue, Mixed Signal, LSI
The SGM621B is a high accuracy, high voltage instrumentation amplifier, which is designed to set any gain from 1 to 10 000 with one external resistor.

Read more...
High-speed SAR ADC simplifies design
Altron Arrow Analogue, Mixed Signal, LSI
The ADI AD4080 simplifies data converter integration by integrating a low drift reference buffer, low dropout regulators and a 16K result data FIFO buffer.

Read more...
2-wire quad voltage output DAC
Altron Arrow Analogue, Mixed Signal, LSI
The DAC has a 2-wire serial interface that operates at clock rates up to 400 kHz, and this interface is SMBus compatible, allowing multiple devices to be placed on the same bus.

Read more...
Dual-channel ADC for RF applications
RFiber Solutions Analogue, Mixed Signal, LSI
The ARF0471 from Advanced RF is a dual-channel, 14-bit, 3 GSPS ADC, which features an on-chip buffer and sample-and-hold circuit.

Read more...
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...