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

Similar documents
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.

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.

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

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

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

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

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

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

PSoC 6 Current Digital to Analog Converter (IDAC7)

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

PSoC 4 Current Digital to Analog Converter (IDAC)

PSoC Creator Quick Start Guide

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

Supports a range of speeds of external memories (from 5 to 200 ns) Supports external memory power-down, sleep, and wakeup modes

Scanning Comparator (ScanComp) Features. General Description. Input/Output Connections. When to Use a Scanning Comparator. clock - Digital Input* 1.

Optional Pause Pulse for constant frame length of 282 clock ticks

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

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

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

Capable of adjusting detection timings for start bit and data bit

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

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

CE CY8CKIT-042-BLE F-RAM Data Logger

Configurable transfer modes: single transfer, 1D transfer (using X loop) and 2D transfer (using both X and Y loops).

Cypress BLE-Beacon ios App User Guide

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

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

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

EZ-PD Analyzer Utility User Guide

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

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

THIS SPEC IS OBSOLETE

ModusToolbox USB Configurator Guide

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.

Supports Analog, Digital I/O and Bidirectional signal types

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

Shift Register. Features. General Description 1.20

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

The Emulated EEPROM Component should be used to store nonvolatile data on a target device.

FM3 Family Motor Graphical Interface User Manual

AN F²MC-16FX Family, I2C. Contents. 1 Introduction. This application note describes how to communicate via I2C with a Serial EEPROM.

PSoC Creator Component Datasheet

F²MC-8FX Family MB95200H/210H Series Capacitance Touch Sensor

Operational Amplifier (Opamp) Features. General Description. Input/Output Connections. Noninverting Analog Follower or Opamp configuration

EZ I2C Slave. Features. General Description. When to use a EZ I 2 C Slave Industry standard Philips I 2 C bus compatible interface

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

BGM Adaptor MB E Operation Manual. 8FX Family 8-bit Microcontroller. Doc. # Rev. *A

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

Nine-Output 3.3 V Buffer

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

MB39C811-EVB-03. PMIC for Solar/Vibration Energy Harvesting, Evaluation Board Operation Guide. Doc. No Rev. *B

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

4 to 1 Analog Multiplexer Data Sheet

Chip Errata for the MB96300/MB96600 Series MOVS/MOVSW Overlap of source and destination region, F 2 MC-16FX Microcontroller

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

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

AN FR Family, MB91F467S Emulation. 1 Introduction. 2 Hardware Setup. 2.1 Required parts

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

PSoC Creator 4.2 Production Release Notes

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

PSoC 4 Operational Amplifier (Opamp) Features. General Description. When to Use the Opamp Follower or Opamp configuration

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

External Library. Features. General Description 1.0. The library provides documentation for external components

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

CY8CKIT-002. PSoC MiniProg3 Program and Debug Kit Guide. Doc. # Rev. *H

Graphic LCD Interface (GraphicLCDIntf) Features. General Description. When to Use a GraphicLCDIntf 1.80

FM4 S6E2Cx Series Over The Air Update 32-Bit Microcontroller With Embedded Dual Flash

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:

Peripheral Driver Library (PDL) Component (PDL Application Programming Interface (API) only)

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

TI: Uses a short pulse on spi_select to indicate start of transaction. National Semiconductor (Microwire): Transmission and Reception occur separately

Master modes provide all functionality necessary to work in a multi-master environment.

Filter_ADC_VDAC_poll Example Project Features. General Description. Development Kit Configuration

Version February 02, 2018

8-Bit Voltage Digital to Analog Converter (VDAC8)

Bootloader project - project with Bootloader and Communication components

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

Supports one or two address decoding with independent memory buffers. Memory buffers provide configurable Read/Write and Read Only regions

PSoC 1 In-Circuit Emulator Development Kit Guide

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

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

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

Programmable Threshold Comparator Data Sheet

Bootloader project Project with a Bootloader Component and communication Component.

Cypress EZ-PD Configuration Utility User Manual

CY7C603xx CYWUSB

FM0+ Family S6E1A1 Series, Flash Programming Guide

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

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

FM Universal Peripheral Driver Library Quick Start Guide

16-Mbit (512 K words 32 bits) Static RAM with Error-Correcting Code (ECC)

Writing to Internal Flash in PSoC 3 and PSoC 5

Bootloader project Project with a Bootloader component and communication component.

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

ADC Successive Approximation Register (ADC_SAR)

PSoC 1 I 2 C Bootloader

Incremental ADC Data Sheet

Programmable Gain Amplifier Datasheet PGA V 3.2. Features and Overview

Transcription:

PSoC Creator Component Datasheet Analog Multiplexer (AMux) 1.80 Features Single or differential connections Adjustable between 1 and 256 connections Software controlled Connections may be pins or internal sources Multiple simultaneous connections Bidirectional (passive) General Description The analog multiplexer (AMux) Component can be used to connect none, one, or more analog signals to a different common analog signal. The ability to connect more than one analog signal at a time provides cross-bar switch support, which is an extension beyond traditional mux functionality. When to Use an AMux Use an AMux any time you need to multiplex multiple analog signals into a single source or destination. Because the AMux is passive, it can be used to multiplex input or output signals. Input/Output Connections This section describes the various input and output connections for the AMux. An asterisk (*) in the list of I/Os indicates that the I/O may be hidden on the symbol under the conditions listed in the description of that I/O. I/O Description 0-255 Analog The AMux is capable of having between 1 and 256 analog switchable connections. 0-255 (paired) Analog * The paired switchable connections are only used when the MuxType parameter is set to Differential. common Analog The common signal is the common connection; it is not labeled. The channel selected with the AMux_Select() function is connected to this terminal. Cypress Semiconductor Corporation 198 Champion Court San Jose, CA 95134-1709 408-943-2600 Document Number: 001-87570 Rev. *D Revised October 31, 2017

Analog Multiplexer (AMux) PSoC Creator Component Datasheet I/O Description common (paired) Analog * The common (paired) signals are the common paired connections, when using a differential mux. The channels selected with the AMux_Select() function are connected to this terminal. Component Parameters Drag an AMux Component onto your design and double-click it to open the Configure dialog. The AMux provides the following parameters. Channels This parameter selects the number of switchable connections depending on the MuxType. Any value between 1 and 256 is valid. MuxType This parameter selects between a Single switchable connection mux and a Differential switchable connections mux. Single is used when the connectable signals are all referenced to the same signal, such as VSSA. In cases where two or more signals may have a different signal reference, select the Differential option. The differential mode is most often used with an ADC that provides a differential input. Page 2 of 10 Document Number: 001-87570 Rev. *D

PSoC Creator Component Datasheet Analog Multiplexer (AMux) AtMostOneActive When set to true, this parameter removes the cross-bar switch support from the AMux. This limits the AMux to at most one common connection. Setting this to true removes the Connect API from the generated code. It can optimize the performance of the AMux. Isolation This parameter is used to select one of the following isolation modes: Minimum Use single outer switching. This guarantees the fastest switching time. Medium (default) Attempt to use double switching, with outer switch and unique inner switches only. If no unique inner switches are available, single outer switching will be used. Double switching will increase isolation but also increase switching time. Maximum Use double switching, with outer switch and potentially shared inner switches. Inner switches do not have to be unique. A reference count allows sharing an inner switch. When non unique inner switches are used, switching time will be further impacted. The following diagrams show the three possible switching implementations for an Amux with no arm connected, bottom arm connected, and both arms connected: Figure 1. Single Switching, no inner switches Document Number: 001-87570 Rev. *D Page 3 of 10

Analog Multiplexer (AMux) PSoC Creator Component Datasheet Figure 2. Double Switching, unique inner switches Figure 3. Dynamic Switching, shared inner switch Page 4 of 10 Document Number: 001-87570 Rev. *D

PSoC Creator Component Datasheet Analog Multiplexer (AMux) Application Programming Interface Application Programming Interface (API) routines allow you to configure the Component using software. The following table lists and describes the interface to each function. The subsequent sections cover each function in more detail. By default, PSoC Creator assigns the instance name AMux_1 to the first instance of a Component in a given design. You can the rename the instance to any unique value that follows the syntactic rules for identifiers. The instance name becomes the prefix of every global function name, variable, and constant symbol. For readability, the instance name used in the following table is AMux. Functions Function Description AMux_Init() AMux_Start() AMux_Stop() AMux_Select() AMux_FastSelect() AMux_Connect() AMux_Disconnect() AMux_DisconnectAll() Disconnects all channels, then connects chan. When AtMostOneActive is true, this is implemented as AMux_FastSelect(). Disconnects the last channel that was selected by the AMux_Select() or AMux_FastSelect() function, then connects the new signal chan. Connects chan signal, but does not disconnect other channels. When AtMostOneActive is true, this function is not available. Disconnects only chan signal. void AMux_Init(void) Side Effects: All registers will be reset to their initial values. void AMux_Start(void) void AMux_Stop(void) Document Number: 001-87570 Rev. *D Page 5 of 10

