HT8 MCU 24-bit Delta Sigma A/D Converter Application Note

Similar documents
HT8 MCU Internal Ultra-Low Power Consumption RTC Application Note

HT67F86A Internal RTC Application Guidelines

BC68F2130 FSK Application Example

BH45B Bit Delta-Sigma A/D Peripheral IC

HT45F3520/3530 Integrated DC/DC and Motor Load Application Guideline

HT8 MCU Integrated STM Timer Mode Application Note

APPLICATION NOTE. Atmel AVR127: Understanding ADC Parameters. Atmel 8-bit Microcontroller. Features. Introduction

HT8 MCU Timer Module Application Note (2) Generating Infrared Remote Control Carrier Waves in the PWM Mode

HT66FB576/574/572 RGB LED PWM Function Application Guidelines

H28 Verson 1.5 DESCRIPTION

Choosing the Best ADC Architecture for Your Application Part 4:

AN2834 Application note

ADC Resolution: Myth and Reality

MAX Bit, Single-Channel, Ultra-Low-Power, Delta Sigma ADC with 2-Wire Serial Interface

DATASHEET. Amicrosystems AMI-AD1224 HIGH PRECISION CURRENT-TO-DIGITAL CONVERSION MODULE PRODUCT DESCRIPTION FEATURES

Application Note 5121

Using the Peak Detector Voltage to Compensate Output Voltage Change over Temperature

Driving LEDs with a PIC Microcontroller Application Note

LD39150xx Ultra low drop BiCMOS voltage regulator Features Description Typical application

APPLICATION NOTE. ATA6629/ATA6631 Development Board V2.2 ATA6629/ATA6631. Introduction

16-Bit, Single-Channel, Ultra-Low Power, Delta-Sigma ADC with 2-Wire Serial Interface

Test Results of the HTADC12 12 Bit Analog to Digital Converter at 250 O C

ZLDO1117 1A LOW DROPOUT POSITIVE REGULATOR 1.2V, 1.5V, 1.8V, 2.5V, 3.3V, 5.0V and ADJUSTABLE OUTPUTS

AN4112 Application note

NOT RECOMMENDED FOR NEW DESIGN USE AP2127N/K/

Digital Signal Detector Interface IC PS202

LOW SAMPLING RATE OPERATION FOR BURR-BROWN

NU1005/6: 5V Full Bridge Driver for High Integration, High Efficiency and Low Cost Wireless Power Transmitter

SX1261/2 WIRELESS & SENSING PRODUCTS. Application Note: Reference Design Explanation. AN Rev 1.1 May 2018

AN2167 Application note

Chop away input offsets with TSZ121/TSZ122/TSZ124. Main components Single very high accuracy (5 μv) zero drift micropower 5 V operational amplifier

Programmable, Off-Line, PWM Controller

HA-2600, HA Features. 12MHz, High Input Impedance Operational Amplifiers. Applications. Pinouts. Ordering Information

HART Modem DS8500. Features

Optimizing Magnetic Sensor Power Operations for Low Data Rates

Features. Applications

LD A low-dropout linear regulator with programmable soft-start. Datasheet. Features. Applications. Description

Atmel ATA6629/ Atmel ATA6631 Development Board V2.2. Application Note. Atmel ATA6629/ATA6631 Development Board V

参考資料 PAM8012. Pin Assignments. Description. Features. Applications. A Product Line of. Diodes Incorporated

Linear Technology Chronicle

ZXRE160. Description. Pin Assignments NEW PRODUCT. Features. Applications. A Product Line of. Diodes Incorporated

Reference Oscillator Crystal Requirements for MKW40 and MKW30 Device Series

AN3137 Application note

Sigma-Delta ADCs. Benefits and Features. General Description. Applications. Functional Diagram

MEMS audio surface-mount bottom-port silicon microphone with analog output. Description. Table 1. Device summary

ISSN:

