Hello, and welcome to this presentation of the STM32G0 digital-to-analog converter. This block is used to convert digital signals to analog voltages

Similar documents
Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which

Hello, and welcome to this presentation of the STM32 Infrared Timer. Features of this interface allowing the generation of various IR remote control

Hello, and welcome to this presentation of the STM32L4 comparators. It covers the main features of the ultra-lowpower comparators and some

Hello, and welcome to this presentation of the STM32L4 power efficiency optimization with an external SMPS.

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes

Designing with STM32F3x

Hello, and welcome to this presentation of the STM32 Chrom-ART Accelerator. It covers the features of this of this adaptive real-time accelerator

4 x 10 bit Free Run A/D 4 x Hi Comparator 4 x Low Comparator IRQ on Compare MX839. C-BUS Interface & Control Logic

Hello, and welcome to this presentation of the STM32 LCD TFT display controller. It covers all of the features of the LTDC controller which is used

32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones

SG2525A SG3525A REGULATING PULSE WIDTH MODULATORS

LM12L Bit + Sign Data Acquisition System with Self-Calibration

PRODUCT OVERVIEW OVERVIEW OTP

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs.

ALD500RAU/ALD500RA/ALD500R PRECISION INTEGRATING ANALOG PROCESSOR WITH PRECISION VOLTAGE REFERENCE

SCLK 4 CS 1. Maxim Integrated Products 1

SKY2000. Data Sheet DUAL-TRACK MAGNETIC STRIPE F2F DECODER IC. For More Information. Solution Way Co., Ltd

FX623 FX623. CML Semiconductor Products PRODUCT INFORMATION. Call Progress Tone Decoder

INL PLOT REFIN DAC AMPLIFIER DAC REGISTER INPUT CONTROL LOGIC, REGISTERS AND LATCHES

10-Bit, Low-Power, Rail-to-Rail Voltage-Output Serial DAC in SOT23

University of California at Berkeley Donald A. Glaser Physics 111A Instrumentation Laboratory

8-Bit, high-speed, µp-compatible A/D converter with track/hold function ADC0820

Dedan Kimathi University of technology. Department of Electrical and Electronic Engineering. EEE2406: Instrumentation. Lab 2

Outline. Analog/Digital Conversion

DS1075 EconOscillator/Divider

Quad 12-Bit Digital-to-Analog Converter (Serial Interface)

Linear Integrated Circuits

Design and Fabrication of High Frequency Linear Function Generator with Digital Frequency Counter using MAX038 and a PIC microcontroller

Low-Power, 12-Bit, Rail to Rail Voltage-Output Serial DAC in SOT23

ADC Board 4 Channel Notes September 29, DRAFT - May not be correct

MAXREFDES73#: WEARABLE, GALVANIC SKIN RESPONSE SYSTEM

Low Cost 10-Bit Monolithic D/A Converter AD561

PAiA 4780 Twelve Stage Analog Sequencer Design Analysis Originally published 1974

µtasker Document µtasker Hardware Timers

MM5452/MM5453 Liquid Crystal Display Drivers

SG500. Low Jitter Spectrum Clock Generator for PowerPC Designs. Approved Product. FREQUENCY TABLE (MHz) PRODUCT FEATURES CONNECTION DIAGRAM

Regulating Pulse Width Modulators

INTEGRATED CIRCUITS. AN109 Microprocessor-compatible DACs Dec

AN3252 Application note

Digital Systems Design

Z86116 CMOS Z8 PN MODULATOR WIRELESS CONTROLLER CUSTOMER PROCUREMENT SPECIFICATION FEATURES GENERAL DESCRIPTION Z86116 CP95WRL0501 PRELIMINARY

Real Time Embedded Systems. Lecture 1 January 17, 2012

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1

DS1075. EconOscillator/Divider PRELIMINARY FEATURES PIN ASSIGNMENT FREQUENCY OPTIONS

±32V Triple-Output Supply for LCDs, CCDs and LEDs Includes Fault Protection in a 3mm 3mm QFN

DS1073 3V EconOscillator/Divider

Selecting and Using High-Precision Digital-to-Analog Converters

Figure 1. C805193x/92x Capacitive Touch Sense Development Platform

Low Cost 100 g Single Axis Accelerometer with Analog Output ADXL190*

PRECISION INTEGRATING ANALOG PROCESSOR

INTERFACING WITH INTERRUPTS AND SYNCHRONIZATION TECHNIQUES

SKY3000. Data Sheet TRIPLE-TRACK MAGNETIC STRIPE F2F DECODER IC. For More Information. Solution Way Co., Ltd

.100 Hz TO 500 KHz OSCILLATOR RANGE