Analog Multiplexer (AMux) PSoC Creator Component Datasheet void AMux_Select(uint8 chan) Parameters: Side Effects: The AMux_Select() function first disconnects all other channels, then connects the given channel. When AtMostOneActive is true, this is implemented as AMux_FastSelect(). chan: The channel to connect to the common terminal. Connections made either by AMux_Connect() or AMux_FastSelect() are disconnected when using AMux_Select(). void AMux_FastSelect(uint8 chan) Parameters: Side Effects: This function first disconnects the last connection made with the AMux_FastSelect() or AMux_Select() functions, then connects the given channel. The AMux_FastSelect() function is similar to the AMux_Select() function, except that it is faster because it only disconnects the last channel selected rather than all possible channels. chan: The channel to connect to the common terminal If the AMux_Connect() function was used to select a channel prior to calling AMux_FastSelect(), the channel selected by AMux_Connect() is not disconnected. This is useful when parallel signals must be connected. void AMux_Connect(uint8 chan) Parameters: Side Effects: This function connects the given channel to the common signal without affecting other connections. When AtMostOneActive is true, this function is not available. chan: The channel to connect to the common terminal Calling the function AMux_Select() will disconnect any channel connected with the AMux_Connect() function before connecting the channel passed to the AMux_Select() command. void AMux_Disconnect(uint8 chan) Disconnects only the specified channel from the common terminal. Parameters: uint8 chan: The channel to disconnect from the common terminal void AMux_DisconnectAll(void) Page 6 of 10 Document Number: 001-87570 Rev. *D

PSoC Creator Component Datasheet Analog Multiplexer (AMux) Sample Firmware Source Code PSoC Creator provides many code examples that include schematics and example code in the Find Code Example dialog. For Component-specific examples, open the dialog from the Component Catalog or an instance of the Component in a schematic. For general examples, open the dialog from the Start Page or File menu. As needed, use the Filter Options in the dialog to narrow the list of projects available to select. Refer to the Find Code Example topic in the PSoC Creator Help for more information. API Memory Usage The Component memory usage varies significantly, depending on the compiler, device, number of APIs used and Component configuration. The following table provides the memory usage for all APIs available in the given Component configuration. The measurements have been done with the associated compiler configured in Release mode with optimization set for Size. For a specific design, the map file generated by the compiler can be analyzed to determine the memory usage. Configuration PSoC 3 (Keil_PK51) Flash Bytes SRAM Bytes PSoC 4 (GCC) PSoC 5LP (GCC) PSoC 6 (GCC) Flash Flash Flash SRAM Flash SRAM Bytes Bytes Bytes Bytes Bytes Bytes Single 91 1 116 1 140 1 108 1 Differential 141 1 124 1 128 1 128 1 Functional Description The AMux is not like most hardware muxes. Two things make the AMux different from a standard fixed hardware mux. First, it is a collection of independent switches, and second, it is controlled by firmware not hardware. Because of these two differences, the AMux is flexible and allows more than one signal at a time to be connected to the common signal. When the AtMostOneActive parameter is set to false, two or more signals can be connected to the common signal at any given time. a0 a1 a2 a3 y a0 a1 a2 a3 y Document Number: 001-87570 Rev. *D Page 7 of 10

Analog Multiplexer (AMux) PSoC Creator Component Datasheet Performance The Analog Mux is controlled by software, so the switching performance depends on the execution time of the APIs provided. The performance varies depending on the exact configuration of the mux in the design. Table 1 is intended to provide guidance on the switching performance. All performance measurements were made with a CPU frequency of 48 MHz. The performance scales close to linearly with CPU frequency. The compiler optimization was configured for the highest optimization offered for the compilers bundled with PSoC Creator. For PSoC 3, the compiler setting is Keil optimized for Size at optimization level 5. For PSoC 4 and PSoC 5LP, the compiler setting is GNU optimized for Size. For PSoC 6, data is not available at this time. Once the data is available, this datasheet will be updated on the Cypress web site. Table 1. Performance Function Mux Single Inputs PSoC 3 (µs) PSoC 4 (µs) PSoC 5LP (µs) PSoC 6 (µs) Connect [1] 2 4.1 1.3 1.9 TBD 4 3.9 1.3 1.9 TBD Disconnect 2 3.9 1.4 1.9 TBD 4 3.8 1.4 1.8 TBD Select [1] 2 14.6 3.5 5.5 TBD 4 22.6 5.8 8.1 TBD FastSelect 2 9.3 2.6 4.0 TBD 4 9.3 2.6 4.0 TBD Resources The AMux uses the individual switches that connect blocks and pins to analog buses. 1 When AtMostOneActive is set to true, the Connect function is not available and the Select function has the same performance as FastSelect. Page 8 of 10 Document Number: 001-87570 Rev. *D