EVAL-RHF310V1. EVAL-RHF310V1 evaluation board. Features. Description

Improving feedback current accuracy when using H-Bridges for closed loop motor control

Current Mode PWM Controller

Description. Part numbers Order codes Packages Output voltages

Bridge Measurement Systems

1.8 V to 5 V Auto-Zero, In-Amp with Shutdown AD8563

Very Low Distortion, Precision Difference Amplifier AD8274

Section 22. Basic 8-bit A/D Converter

8-bit Microcontroller with 2K Bytes In-System Programmable Flash. ATtiny261A. Appendix A. Appendix A ATtiny261A Specification at 105 C

PAM8302A. Pin Assignments. Description. Features. Applications. A Product Line of. Diodes Incorporated 2.5W FILTERLESS CLASS-D MONO AUDIO AMPLIFIER

AN12232 QN908x ADC Application Note

MARKING RANGE ( C) PACKAGE DWG. # HA-2600 (METAL CAN)

LF253 LF353. Wide bandwidth dual JFET operational amplifiers. Features. Description

LF253, LF353. Wide bandwidth dual JFET operational amplifiers. Features. Description

Workshop ESSCIRC. Low-Power Data Acquisition System For Very Small Signals At Low Frequencies With12-Bit- SAR-ADC. 17. September 2010.

LC 2 MOS Signal Conditioning ADC AD7712

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

TS3410 1A / 1.4MHz Synchronous Buck Converter

PAM8406. Pin Assignments. Description. Features. Applications. Typical Applications Circuit. A Product Line of. Diodes Incorporated

APPLICATIONS FEATURES DESCRIPTION

PAM8303D. Pin Assignments. Description. Applications. Features. A Product Line of. Diodes Incorporated

HT7938A High Current and Performance White LED Driver

1.8 V to 5 V Auto-Zero, In-Amp with Shutdown AD8553

Regulating Pulse Width Modulators

AD MHz, 20 V/μs, G = 1, 10, 100, 1000 i CMOS Programmable Gain Instrumentation Amplifier. Preliminary Technical Data FEATURES

Application Note 80. July How to Use the World s Smallest 24-Bit No Latency Delta-Sigma TM ADC to its Fullest Potential AN80-1

AN4995 Application note

W H I T E P A P E R. Analog Signal Chain Calibration

APPLICATION NOTE. AT11009: Migration from ATxmega64D3/128D3/192D3/256D3 Revision E to Revision I. Introduction. Features.

Universal Input Switchmode Controller

AN4014 Application Note Adjustable LED blinking frequency using a potentiometer and STM8SVLDISCOVERY Application overview

FEATURES APPLICATIO S TYPICAL APPLICATIO. LTC Channel Differential Input 16-Bit No Latency Σ ADC DESCRIPTIO

TS982. Wide bandwidth dual bipolar operational amplifier. Features. Applications. Description

Applications AP7350 GND

PATENTED. PAT No. : HT1622/HT1622G RAM Mapping 32 8 LCD Controller for I/O MCU. Features. General Description.

SD bits ADC SOC. Features. Applications. Ordering Information. Description. Pin Diagram and Descriptions

Features. Applications

Understanding the ADC Input on the MSC12xx

TDA7384A. 4 x 46 W quad bridge car radio amplifier. Features. Description

AN Extended Range Proximity with SMSC RightTouch Capacitive Sensors

F²MC-8L/8FX/16LX/FR FAMILY

UM0920 User manual. 4 W non-isolated, wide input-voltage range SMPS demonstration board based on the VIPer16. Introduction

Serial Input 18-Bit Monolithic Audio DIGITAL-TO-ANALOG CONVERTER

PAM8304. Pin Assignments. Description NEW PRODUCT. Features. Applications. Typical Applications Circuit. A Product Line of. Diodes Incorporated

MCU Reset and Oscillator Circuits Application Note

Features. Applications. Markets

