Filter_ADC_VDAC_poll Example Project Features. General Description. Development Kit Configuration

Similar documents
Use the Status Register when the firmware needs to query the state of internal digital signals.

Voltage Reference (Vref) Features. General Description. Input/Output Connections. When to Use a Vref Voltage references and supplies

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

Use the Status Register when the firmware needs to query the state of internal digital signals.

Writing to Internal Flash in PSoC 3 and PSoC 5

CE PSoC 4: Time-Stamped ADC Data Transfer Using DMA

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

HX2VL Development Kit Guide. Doc. # Rev. **

Cypress HX2VL Configuration Utility Blaster User Guide

AN SIO Tips and Tricks in PSoC 3 / PSoC 5. Application Note Abstract. Introduction

HX2VL Development Kit Guide. Doc. # Rev. *A

Comparator (Comp) Features. General Description. When to use a Comparator 1.60

CE56273 Associated Part Families: CY8C38xx/CY8C55xx Software: PSoC Creator Related Hardware: CY8CKIT-001 Author: Anu M D

For one or more fully configured, functional example projects that use this user module go to

4 to 1 Analog Multiplexer Data Sheet

THIS SPEC IS OBSOLETE

Reviving Bit-slice Technology in a Programmable Fashion

Next-Generation Hot-Swap Controllers

CY7C603xx CYWUSB

8 to 1 Analog Multiplexer Datasheet AMux8 V 1.1. Features and Overview

CYClockMaker Programming Kit Guide CY3675. Doc. # Rev. **

PSoC Creator Component Datasheet

Programmable Threshold Comparator Data Sheet

Use the IDAC8 when a fixed or programmable current source is required in an application.

PSoC 1 I 2 C Bootloader

Preliminary. Gas Sensor Analog Front End Datasheet GasSensorAFE V Features and Overview. This datasheet contains Preliminary information.

Cypress HX2VL Configuration Utility Blaster User Guide

LPF (Optional) CY8C24x93. Without LPF and ISR to 3* With LPF only** to 3* With ISR only to 3*

CY3660-enCoRe V and encore V LV DVK Kit Guide

PSoC 4 Low Power Comparator (LPComp) Features. General Description. When to Use a LPComp 2.0. Low input offset. User controlled offset calibration

CYClockMaker Programming Kit Guide CY3675. Doc. # Rev. *C

THIS SPEC IS OBSOLETE

GPIF II Designer - Quick Start Guide

Programmable Gain Amplifier Datasheet PGA V 3.2. Features and Overview

Clock Programming Kit

Incremental ADC Data Sheet

FTG Programming Kit CY3670. Spec. # Rev. *C

The color of the Clock component waveform symbol will change based on the clock's domain (as shown in the DWR Clock Editor), as follows:

THIS SPEC IS OBSOLETE

16-Bit Hardware Density Modulated PWM Data Sheet

PSoC Programmer 3.12 Release Notes

Supported Devices: CY8C28x13, CY8C28x33, CY8C28x43, CY8C28x45, CY8C28x52, CY8C21x45, CY8C22x45, CY8C24x93. CY8C24x

Shadow Registers Datasheet ShadowRegs V 1.1. Features and Overview

The following table lists user modules used in this code example and the hardware resources occupied by each user module.

DMX512 Receiver Datasheet DMX512Rx V 1.0. Features and Overview

Programmer User Guide

PSoC Designer Release Notes

24-Bit Pseudo Random Sequence Generator Data Sheet

FM3 MB9B100A/300A/400A/500A Series Inverter Solution GUI User Guide

This Application Note demonstrates an SPI-LIN slave bridge using a PSoC device. Demonstration projects are included.

CE58957 demonstrates how to implement the fade and toggle feature to the backlight LEDs of CapSense buttons.

This section describes the various input and output connections for the Voltage Fault Detector.

AN EZ-USB FX3 I 2 C Boot Option. Application Note Abstract. Introduction. FX3 Boot Options

Libraries Guide. Arithmetic Libraries User Guide. Document #: Rev. *A

CE CY8CKIT-042-BLE F-RAM Data Logger

CapSense I 2 C/SPI Timer Flash RAM

Bootloader project - project with Bootloader and Communication components

EZ-USB FX3 Development Kit Guide

144-Mbit QDR -II SRAM 2-Word Burst Architecture

This section describes the various input and output connections for the SysInt Component.