PSoC Creator Component Datasheet Analog Multiplexer (AMux) MISRA Compliance This section describes the MISRA-C:2004 compliance and deviations for the Component. There are two types of deviations defined: project deviations deviations that are applicable for all PSoC Creator Components specific deviations deviations that are applicable only for this Component This section provides information on Component-specific deviations. Non PSoC 6 project deviations are described in the MISRA Compliance section of the System Reference Guide along with information on the MISRA compliance verification environment. For PSoC 6, refer to PSoC Creator Help > Building a PSoC Creator Project > Generated Files (PSoC 6) for information on MISRA compliance and deviations for files generated by PSoC Creator. MISRA-C: 2004 Rule Rule Class (Required/ Advisory) Rule Description Target Device Justification of Violation(s) 19.7 A A function should be used in preference to a function-like macro. All Deviated since function-like macros are used to allow more efficient code. The AMux Component does not have any embedded Components. DC and AC Electrical Characteristics The AMux operates at all valid supply voltages. Component Changes This section lists the major changes in the Component from the previous version. Version Description of Changes Reason for Changes / Impact 1.80.d Update MISRA section. 1.80.c Expanded the maximum number of channels to 256. Enable valid designs in select devices Corrected API memory usage numbers for GCC 1.80.b The Component was made visible for PSoC 6. 1.80.a Minor datasheet edit. 1.80 Updated API code for MISRA-C:2004 compliance. 1.70a Added PSoC 4 resource usage and performance information. Document Number: 001-87570 Rev. *D Page 9 of 10

Analog Multiplexer (AMux) PSoC Creator Component Datasheet Version Description of Changes Reason for Changes / Impact 1.70 Relaxed AMux input connections range. The input range is 1-64 for Single AMux, and 1-32 for Differential AMux. To resolve requests from customers. Added MISRA Compliance section. This Component was not verified for MISRA-C:2004 coding guidelines compliance. 1.60 Changed data in performance table. Previously published performance numbers were incorrect. Added AtMostOneActive and Isolation parameters. Updated the screen capture. The AtMostOne parameter allows you to remove the cross-bar switch support from the AMux. The Isolation parameter allows you to select an isolation mode to control switching time. 1.50.c 1.50.b 1.50.a Added Performance section to datasheet Minor datasheet edits and updates Minor datasheet edits and updates 1.50 Added AMux_Init function. To comply with corporate standard and provide an API to initialize or restore the Component without starting it. 1.20.a Added information to the Component that advertizes its compatibility with silicon revisions. The tool reports an error or warning if the Component is used on incompatible silicon. If this happens, update to a revision that supports your target device. 1.20 Symbol picture updated. Updated to comply with corporate standard. Cypress Semiconductor Corporation, 2013-2017. This document is the property of Cypress Semiconductor Corporation and its subsidiaries, including Spansion LLC ( Cypress ). This document, including any software or firmware included or referenced in this document ( Software ), is owned by Cypress under the intellectual property laws and treaties of the United States and other countries worldwide. Cypress reserves all rights under such laws and treaties and does not, except as specifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other intellectual property rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with Cypress governing the use of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable license (without the right to sublicense) (1) under its copyright rights in the Software (a) for Software provided in source code form, to modify and reproduce the Software solely for use with Cypress hardware products, only internally within your organization, and (b) to distribute the Software in binary code form externally to end users (either directly or indirectly through resellers and distributors), solely for use on Cypress hardware product units, and (2) under those claims of Cypress s patents that are infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely for use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation of the Software is prohibited. TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. To the extent permitted by applicable law, Cypress reserves the right to make changes to this document without further notice. Cypress does not assume any liability arising out of the application or use of any product or circuit described in this document. Any information provided in this document, including any sample design information or programming code, is provided only for reference purposes. It is the responsibility of the user of this document to properly design, program, and test the functionality and safety of any application made of this information and any resulting product. Cypress products are not designed, intended, or authorized for use as critical Components in systems designed or intended for the operation of weapons, weapons systems, nuclear installations, life-support devices or systems, other medical devices or systems (including resuscitation equipment and surgical implants), pollution control or hazardous substances management, or other uses where the failure of the device or system could cause personal injury, death, or property damage ( Unintended Uses ). A critical Component is any Component of a device or system whose failure to perform can be reasonably expected to cause the failure of the device or system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products. You shall indemnify and hold Cypress harmless from and against all claims, costs, damages, and other liabilities, including claims for personal injury or death, arising from or related to any Unintended Uses of Cypress products. Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, WICED, PSoC, CapSense, EZ-USB, F-RAM, and Traveo are trademarks or registered trademarks of Cypress in the United States and other countries. For a more complete list of Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their respective owners. Page 10 of 10 Document Number: 001-87570 Rev. *D