TOP VIEW REFERENCE VOLTAGE ADJ V OUT

PAM8012. Description. Pin Assignments. Features. Applications. A Product Line of. Diodes Incorporated

Features. Applications

STCL1100 STCL1120 STCL1160

MIC5271. Applications. Low. output current). Zero-current off mode. and reduce power. GaAsFET bias Portable cameras. le enable pin, allowing the user

High Speed PWM Controller

W H I T E P A P E R. EMC Countermeasure Techniques in Hardware. Introduction

TSC1021. High-side current sense amplifier. Applications. Description. Features

Transcription:

HT8 MCU 24-bit Delta Sigma A/D Converter Application Note D/N: AN0437E Introduction The Delta Sigma A/D converter forms a basic and necessary component of the signal sampling and processing system designer s toolkit. The purpose of this article is to give readers a background into the fundamental principles of the Delta Sigma A/D converter topology structure. With this basis the article takes the Holtek BH66F5233 MCU as an example device to introduce the usage and special considerations when using the HT8 MCU internal Delta Sigma A/D converter. Functional Description Delta Sigma A/D Converter Principle Delta Sigma A/D conversion is a technique used for high resolution analog to digital conversion applications. The two most important components in the Delta Sigma A/D converter are the Delta Sigma Modulator and the Digital Filter, as shown below. Delta Sigma A/D Converter Structure The Delta Sigma A/D converter has the characteristics of extremely high resolution and low noise. In using an over-sampling technology, it greatly reduces the front end anti-aliasing filter requirements and in general requires only a simple RC low-pass filter. This type of A/D converter also has very good linearity characteristics but at the cost of reducing the sampling rate. This results in the A/D converter sampling rate being relatively low. In addition, the internal filter requires a considerable amount of settling time for sudden changes in the input analog signal or for channel switching. This means that there will be a certain delay time between the analog input and the digital data output. Generally, this type of A/D converter is suitable for applications whose analog signals are not subject to rapid changes such as temperature measurements, pressure measurements, etc. AN0437E V1.00 1 / 9 December 16, 2016

Delta Sigma A/D Converter Advantages and Disadvantages Disadvantages A hysteresis exists between high-resolution conversion results and A/D sampling for the Delta Sigma A/D converter, which will affect the valid data output rate. The Delta Sigma A/D converter also requires multiple clock cycles to allow the digital filter to settle after each after channel switching. Therefore it is recommended that the first three A/D sampled data results should be discarded for the HT8 MCUs integrated Delta Sigma A/D converter. Additionally the Delta Sigma A/D converter is best used only for low frequency signals or analog inputs not subject to rapid changes. Advantages By using an oversampling technology the Delta Sigma A/D converter greatly simplifies the anti-aliasing filter design. Delta Sigma A/D Converter Main Indicators ENOB and NFB The Effective Number of Bits and Noise Free Bits, known as ENOB and NFB respectively, are the important indicators for the Delta Sigma A/D converter noise performance evaluation. The term NFB stands for noise free bits. The ENOB stands for effective number of bits, this parameter can be looked upon as a figure for accuracy after filtering and for other processing operations. The relationship between these two parameters is: NFB ENOB 2.7 bits Theoretical basis: set the A/D converter input to a fixed voltage level and then sketch a diagram with the sampled A/D data. The resulting diagram will provide a Gaussian distribution curve as shown below. According to the Gaussian distribution curve regulation: the peak-to-peak input noise value (99% of bits) will appear with a range of 6.6 times the RMS noise, as follows: Peak-to-peak input noise = RMS noise 6.6 From the ENOB and NFB definitions, the desired NFB ENOB 2.7 bits Peak-to-peak Input Noise and RMS Noise Curve AN0437E V1.00 2 / 9 December 16, 2016

