ADC Channel Scan with Software PSoC 3 / PSoC 5

Similar documents
Software Analog Video Inputs

Section bit Analog-to-Digital Converter (ADC)

Alice EduPad Board. User s Guide Version /11/2017

nc... Freescale Semiconductor, I

WINTER 15 EXAMINATION Model Answer

Hello and welcome to this presentation of the STM32L4 Analog-to-Digital Converter block. It will cover the main features of this block, which is used

Digital Fundamentals. Introduction to Digital Signal Processing

Interfacing Analog to Digital Data Converters. A/D D/A Converter 1

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET


DT9837 Series. High Performance, USB Powered Modules for Sound & Vibration Analysis. Key Features:

ET398 LAB 4. Concurrent Statements, Selection and Process

Decade Counters Mod-5 counter: Decade Counter:

ECE 372 Microcontroller Design

Major Differences Between the DT9847 Series Modules

Analog to Digital Conversion

ANALOG I/O MODULES AD268 / DA264 / TC218 USER S MANUAL

Using ADC and QADC Modules with ColdFire Microcontrollers The MCF5211/12/13 and MCF522xx ADC Module The MCF5214/16 and MCF528x QADC Module

ES /2 digit with LCD

0 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 1 1 Stop bits. 11-bit Serial Data format

BASIC LINEAR DESIGN. Hank Zumbahlen Editor Analog Devices, Inc. All Rights Reserved

Segment LCD Driver Datasheet SLCD V 2.10

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

PACSystems* RX3i Thermocouple Input Module, 12 Channels, IC695ALG412-CB

DMC550 Technical Reference

Area-Efficient Decimation Filter with 50/60 Hz Power-Line Noise Suppression for ΔΣ A/D Converters

DT8837. High Performance Ethernet Instrument Module for Sound & Vibration. Overview. Key Features

Delta-Sigma Modulators

ADC Peripheral in Microcontrollers. Petr Cesak, Jan Fischer, Jaroslav Roztocil

An Introduction to CY8C22x45

BE1-81O/U Frequency Protection. Washington State University Hands-On Relay School.

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR NPTEL ONLINE CERTIFICATION COURSE. On Industrial Automation and Control

Computer Systems Architecture

PACSystems* RX3i. Isolated Thermocouple Input Module, 6 Channels, IC695ALG306-EB Isolated Thermocouple Input Module, 12 Channels, IC695ALG312-EB

Build A Video Switcher

4X70 PROFINET SYSTEM

Chapter 9 MSI Logic Circuits

10-Channel 16-Bit Analog Board Set User s Manual And Troubleshooting Guide

Industriefunkuhren. Technical Manual. OEM Sync-Module FE1000 (IRIG-B) ENGLISH

Enable input provides synchronized operation with other components

Fixed Audio Output for the K2 Don Wilhelm (W3FPR) & Tom Hammond (NØSS) v August 2009

Design and Implementation of an AHB VGA Peripheral

Section Bit ADC with 4 Simultaneous Conversions

AD9884A Evaluation Kit Documentation

Video Graphics Array (VGA)

DT9857E. Key Features: Dynamic Signal Analyzer for Sound and Vibration Analysis Expandable to 64 Channels

In the development of electronic instruments or the analysis

Oscilloscopes, logic analyzers ScopeLogicDAQ

Report. Digital Systems Project. Final Project - Synthesizer

UNIIQA+ NBASE-T Monochrome CMOS LINE SCAN CAMERA

Tutorial on Technical and Performance Benefits of AD719x Family

2070 PROFINET MODULE

DT8837 Ethernet High Speed DAQ

Electronic Panel Meters DIGEM Preference Program Process control, automation & laboratory uses Class 0.01 to 1 Current, Voltage, Frequency,

picasso TM 3C/3Cpro series Datasheet picasso TM 3C/3Cpro models Key features

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Specifications for Thermopilearrays HTPA8x8, HTPA16x16 and HTPA32x31 Rev.6: Fg

Data Acquisition Using LabVIEW

IEEE802.11a Based Wireless AV Module(WAVM) with Digital AV Interface. Outline

AN3023 Application note

Logic Design Viva Question Bank Compiled By Channveer Patil

Instruction manual for 5024 Weighing Terminal

Analog-to-Digital Converter