Assoc. Prof. Dr. Burak Kelleci

System-on-Chip for Rotation Detection

AD557 SPECIFICATIONS. T A = 25 C, V CC = 5 V unless otherwise noted) REV. B

I hope you have completed Part 2 of the Experiment and is ready for Part 3.

Octal Sample-and-Hold with Multiplexed Input SMP18

Pb-free lead plating; RoHS compliant

LINEAR IC APPLICATIONS

ICS PLL BUILDING BLOCK

Multiplexer for Capacitive sensors

8-bit Microcontroller with 512/1024 Bytes In-System Programmable Flash. ATtiny4/5/9/10

Microcontroller: Timers, ADC

LD7552. Green-Mode PWM Controller. Features. General Description. Applications. Typical Application 2/21/2005

General Purpose Clock Synthesizer

Lab 2.2 Custom slave programmable interface

CD4541BC Programmable Timer

FUNCTIONAL BLOCK DIAGRAM DIGITAL VIDEO ENGINE

VCC. UVLO internal bias & Vref. Vref OK. PWM Comparator. + + Ramp from Oscillator GND

High Speed PWM Controller

STM32L100C6 STM32L100R8 STM32L100RB

Tel: Fax:

ADC Bit µp Compatible A/D Converter

ADC0808/ADC Bit µp Compatible A/D Converters with 8-Channel Multiplexer

K / K / K164208

OBJECTIVE The purpose of this exercise is to design and build a pulse generator.

High Speed PWM Controller

DS1802 Dual Audio Taper Potentiometer With Pushbutton Control

GDM1101: CMOS Single-Chip Bluetooth Integrated Radio/Baseband IC

SG1524/SG2524/SG3524 REGULATING PULSE WIDTH MODULATOR DESCRIPTION FEATURES HIGH RELIABILITY FEATURES - SG1524 BLOCK DIAGRAM

HIGH LOW Astable multivibrators HIGH LOW 1:1

New Current-Sense Amplifiers Aid Measurement and Control

ADC Bit A/D Converter

100-MHz Pentium II Clock Synthesizer/Driver with Spread Spectrum for Mobile or Desktop PCs

12-Bit, Low-Power, Dual, Voltage-Output DAC with Serial Interface

DS1801 Dual Audio Taper Potentiometer

OBSOLETE. Bus Compatible Digital PWM Controller, IXDP 610 IXDP 610

Using the VM1010 Wake-on-Sound Microphone and ZeroPower Listening TM Technology

Massachusetts Institute of Technology MIT

8-Bit A/D Converter AD673 REV. A FUNCTIONAL BLOCK DIAGRAM

6-Bit A/D converter (parallel outputs)

LD7523 6/16/2009. Smart Green-Mode PWM Controller with Multiple Protections. General Description. Features. Applications. Typical Application REV: 00

Mapping Peripheral Capabilities When Migrating From 8-bit to 16-bit PIC MCUs

AN3137 Application note

Capacitive Touch Sensing Tone Generator. Corey Cleveland and Eric Ponce

DS1642 Nonvolatile Timekeeping RAM

Advanced Regulating Pulse Width Modulators

Transcription:

Hello, and welcome to this presentation of the STM32G0 digital-to-analog converter. This block is used to convert digital signals to analog voltages which can interface with the external world. 1

The STM32G0 digital-to-analog converter converts 8- or 12-bit digital data to an analog voltage. The DAC module has two converters that can work synchronously or asynchronously. A low-power Sample and Hold mode is also integrated. The DAC can interface with external potentiometers or bias circuitry. It can also create voice and arbitrary signals. 2

The digital-to-analog converter inside STM32G0 microcontrollers offers simple digital-to-analog conversion in an 8- or 12-bit mode; 10-bit monotonicity is guaranteed. The DAC outputs can have a low impedance buffer to drive external loads. Its Sample and Hold mode can reduce the power consumption significantly. The two converters can be synchronized with each other. The input data can be transferred by DMA which offloads the CPU. The DAC output data can be updated by a timer or an external trigger as well as a software trigger. It also integrates small logic to generate noise waves as well as triangle waves. 3

Here you can see the simplified block diagram of the digital-to-analog converter. This DAC block is supplied by VDDA. The digital-to-analog converter is an APB slave that supports DMA requests to fill the data hold register. Either of the DAC_OUTx signals can be disconnected from the corresponding output pin which can be used as an ordinary GPIO. DAC_OUTx signals can use an internal pin to connect to on-chip peripherals such as comparators. DAC output channels are buffered or non-buffered. Sample and hold block and registers use LSI (Low- Speed Internal oscillator) clock source and are operational in Stop mode for static conversions. The content of the Data Hold registers is transferred to the corresponding Data Output register when a trigger condition is detected, this includes software triggers. 4