Corresponding to A/D conversion results, the NFB resolution, which is noise free bits, stands for the number of stable bits, as shown below. BH66F5233 NFB and ENOB There are certain factors which influence influencing ENOB and NFB. The ENOB value depends on the data rate, the PGA gain and the A/D conversion rate, etc. 1. The higher the data rate is, the lower the ENOB will be. 2. The greater the PGA gain is, the lower the ENOB will be. In real applications, the A/D converter operating transition can be determined by roughly estimating the ENOB value. In actual usage, setup two input ports of the A/D converter to be in a short-circuit mode in the MCU. Then connect the A/D converter input ports to the external VCM pin to prevent the input ports from floating. Now the number of stable bits in the obtained A/D conversion value will be approximately equal to NFB, which plus 2.7 bits will be the ENOB value. In general, there is little difference between this ENOB value and the value from the datasheet, however if the ENOB difference is too big, it will be required to check whether there are any hardware and software errors. In the MCU setup the A/D converter input ports as follows: Software Check whether the A/D conversion clock setting is correct Check the A/D converter data rate, which is usually set to 10Hz~100Hz Check the PGA gain, A/D converter gain and reference voltage, etc. It is usual to use a PGA Gain value of x128 and an A/D converter Gain of x1 Hardware Check whether the A/D converter reference voltage is within the specification range and also check whether the reference voltage is stable. Check whether the A/D converter input voltage is within the specification range. Others Finally if there are no errors in the hardware and software, but the ENOB value is still low, the reason may be attributed to the PCB layout or the electrical environment. AN0437E V1.00 3 / 9 December 16, 2016

BH66F5233 24-Bit Delta Sigma A/D Converter Considerations Hardware Considerations Reference input voltage range 0.96V < V REFP < 2.2V and 0 < V REFN < 1V 0.96V < V REF = V REFP V REFN < 1.44V Common mode voltage range 0.4V < V CM_PGA < V OREG 1.1V A/D converter differential input voltage range ΔD I (-V REF) / Gain < ΔD I < (+V REF) / Gain Symbol Parameter Test Conditions Min. Typ. Max. Unit f ADCK ADC clock frequency - - 40 409.6 440 khz f MCLK = 4MHz, f ADO ADC output data rate - FLMS[2:0] = 000B f MCLK = 4MHz, 4-521 Hz - FLMS[2:0] = 010B 10-1302 Hz V REFP - VGS[1:0] = 00B,VREFS = 0.96 1.25 2.2 V 1,VRBUFP = 0,RBUFN = Reference input voltage 0VGS[1:0] = 00B, V REFN - 0 0 1 V V REF - V REF = V REFP V REFN 0.96 1.25 1.44 V PGA V CM_PGA Common mode voltage range - - 0.4 - VOREG -1.1 V Ga Gain accuracy (Design Spec. not for datasheet) - - -10-10 % ΔD I Differential input voltage -V REF +VREF - Gain = PGS * AGS - range /Gain /Gain Ta = -40 ~ 85, V REF = 1.25V, V TC TS Temperature sensor temperature coefficient - VGS[1:0]=00B (Gain = 1), VRBUFP = 0, VRBUFN = 0-175 - μv/ BH66F5233 Delta Sigma A/D Converter Specification Programming Considerations 1. During the program design, when the A/D converter is not being used, the A/D internal circuitry can be switched off to reduce power consumption. This is implemented by setting the ADOFF bit in the ADCR0 register to a high value. When this happens, the internal A/D converter circuits will not consume power irrespective of what analog voltage is applied to their input lines. 2. When the LDO is switched off, the VCM will also be disabled. 3. The A/D converted data should be latched before reading the A/D conversion results to prevent the possibility of obtaining undesired data. After the converted data has been read out, the latched A/D converter data can be released. AN0437E V1.00 4 / 9 December 16, 2016

