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

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

4 to 1 Analog Multiplexer Data Sheet

Programmable Gain Amplifier Datasheet PGA V 3.2. Features and Overview

CY7C603xx CYWUSB

Programmable Threshold Comparator Data Sheet

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

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

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

Shadow Registers Datasheet ShadowRegs V 1.1. Features and Overview

DMX512 Receiver Datasheet DMX512Rx V 1.0. Features and Overview

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

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

Incremental ADC Data Sheet

CapSense I 2 C/SPI Timer Flash RAM

24-Bit Pseudo Random Sequence Generator Data Sheet

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

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

Writing to Internal Flash in PSoC 3 and PSoC 5

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

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

Filter_ADC_VDAC_poll Example Project Features. General Description. Development Kit Configuration

Cypress HX2VL Configuration Utility Blaster User Guide

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

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

32-Bit Counter Datasheet Counter32 V 2.5. Features and Overview

16-Bit Hardware Density Modulated PWM Data Sheet

PSoC Creator Component Datasheet

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

THIS SPEC IS OBSOLETE

GPIF II Designer - Quick Start Guide

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

Supported devices: CY8C29x66, CY8C27x43, CY8C28xxx, CY8C24x23, CY8C24x33, CY8C21x23, CY8C21x34, CY8C21x45, CY8C22x45, CY8C24x94

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

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

Cypress HX2VL Configuration Utility Blaster User Guide

THIS SPEC IS OBSOLETE

Reviving Bit-slice Technology in a Programmable Fashion

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

Next-Generation Hot-Swap Controllers

PSoC 1 I 2 C Bootloader

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

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

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

1st Order Modulator nd Order Modulator

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

PSoC Programmer 3.12 Release Notes

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

Comparator Datasheet CMP V 1.1. Features and Overview

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:

1st Order Modulator nd Order Modulator

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

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.

7- to 13-Bit Variable Resolution Incremental ADC Datasheet ADCINCVR V 4.00

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

CY8C29/27/24xxx, CY8CLED04/08/16, CY8CLED0xD, CY8CLED0xG, CY8C28x45, CY8CPLC20, CY8CLED16P01, CY8C28x43, CY8C28x52

Clock Programming Kit

Triple Input 8-Bit Incremental ADC Datasheet TriADC8 V Features and Overview. See AN2239, ADC Selection Guide for other converters.

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

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

PSoC Designer Release Notes

6 to 14-Bit Delta Sigma ADC DatasheetDelSigMultiV 1.30

CY3660-enCoRe V and encore V LV DVK Kit Guide

THIS SPEC IS OBSOLETE

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

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

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

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

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

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

Bootloader project - project with Bootloader and Communication components

PSoC 6 Current Digital to Analog Converter (IDAC7)

Programmer User Guide

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

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

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

PSoC 4 Current Digital to Analog Converter (IDAC)

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

PSoC Programmer Release Notes

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

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

Triple Input 7- to 13-Bit Incremental ADC Datasheet TriADC V Features and Overview

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

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

12-Mbit (512 K 24) Static RAM

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

EZ-USB FX3 Development Kit Guide

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

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

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

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.

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

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

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

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

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

Capable of adjusting detection timings for start bit and data bit

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

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

Transcription:

Datasheet RefMux V 1.3 001-13584 Rev. *H Reference Multiplexer Copyright 2003-2012 Cypress Semiconductor Corporation. All Rights Reserved. PSoC Blocks API Memory (Bytes) Resources Digital Analog CT Analog SC Flash RAM Pins CY8C29/27/24/22xxx, CY8C23x33, CY8CLED02/04/08/16, CY8CLED0xD, CY8CLED0xG, CY8CTST120, CY8CTMG120, CY8CTMA120, CY8CTST300, CY8CTMA300, CY8C28x45, CY8CPLC20, CY8CLED16P01, CY8C28x43 For one or more fully configured, functional example projects that use this user module go to www.cypress.com/psocexampleprojects. Features and Overview 1 32 0 1 if Analog Output Buffer is Enabled Low voltage offset path from PMux to analog output bus Provides a method to route internal references (AGND, REFHI, REFLO) to an external pin Provides a 4 to 1 analog mux for switch capacitor blocks such as ADCs and filters, if used with the AMux4 User Module Signals from PMux through test mux may be rail-to-rail Provides a method to route external analog inputs directly to the analog output bus The RefMux User Module switches one of three internal references (AGND, REFLO, or REFHI) to the analog output bus. Additionally, the output of the Continuous Time (CT) block PMux multiplexer can be selected. The RefMux User Module makes use of the TestMux in a CT block. These signals may be routed to a switch capacitor block on the bottom analog row or buffered and routed to an external pin. If used in conjunction with the AMux4 User Module, they form a four input analog multiplexer to route signals from one of four pins to the analog output bus. Cypress Semiconductor Corporation 198 Champion Court San Jose, CA 95134-1709 408-943-2600 Document Number: 001-13584 Rev. *H Revised September 27, 2012