Why Use the Cypress PSoC?

User s Manual. Log Scale (/LG) GX10/GX20/GP10/GP20/GM10 IM 04L51B01-06EN. 3rd Edition

DT9834 Series High-Performance Multifunction USB Data Acquisition Modules

STA2051E VESPUCCI 32-BIT SINGLE CHIP BASEBAND CONTROLLER FOR GPS AND TELEMATIC APPLICATIONS 1 FEATURES. Figure 1. Packages

User s Manual. Log Scale (/LG) GX10/GP10/GX20/GP20 IM 04L51B01-06EN. 1st Edition

Reaction Game Kit MitchElectronics 2019

IT T35 Digital system desigm y - ii /s - iii

Operating Instructions for Throttle Valves Using VRC Valve Positioner

DT3162. Ideal Applications Machine Vision Medical Imaging/Diagnostics Scientific Imaging

Experiment: FPGA Design with Verilog (Part 4)

Linear Circuit Design Handbook

CSE140L: Components and Design Techniques for Digital Systems Lab. CPU design and PLDs. Tajana Simunic Rosing. Source: Vahid, Katz

Electromania Problem statement discussion

MTL Software. Overview

Data Converter Overview: DACs and ADCs. Dr. Paul Hasler and Dr. Philip Allen

User s Manual. Log Scale (/LG) GX10/GX20/GP10/GP20/GM10 IM 04L51B01-06EN. 2nd Edition

LABORATORY 14: ANALOG TO DIGITAL CONVERSION USING ADC0809

Reading an Image using CMOS Linear Image Sensor. S.R.Shinthu 1, P.Maheswari 2, C.S.Manikandababu 3. 1 Introduction. A.

Limited WARRANTY: Make Noise implies and accepts no responsibility for harm to person or apparatus caused through operation of this product.

Introduction To LabVIEW and the DSP Board

Where Are We Now? e.g., ADD $S0 $S1 $S2?? Computed by digital circuit. CSCI 402: Computer Architectures. Some basics of Logic Design (Appendix B)

A First Laboratory Course on Digital Signal Processing

Design and implementation (in VHDL) of a VGA Display and Light Sensor to run on the Nexys4DDR board Report and Signoff due Week 6 (October 4)

Generation and Measurement of Burst Digital Audio Signals with Audio Analyzer UPD

Table of contents 1. INTRODUCTION GENERAL CONTENTS OF PACKAGE GENERAL USE OF THE EQUFLOW 6100 D/A CONVERTER STORAGE..

DSP in Communications and Signal Processing

Model 6010 Four Channel 20-Bit Audio ADC Data Pack

USER MANUAL FOR THE ANALOGIC GAUGE FIRMWARE VERSION 1.0

B. Sc. III Semester (Electronics) - ( ) Digital Electronics-II) BE-301 MODEL ANSWER (AS-2791)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 2018 EXAMINATION MODEL ANSWER

Vorne Industries. 87/719 Analog Input Module User's Manual Industrial Drive Itasca, IL (630) Telefax (630)

A/D and D/A convertor 0(4) 24 ma DC, 16 bits

HD-CONVERTER USER MANUAL MODEL GBS-8220

5024 WEIGHING TERMINAL

Data Conversion and Lab (17.368) Fall Lecture Outline

EE262: Integrated Analog Circuit Design

Fig. 1 Analog pins of Arduino Mega

Transcription:

ADC Channel Scan with Software PSoC 3 / PSoC 5 Project Objective This project demonstrates how to multiplex analog signals to the ADC and display the results on the LCD. Overview In many situations, the ADC must measure more than one signal. In this design, the analog multiplexer (AMUX) component from PSoC Creator multiplexes the ADC channels. This document illustrates three channels multiplexing. These channels are connected to two voltage digital-to-analog converters (VDAC) and a potentiometer on the Development Kit. The channel is switched in the software after every end of conversion (EOC) of the ADC. The project scans the channels continuously and displays the results on the LCD. Top Design The following figure illustrates how the project multiplexes the analog signals to the ADC and displays the results on the LCD.