BH66F5233 24-Bit Delta Sigma A/D Converter F/W Configuration BH66F5233 Delta Sigma A/D Converter Introduction The BH66F5233 contains a high accuracy multi-channel 24-bit Delta Sigma analog-to-digital converter which can directly interface to external analog signals such as those from sensors or other control signals and convert these signals directly into a 24-bit digital value. In addition, the PGA gain control, A/D converter gain control and A/D converter reference gain control determine the amplification gain for the A/D converter input signal. Designers can select the best gain combination for the optimal input signal amplification. The following block diagram illustrates the A/D converter basic operational function. The A/D converter input channel can be arranged as two differential input channels. The input signal can be amplified by the PGA before entering the 24-bit Delta Sigma A/D converter. The Delta Sigma A/D converter modulator will output a single bit converted data stream to the SINC filter which will transform the converted one-bit data stream to a 24-bit digital number which will then be stored into specific data registers. Additionally, this device also provides a temperature sensor to compensate for any A/D converter deviations due to temperature effects. With high accuracy and good performance, this device is very suitable for weight scales and similarly related products. The BH66F5233 Delta Sigma A/D converter structure is shown below. BH66F5233 A/D Converter Structure AN0437E V1.00 5 / 9 December 16, 2016

BH66F5233 Delta Sigma A/D Converter Related Registers There are a series of registers related to the following A/D converter settings in the BH66F5233. Refer to the BH66F5233 datasheet in the Reference Annexes for a more detailed register description. Register BITS Name 7 6 5 4 3 2 1 0 PWRC LDOEN VCMEN LDOBPS LDOVS1 LDOS0 PGAC0 VGS1 VGS0 AGS1 AGS0 PGS2 PGS1 PGS0 PGAC1 VCMS INIS INX1 INX0 DCSET2 DCSET1 DCSET0 PGACS CHSN2 CHSN1 CHSN0 CHSP2 CHSP1 CHSP0 ADRL D7 D6 D5 D4 D3 D2 D1 D0 ADRM D15 D14 D13 D12 D11 D10 D9 D8 ADRH D23 D22 D21 D20 D19 D18 D17 D16 ADCR0 ADRST ADSLP ADOFF ADOR2 ADOR1 ADOR0 VREFS ADCR1 FLMS2 FLMS1 FLMS0 VRBUFN VRBUFP ADCDL EOC ADCS ADCK4 ADCK3 ADCK2 ADCK1 ADCK0 DSDAH D11 D10 D9 D8 D7 D6 D5 D4 DSDAL - - - - D3 D2 D1 D0 DSDACC DSDACEN DSDACVRS - - - - - BH66F5233 A/D Converter Related Register List BH66F5233 Delta Sigma A/D Converter Setup Steps Step Operation Registers Setup Bits Functional Description 1 LDO output voltage selection, LDO enable control, VCM voltage selection PWRC PGAC1 2 A/D converter reference voltage selection ADCR0 VREFS 3 4 A/D converter reference voltage gain, A/D converter gain and PGA gain selection A/D converter reference voltage gain, A/D converter gain and PGA gain selection, A/D converter register enable control PGAC0 PGAC0 ADCR1 5 A/D converter channel selection PGACS LDOBPS, LDOVS1, LDOVS0, LDOEN, VCMS Enable LDO output and VCM output 0: Internal reference voltage 1: External reference voltage VGS1, VGS0, Select an appropriate gain AGS1, AGS0, according to the actual application PGS2, PGS1, PGS0 VGS1, VGS0, AGS1, AGS0, PGS2, PGS1, PGS0, VRBUFN, VRBUFP CHSN2, CHSN1, CHSN0, CHSP2, CHSP1, CHSP0 Select an appropriate gain according to the actual application and enable the A/D converter Set an analog signal input pin 6 A/D conversion clock selection ADCS ADCK4~ADCK0 Set A/D conversion clock 7 A/D converter output data rate selection ADCR0 ADOR2~ADOR0 8 A/D converter power down mode and sleep mode on/off control ADCR0 9 A/D converter reset control ADCR0 ADRST ADOFF, ADSLP Set output data rate, usual to use a range of 10Hz~100Hz Disable the A/D converter sleep mode, ensure the A/D converter is ready for operation Set this bit high and then reset low to initiate an A/D conversion process 10 A/D converter interrupt enable control INTC0 ADE, EMI Initiate an A/D converter interrupt AN0437E V1.00 6 / 9 December 16, 2016