Figure 1. RefMux Block Diagram Functional Description The RefMux User Module uses and provides an API to control the Test Mux (TMux) in a CT block. The TMux provides a path to route AGND, REFLO, REFHI, or the PMux output onto the analog output bus (ABUSx). The PMux is set by default to route the signal from the AInMux_x to its output. These signals can be connected to the input of the switch capacitor blocks on the bottom row, or output to an external pin by way of the analog output buffer. This user module consumes one CT block, even though it does not utilize the functionality of the CT circuitry (see the figure below). Power only has to be applied to the RefMux User Module if the AGND signal is selected. Document Number: 001-13584 Rev. *H Page 2 of 9

Figure 2. RefMux Functional Diagram DC and AC Electrical Characteristics See DC Analog Reference Specifications in the PSoC device family datasheets. Document Number: 001-13584 Rev. *H Page 3 of 9

Placement The RefMux User Module maps freely onto any of the continuous time PSoC blocks in the device. Only the bottom row of analog switch capacitor blocks, except for ASA21 in the CY8C26/25xxx devices, allow connection to the ABUS in that column. Figure 3. RefMux Placement Parameters and Resources Reference Select This parameter selects which reference will be connected to the analog output bus. The valid options are OFF, PMuxOut, AGND, REFLO, and REFHI. The power to this module need only be applied if the analog ground AGND option is selected. AnalogBus The RefMux block output is always the AnalogBus (ABUSx) for that column. The ABUSx buffer (buf0..3) may be enabled in the Device Editor, to route the output to an external pin. Application Programming Interface The Application Programming Interface (API) routines are provided as part of the user module to allow the designer to deal with the module at a higher level. This section specifies the interface to each function together with related constants provided by the include files. Note In this, as in all user module APIs, the values of the A and X register may be altered by calling an API function. It is the responsibility of the calling function to preserve the values of A and X prior to the call if those values are required after the call. This registers are volatile policy was selected for efficiency reasons and has been in force since version 1.0 of PSoC Designer. The C compiler automatically takes care of this requirement. Assembly language programmers must ensure their code observes the policy, too. Though some user module API function may leave A and X unchanged, there is no guarantee they will do so in the future. Document Number: 001-13584 Rev. *H Page 4 of 9

For Large Memory Model devices, it is also the caller's responsibility to preserve any value in the CUR_PP, IDX_PP, MVR_PP, and MVW_PP registers. Even though some of these registers may not be modified now, there is no guarantee that will remain the case in future releases. The following are the API programming routines provided for the RefMux User Module. RefMux_RefSelect Description: Switches selected signal or reference to the Analog Bus (ABUSx). C Prototype: void RefMux_RefSelect(BYTE bref); Assembly: mov A, RefMux_AGND lcall RefMux_RefSelect Parameters: bref: This input selects which signal will be connected to the analog output bus. Symbolic names provided in C and assembly, and their associated values, are given in the following table. Symbolic Name Value RefMux_MUXOFF RefMux_PMUXOUT RefMux_AGND RefMux_REFLO RefMux_REFHI 0x00 0x10 0x14 0x18 0x1C Return Value: Side Effects: The A and X registers may be altered by this function. RefMux_Start Description: Sets the power level for the continuous time PSoC block. Power only needs to be supplied when AGND is selected. Selecting REFHI, REFLO, or PMUXOUT does not require power to be supplied. C Prototype: void RefMux_Start(BYTE bpower); Assembly: mov A, RefMux_LOWPOWER lcall RefMux_Start Document Number: 001-13584 Rev. *H Page 5 of 9