PSoC 6 Current Digital to Analog Converter (IDAC7)

12-Mbit (512 K 24) Static RAM

This section describes the various input and output connections for the Voltage Fault Detector.

Sequencing Successive Approximation ADC (ADC_SAR_Seq) Features. General Description. When to Use the ADC_SAR_Seq 2.0. Supports PSoC 5LP devices

PSoC Blocks. CY8C20xx6/6A/6AS/6H/6L, CY8C20xx7/7S, CY7C643xx, CY7C604xx, CYONS2xxx, CYONSxNxxxx, CYRF89x35, CY8C20065, CY8C24x93, CY7C69xxx

This input determines the next value of the output. The output does not change until the next rising edge of the clock.

PSoC 4 Voltage Comparator (Comp) Features. General Description. When to Use Comparator Low input offset. User controlled offset calibration

AN1090. NoBL : The Fast SRAM Architecture. Introduction. NoBL SRAM Description. Abstract. NoBL SRAM Operation

EZ I 2 C Slave. Features. General Description. When to use a EZ I 2 C Slave 1.50

The AMuxSeq is capable of having between 2 and 32 analog inputs. The paired inputs are present when the MuxType parameter is set to "Differential.

PSoC Programmer Release Notes

Release Notes SRN065 PSoC Programmer Version Release Date: November 9, 2009

Voltage Fault Detector (VFD) Features. General Description. Input/Output Connections. When to Use a VFD. Clock Input 2.30

Digital Multiplexer and Demultiplexer. Features. General Description. Input/Output Connections. When to Use a Multiplexer. Multiplexer 1.

Digital Logic Gates. Features. General Description. Input/Output Connections. When to Use a Logic Gate. Input 1. Input 2. Inputs 3-8 * 1.

Base Timer Channel (BT) Features. General Description. When to Use a PDL_BT Component 1.0

Use the Status Register when the firmware needs to query the state of internal digital signals.

One 32-bit counter that can be free running or generate periodic interrupts

Use the Status Register when the firmware needs to query the state of internal digital signals.

CE95314 PSoC 3, PSoC 4, and PSoC 5LP EZI2C

PSoC Filter Block Tutorial

Comparator (Comp) Features. General Description. When to use a Comparator Low input offset. User controlled offset calibration

PSoC Programmer Release Notes

4K x 8 Dual-Port Static RAM and 4K x 8 Dual-Port SRAM with Semaphores

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

W H I T E P A P E R. Timing Uncertainty in High Performance Clock Distribution. Introduction

Automatic reload of the period to the count register on terminal count

H O S T. FX2 SX2 Back - to - Back Setup. Project Objective. Overview

PSoC Creator Quick Start Guide

Use a DieTemp component when you want to measure the die temperature of a device.

User Guide. EZ-Click 2.0. Document # Rev *C

Multifunction Serial Interface (PDL_MFS) Features. General Description. When to Use a PDL_MFS Component. Quick Start 1.0

Analog Multiplexer (AMux) Features. General Description. Input/Output Connections. When to Use an AMux Single or differential connections

W H I T E P A P E R. Introduction. Devices. Energy Comparison of Cypress F-RAM and EEPROM

CY8CKIT-029 PSoC LCD Segment Drive Expansion Board Kit Guide

Setting Oscillation Stabilization Wait Time of the main clock (CLKMO) and sub clock (CLKSO)

1-Mbit (64K x 16) Static RAM

Version 3.3. If you have technical questions, visit or call and select 8.

CY8C29/27/24/23/21xxx, CY8CLED02/04/08/16, CY8CLED0xD, CY8CLED0xG, CY8C28x45, CY8CPLC20, CY8CLED16P01, CY8C28xxx. Main UM

Capable of adjusting detection timings for start bit and data bit

Transcription:

1.10 Features FIR low-pass filter at 6 khz with Blackman window, 85 taps Demonstrates the polling mode of the Filter component AC-coupled input provided bias with internal Opamp for maximum swing DMA used to transfer ADC result to Filter VDAC used to display output General Description This project is a variation of the Filter_ADC_VDAC example project. Aside from demonstrating PSoC s ability to utilize the Digital Filter Block (DFB) to filter a signal completely in hardware, this example project also demonstrates the polling mode of the Filter component. The example also shows how to manage the DMA setup to transfer data from the ADC directly to the DFB, bypassing the processor. PSoC allows you to implement a filter without having to write CPUintensive algorithms in firmware. This project demonstrates the operation of a Low Pass FIR Filter with Blackman window. By changing only a few input parameters in the Filter customizer, you can experiment with a wide variety of FIR and IIR filters. Development Kit Configuration The following configuration instructions provide a guideline to test this design. For simplicity, the instructions describe the stepwise process to be followed when testing this design with the PSoC Development Kit (CY8CKIT-001) board, but can be generalized for the PSoC 3 Development Kit (CY8CKIT-030) and PSoC 5 Development Kit (CY8CKIT-050) as well. 1. Set SW3 to 5V and leave the rest of the board at default configuration. This ensures Vdda=Vddd=5V. 2. Set up the passives used in the schematic as shown in Figure 1. 3. Ensure that the Function generator input has a peak-to-peak amplitude of 4V or less. 4. Build the Filter_ADC_VDAC project and then program the hex file onto the PSoC device using the MiniProg3. After programming is complete, disconnect the MiniProg3. 5. Reset the PSoC device. Cypress Semiconductor Corporation 198 Champion Court San Jose, CA 95134-1709 408-943-2600 Revised October 22, 2014

P0_0 P0_1 P0_2 PSoC Creator Example Project Function gen in GND GND Oscilloscope out Figure 1. Breadboard setup Project Configuration The top design schematic for this project is shown in Figure 2. Figure 2. TopDesign Schematic Page 2 of 5

The ADC_DelSig component configuration window is shown below in Figure 3. The Opamp is simply configured in follower mode, so that its output voltage is equal to Vdda/2. The DMA is configured using the DMA wizard to transfer one byte from the ADC output register to the Filter channel A input register on each rising edge of the ADC EOC signal. Figure 3. ADC_DelSig Component Configuration The Filter sample rate is set to be same as the sample rate on the ADC 48 ksps. Data ready signal is set to Polled, and the rest of the parameters which configure the Filter response are as shown in Figure 4. Notably, the filter is a single stage, FIR, low-pass filter with a cutoff of 6 khz. By changing these parameters, you can easily create a Filter of your choice. Page 3 of 5

PSoC Creator Example Project Figure 4. Filter configuration window The VDAC is configured for an output range of 0-4.080V for the sake of easily verifying the output. Project Description The c code for this project goes through the following steps. The components are first initialized and started in the main function. The Filter component is configured to work in polling mode. The DMA is configured to transfer the ADC output to the input data register of the Filter s channel A. The code then enters a forever loop and waits (polls) for the Filter completion. Each time the ADC completes a conversion, it triggers the DMA to transfer the converted data to the Filter. The Filter in turn, processes this sample and triggers an interrupt signal when a data is ready in its holding register. The firmware then polls the status register for this interrupt. Since the VDAC can take in only positive data, the Filter channel A output is converted into an unsigned form and then written to the VDAC data register. The Filtered result can then be verified by observing the VDAC output. Page 4 of 5

Expected Results The VDAC output should behave as a low-pass filtered output with cut-off at 6 khz. Related Material Example Projects ADC_DMA_VDAC Filter_ADC_VDAC Application Notes AN2099 - PSoC 1, PSoC 3, and PSoC 5 - Single-Pole Infinite Impulse Response (IIR) Filters AN52705 - PSoC 3 and PSoC 5 - Getting Started with DMA AN61102 - PSoC 3 and PSoC 5 - ADC Data Buffering Using DMA AN57821- PSoC 3 and PSoC 5 Mixed Signal Circuit Board Layout Considerations Training PSoC 3 and PSoC 5 104: Introduction to Analog Peripherals Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone : 408-943-2600 Fax : 408-943-4730 Website : www.cypress.com Cypress Semiconductor Corporation, 2012. The information contained herein is subject to change without notice. Cypress Semiconductor Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any license under patent or other rights. Cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress products in lifesupport systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges. PSoC is a registered trademark, and PSoC Creator and Programmable System-on-Chip are trademarks of Cypress Semiconductor Corp. All other trademarks or registered trademarks referenced herein are property of the respective corporations. This Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide patent protection (United States and foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of, and compile the Cypress Source Code and derivative works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source Code except as specified above is prohibited without the express written permission of Cypress. Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials described herein. Cypress does not assume any liability arising out of the application or use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in lifesupport systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress product in a life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges. Use may be limited by and subject to the applicable Cypress software license agreement. Page 5 of 5