Hardware Description HT8 MCU 24-bit Delta Sigma A/D Converter Application Note PCB Design Notes 1. The power lines should be as wide as possible to reduce their impedance. In addition the power lines and ground wires should follow the same direction as the signal lines, to improve their anti-interference characteristics. 2. Ground line design: The digital ground and analog ground should be kept apart. If there are both analog circuits and digital circuits on the circuit board, they should be kept apart as much as possible. The low-frequency circuit ground should use a single point parallel grounded technique. The high-frequency circuit ground should use a multipoint series grounded technique and the ground wires should be as short and thick as possible. On circuit boards which are composed only of digital circuits, most closed loops which are formed by corresponding ground circuits can provide anti-noise capabilities. 3. For the location of capacitors, the power line capacitors should be located as close to the device as possible. This example illustrates how to show the A/D converted values on an LED display using the BH66F5233 application circuit. BH66F5233 Application Circuit AN0437E V1.00 7 / 9 December 16, 2016

Software Description S/W Flowchart HT8 MCU 24-bit Delta Sigma A/D Converter Application Note Start System init GET ADC Value DisPlay ADC Value 7.8ms Time Count N Y Change LED Brightness Updata Display Y Key Press? N 1. In this example, when the program starts running, the obtained A/D conversion value will be displayed on the LED display. Additionally the LED illumination level can be adjusted using a key. 2. When the program starts running, first initialise the RAM and then setup the LED brightness to the lowest value in the A/D converter sampling process. 3. When the key is pressed, the LED brightness will change. The brightness changes once for every key press recycling every 4 times. 4. The LED display shows the A/D conversion results. Conclusion This application note has introduced the principles and how to evaluate the performance of the Sigma Delta A/D converter using the BH66F5233 MCU. Users can setup the A/D converter to obtain appropriate parameters according to their actual application requirements. Versions and Modification Information Date Author Issue Release and Modification 2016.11.07 林琛洋 First Version AN0437E V1.00 8 / 9 December 16, 2016

References Reference document: BH66F5233 Data Sheet. For more information, refer to the Holtek s official website: http://www.holtek.com. Reference Annexes Related Document Related Firmware Archives 原理圖.rar BH66F5233_AD_Digital_LED.zip Disclaimer All information, trademarks, logos, graphics, videos, audio clips, links and other items appearing on this website ('Information') are for reference only and is subject to change at any time without prior notice and at the discretion of Holtek Semiconductor Inc. (hereinafter 'Holtek', 'the company', 'us', 'we' or 'our'). Whilst Holtek endeavors to ensure the accuracy of the Information on this website, no express or implied warranty is given by Holtek to the accuracy of the Information. Holtek shall bear no responsibility for any incorrectness or leakage. Holtek shall not be liable for any damages (including but not limited to computer virus, system problems or data loss) whatsoever arising in using or in connection with the use of this website by any party. There may be links in this area, which allow you to visit the websites of other companies. These websites are not controlled by Holtek. Holtek will bear no responsibility and no guarantee to whatsoever Information displayed at such sites. Hyperlinks to other websites are at your own risk. Limitation of Liability In any case, the Company has no need to take responsibility for any loss or damage caused when anyone visits the website directly or indirectly and uses the contents, information or service on the website. Governing Law This disclaimer is subjected to the laws of the Republic of China and under the jurisdiction of the Court of the Republic of China. Update of Disclaimer Holtek reserves the right to update the Disclaimer at any time with or without prior notice, all changes are effective immediately upon posting to the website. AN0437E V1.00 9 / 9 December 16, 2016