Parameters: bref: One byte that specifies the power level to the CT block. Following reset and configuration, the PSoC blocks assigned to the RefMux is powered down. Symbolic names provided in C and assembly, and their associated values, are given in the following table. Symbolic Name Value RefMux_OFF RefMux_LOWPOWER RefMux_MEDPOWER RefMux_HIGHPOWER 0x00 0x01 0x02 0x03 Return Value: Side Effects: The A and X registers may be altered by this function. RefMux_SetPower Description: Sets the power level for the continuous time PSoC block. Power only needs to be supplied when AGND is selected. Selecting REFHI, REFLO, or PMUXOUT does not require power to be supplied. C Prototype: void RefMux_SetPower(BYTE bpower); Assembly: mov A, RefMux_LOWPOWER lcall RefMux_SetPower Parameters: bref: One byte that specifies the power level to the CT block. Following reset and configuration, the PSoC blocks assigned to the RefMux is powered down. Symbolic names provided in C and assembly, and their associated values, are given in the following table. Symbolic Name Value RefMux_OFF RefMux_LOWPOWER RefMux_MEDPOWER RefMux_HIGHPOWER 0x00 0x01 0x02 0x03 Return Value: Document Number: 001-13584 Rev. *H Page 6 of 9

Side Effects: The A and X registers may be altered by this function. RefMux_Stop Description: Powers the user module off. C Prototype: void RefMux_Stop(void); Assembly: lcall RefMux_Stop Parameters: Return Value: Side Effects: The A and X registers may be altered by this function. Sample Firmware Source Code The following is a simple assembly and C example for printing a string on the RefMux. ;;----------------------------------------------------------------- ;; Sample Code for the RefMux User Module. ;; In this example, the RefMux User Module is placed at location ACA02, ;; column 2. ;;----------------------------------------------------------------- export _main include "m8c.inc" include "RefMux.inc" _main: mov A, RefMux_LOWPOWER ; Turn on power to CT block call RefMux_Start mov A, RefMux_AGND ; specify Analog GND call RefMux_RefSelect ; connect it to the analog bus (ABUS2) ; Other code ret A sample project written in C is: //----------------------------------------------------------------- // Sample Code for the RefMux User Module. // In this example, the RefMux User Module is placed at location ACA02, Document Number: 001-13584 Rev. *H Page 7 of 9

// column 2. //----------------------------------------------------------------- #include "m8c.h" #include "RefMux.h" void main(void) { BYTE brefsignal; RefMux_Start(RefMux_LOWPOWER); brefsignal = RefMux_AGND; RefMux_RefSelect(bRefSignal); // Turn on power to CT block // Assign port number // Apply AGND to ABUS2. // Other code } Configuration Registers These registers are configured by the initialization and API library. The user does not have to change or read these registers directly. This section is supplied as a reference. Table 1. Block RefMux, Register: CR0 Bit 7 6 5 4 3 2 1 0 Value 0 0 0 0 0 0 0 0 Table 2. Block RefMux, Register: CR1 Bit 7 6 5 4 3 2 1 0 Value 0 0 0 0 0 0 0 0 Table 3. Block RefMux, Register: CR2 Bit 7 6 5 4 3 2 1 0 Value 0 0 0 TestMux2 TestMux1 TestMux0 Power1 Power0 TestMux[2:0] control bits for TMux are as follows. 100 = PMux Output 101 = AGND 110 = REFLO 111 = REFHI 0xx = All paths off Power[1:0] control bits for CT block Power setting are as follows. 00 = Off 01 = Low ( 60 ua ) 10 = Med (150 ua ) 11 = High ( 500 ua ) Document Number: 001-13584 Rev. *H Page 8 of 9

Version History Version Originator Description 1.3 DHA Added Version History Note PSoC Designer 5.1 introduces a Version History in all user module datasheets. This section documents high level descriptions of the differences between the current and previous user module versions. Document Number: 001-13584 Rev. *H Revised September 27, 2012 Page 9 of 9 Copyright 2003-2012 Cypress Semiconductor Corporation. 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 life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges. PSoC Designer and Programmable System-on-Chip are trademarks and PSoC is a registered trademark of Cypress Semiconductor Corp. All other trademarks or registered trademarks referenced herein are property of the respective corporations. Any 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 life-support 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.