Component Configuration ADC_DelSig The ADC internal reference should be between 0.9 and 1.3 V for proper operation. To support radiometric measurement, the ADC module provides an option to generate the reference from the supply voltage (Vdda). To cater to wide supply range (3.3 V and 5 v), the ADC module has two resister dividers (Vdda/4 and Vdda/3) to derive the internal ADC reference from the supply voltage. In PSoC Creator, you must specify the supply voltage in the System tab in Design-Wide-Resources (shown in the following figure) to automatically select the appropriate reference setting. The ADC customizer shows the selected reference, as shown in the previous figure. For example, when 3.3 v is selected, the ADC module uses Vdda/3 (1.1 v) for internal reference. When 5.0 v is selected, the ADC module uses Vdda/4 (1.25 v) for internal reference. Note Because PSoC 3 ES2 silicon and PSoC 5 silicon does not have the Vdda/3 option to generate the internal reference, do not use 3.3 v for radiometric measurement (Vssa to Vdda reference). You must use multi-sample mode when the ADC input switches between multiple signals. Multi-sample mode resets the modulator and flushes out data in decimation filters between each sample automatically. Previous

samples do not affect the current conversion. Note that the sample rate of multi-sample mode is one-fourth the sample rate of continuous conversion. AMuxSeq VDAC8_Ch1

Operation The analog multiplexer for the sequential channel switching (AMuxSeq) component in PSoC Creator multiplexes the channels to the ADC input. This is software mux, and the channel switching is done in firmware after every end of conversion (EOC) of the ADC. The ADC stops after every EOC, and it restarts after the channel is switched. This reduces crosstalk between channels. Because the multiplexing is done in firmware, the scanning rate is determined by the CPU speed. Time required for one scan = Time to execute the following lines of code + ADC conversion time + Interrupt latency. This project demonstrates three-channel multiplexing. The three analog input channels are converted sequentially and displayed on the LCD in the same order along with channel numbers. Channel 1 is connected to VDAC8_Ch1 output, Channel 2 is connected to the potentiometer, and Channel 3 is connected to VDAC8_Ch3 output. The following code snippet shows continuous scanning of channels: /* The ADC stops after every conversion. This is to reduce the crosstalk between channels */ ADC_DelSig_StopConvert (); /* Connect next channel */ AMuxSeq_Next(); /* Get the ADC result for the present channel */ adc_value[ch_index]=adc_delsig_getresult8(); /* Increment the channel ch_index for the next channel*/ ch_index=(ch_index+1)%3; /* Start the ADC after the channel is switched */ ADC_DelSig_StartConvert(); Hardware Connections The project is tested with PSoC Development Kit CY8CKIT-001. For more information, refer to the PSoC Development Kit Board Guide, provided with the kit. Place the Character LCD on P18 of the DVK. Power the LCD by placing the jumper J12 in the ON position. Connect the potentiometer output VR to the pin P0[2]. Power the potentiometer by placing the jumper J11. Connect switch SW1 on the DVK to pin P0[0]. Connect switch SW2 on the DVK to pin P1[2]. Set switch SW3 to 5 V.

Output Use the device selector window (Project > Device Selector) in PSoC Creator to select the appropriate device and device revision. If you are using a PSoC 3 device with production revision (such as CY8C3866AXI-040), use the following selection. Similarly, select an appropriate device number to work with the PSoC 5 device family (such as CY8C5588AXI-060) Note For engineering samples, device revision is marked on the package as part of the device number. Production silicon does not have ES marking. Build the project and program the device. The three analog input channels are converted sequentially and displayed on the LCD in the same order along with the channel numbers. Channel 1 is connected to VDAC8_Ch1 output, Channel 2 is connected to the potentiometer, and Channel 3 is connected to VDAC8_Ch3 output. Press SW1 to increase VDAC8_Ch1 output; observe the corresponding change in the channel value on the LCD display. VDAC8_Ch1 voltage is observed at the pin P0[1] (Pin_Ch1). Vary the potentiometer output; observe the corresponding change in the channel value on the LCD display. Press SW2 to increase VDAC8_Ch3 output; observe the corresponding change in the channel value on the LCD display. VDAC8_Ch3 voltage is observed at the pin P0[4] (Pin_Ch3). Note The delta-sigma ADC is inherently a differential ADC and single-ended mode is implemented by connecting the negative input to ground. You may observe a large count when the input is closer to 0 V due to offset. For a more detailed explanation, see EP56170: Getting started with the Delta Sigma ADC PSoC 3 / PSoC 5.