Then the content of the Data Output register is transferred to the converter. Before enabling the output buffer, the voltage offset needs to be calibrated. This calibration is performed at the factory (loaded after reset) and can be adjusted by software during application operation. 4

The DAC output can be buffered for low impedance loads. When unbuffered, the output is directly connected to the R-2R resistor ladder network type of DAC. The DAC output can also be internally connected to the COMP units. 5

The DAC can support different input formats. In 8-bit mode, it s a right-aligned 8-bit data format. 6

In Dual-channel mode, it s an 8-bit plus 8-bit data format, in order to provide input data for two DACs. In 12-bits + 12-bits, either a right- or left-aligned mode can be used for input data. Data held in these registers are transferred to the related converters either synchronously (for instance, for stereo audio) or asynchronously. This means that the two channels can operate independently. 7

DAC output conversion is started by writing to the Data Hold register using software. 8 different timer outputs, an external I/O or software can trigger a DAC conversion. When a software trigger is used, the content of the Data Hold register is transferred to the corresponding Data Output register after 1 APB clock cycle. When a trigger occurs in Trigger mode, the content of the Data Hold register is transferred to the corresponding Data Output register after 3 APB clock cycles. 8

The Sample & Hold feature maintains the DAC output voltage while not actively driving continuously. It relies on an internal or external capacitor that will hold the voltage level at the end of the sample period. Then the DAC output can be set in high impedance. Of course the capacitor will discharge over time. That is why a refresh period has been defined. Upon expiration of the refresh period, the DAC output will be actively driven again to recharge the capacitor. 9

The digital-to-analog converter can work intermittently, charge the external or internal capacitor, and be powered down while the output voltage is kept on the hold capacitor. After the refresh period, the DAC is powered back on again and recharges the hold capacitor. 10

When the DAC is configured in Sample & Hold mode, it is able to generate its converted output voltage, and active circuitry can be turned off. In this mode, the DAC core and all corresponding logic and registers are driven by the LSI clock (lsi_ck) in addition to the dac_pclk clock, allowing the usage of the DAC channels in Deep-low-power modes such as Stop mode. The logic in charge of scheduling refreshes only requires the LSI clock. In doing so, the DAC is only active during very low duty cycles: sample and refresh; resulting in very low power consumption. The duty cycle program is very flexible and autonomous. 11

The capacitor can be external or internal. When it is external, the buffer can be used and the DAC s output can also be routed to internal components, such as embedded comparators. When it is internal, an embedded capacitor is used and the DAC s output is routed only to internal components. The charging time depends on the capacitor value. The timings for the three phases above are in units of lsi_ck clocks. 12

The DAC digital interface integrates two special signal generators. The Linear Feedback Shift register can create the noise signal for the DAC input. Each trigger updates the DAC output data by an LFSR block. The up-down counter with a programmable count value can create triangle wave data which can update the DAC output data. The data can also be updated by a trigger signal. 13

The DAC can also create DMA requests from the trigger signal. Once a trigger is detected, the Data Hold register value is then transferred to the Data Output register. Then the DMA request is generated to obtain the new data for the Data Hold register. As the update of the Output Data register is initiated directly by the trigger signal, the DAC output signal will not have jitter, so that it can create a stable sampling time signal output, making it easy to filter out the sampling frequency. 14

To transfer data from memory, a DMA request can be generated. The DAC DMA request is not queued so that if a second external trigger arrives before the acknowledgment of the first external trigger is received (first request), then no new request is issued and an underrun flag is set that causes a maskable interrupt request.

The digital-to-analog converter is active in the following low-power modes: Run and Sleep. In Stop 0 mode, it remains active when Sample & Hold mode is selected. In Standby and shutdown modes, the DAC is powereddown and it must be reinitialized afterwards.

The following table shows some performance parameters for the digital-to-analog converter. The DAC can work between 1.8 and 3.6 volts. 10-bit monotonicity is guaranteed. Power consumption is 185 µa when the buffer is enabled and 155 µa when the buffer is disabled. By using Sample & Hold mode, the current consumption can be drastically reduced. Depending on the condition and the hold capacitor characteristics, less than 1 µa current consumption is possible for this mode. The DAC buffered output has a settling time of 1.6 µsec with 50 pf load. The DAC can handle a sampling rate of 1 mega sample per second; when using external components, it can support up to 10 mega samples per second. This is described in detail in application note AN4566. 17

This is a list of peripherals related to the DAC. Please refer to these peripheral trainings for more information if needed. 18

Application notes dedicated to DAC topics are also available. 19