Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Immunity-aware programming wikipedia , lookup
Electronic engineering wikipedia , lookup
Ground loop (electricity) wikipedia , lookup
Sound reinforcement system wikipedia , lookup
Spectral density wikipedia , lookup
Resistive opto-isolator wikipedia , lookup
Pulse-width modulation wikipedia , lookup
Public address system wikipedia , lookup
Oscilloscope history wikipedia , lookup
Dynamic range compression wikipedia , lookup
Mixed Signal Devices and Sensors By: Aaron GL Podbelski, Cypress Semiconductor Sensor design in embedded systems has traditionally required analog experts to interface with the sensors, but the use of mixed signal products relegates embedded sensor design to a typical EE. Previously, interfacing with an analog sensor required the use of external amplifiers and filters to conditional the signal properly before digitizing the signal in a microcontroller’s ADC. By utilizing a mixed signal controller, the amplifiers and filters are integrated, allowing the designer to program each component in the signal path. This integration simplifies the design and reduces the time and complexity of the system. Filter Amp Sensor ADC Digital Interface Processing Core HOST E.g. UART, Modbus, etc Actuator Control E.g. PWM Standard Microcontroller PSoC Generic Sensor SystemBlock Diagram Figure 1: basic sensor signal path, and the increased functionality a mixed signal brings to the solution Cypress’ PSoC allows users to integrate much more functionality than a traditional microcontroller. At the heart of PSoC is a microcontroller core, but what allows for such increased ability is PSoC’s configurable digital and analog blocks. In these blocks the user can place User Modules to select the functionality they want out of the PSoC such as counters, PWMs, UART, SPI, amplifiers, filters, ADCs, and DACs. The fact that PSoC has this ability gives it all the functionality competitive microcontrollers, but with added analog functionality and completely user configurable. The PSoC also has the ability to be dynamically reconfigured, which means that User Modules can be swapped out and be replaced by different ones on a time division basis. This can allow a user to consume more than 100% of the resources on the PSoC. The configurable digital and analog blocks of the PSoC allow it to be the ideal choice for systems utilizing sensors. Each sensor has a different output signal and range. The output signal can be voltage, current, resistive, capacitive, or frequency based, but few standards exist, and they are only used in specific industrial systems. Since a majority of sensors output a low level voltage based signal, this article will assume a voltage signal is being used. Note that this article simplifies some concepts and the component selection process for efficiency’s sake. Mixed Signal Devices and Sensors Published in Electronics Components World (http://www.electronicscomponentsworld.com) Page 1 of 3 January 2009 [+] Feedback The output of a sensor can be as small as several mV and as large as several volts. In order for the signal to be properly digitized it needs to be large enough for the ADC to effectively read the signal. In the easiest case, the sensor will output a high amplitude signal that does not need to be amplified. But most sensor signals will need amplification. As an example, a typical type K thermocouple outputs 41 µV/°C, which needs to be greatly amplified if the user would like to read 1°C granularity. When selecting an amplifier, the designer must take the ADC resolution into account to ensure that signal is amplified enough to obtain the desired granularity. Selection of an amplifier is mainly based on the amount of gain needed. The gain of an amplifier can be between 1x amplification to several 1000x amplification. The gain of a basic operational amplifier is set by network of resistors. An alternative to an operational amplifier is a programmable gain amplifier (PGA) which is a device where the gain is set digitally. PSoC has several types of integrated PGAs which can be used individually to amplify the signal or cascaded together for increased amplification. In all systems some noise will be imparted on the sensor’s signal. The noise can come from a number of sources including board layout, radios, thermal noise, and even the sensor itself. Not only does signal noise will cause inaccurate and unstable readings by the ADC, but the noise has been amplified which exaggerates the error in the signal. Signal noise can be quantified as low frequency, high frequency, or a specific known frequency. Most often the noise is high frequency noise. To remove noise, the signal is filtered using low pass or band pass filters. Normally these filters are implemented using passives on board. Passive filters can be designed to be relatively simple or extremely complex depending on the system’s noise requirement, but they are static filters. If any possible sources of noise on the board are not taken into account, a board respin/BOM change may be required. PSoC integrates programmable filters on board. PSoC’s low pass and band pass filters are 2 pole filters with configurable corner frequencies. The filters can even be cascaded to create a filter with up to 8 poles which is useful for designs that have strict cutoff needs. In order to utilize the sensor’s filtered signal within the system it is necessary to quantify the analog signal into the digital domain using an ADC. Selection of an ADC mainly revolves around the system’s requirements for sampling speed and resolution. The sampling speed required for the system is related to the sensor’s bandwidth or how often the system needs to be updated. The resolution required for the system is dependent on the granularity needed by the system to react to the sensor’s information. The system’s usage model defines this speed and resolution requirement. Example: an accelerometer used on a phone to change the screen’s orientation might only need a 10-bit ADC that updates several times a second, whereas a load cell used in a production line might require a 16-bit ADC updating several thousand times a second. When selecting an ADC the user has the choice of using an external ADC or an microcontroller with an integrated ADC. External ADCs tend to be higher performance compared to integrated ADCs, but the majority of sensor application’s requirements are well aligned with microcontroller ADCs. Microcontroller vendors only offer one type of ADC with their microcontroller that has little flexibility, only the ability to change speed and resolution. The PSoC offers several types of ADCs that be selected and programmed on the fly as well as having variable speed and resolutions, allowing for an increased amount of flexibility when compared to a basic microcontroller. Once the signal has been digitized, the user can integrate the signal with a control system in the microcontroller, or they can pass the data to a host processor via a communication protocol. The signal path for a sensor may seem simple, but the implementation can be convoluted. Cypress’ PSoC reduces the complexity of quantifying the sensor’s signal path by integrating the amplifier, filters, and ADC into a single device. Additionally, the PSoC also has an analog MUX that can be used to allow multiple sensors to be connect concurrently. The PSoC mixed signal array is an ideal solution to interface with sensors for a wide variety of industrial and consumer applications. Mixed Signal Devices and Sensors Published in Electronics Components World (http://www.electronicscomponentsworld.com) Page 2 of 3 January 2009 [+] Feedback Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone: 408-943-2600 Fax: 408-943-4730 http://www.cypress.com © Cypress Semiconductor Corporation, 2007. 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™, Programmable System-on-Chip™, and PSoC Express™ 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. 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 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. Mixed Signal Devices and Sensors Published in Electronics Components World (http://www.electronicscomponentsworld.com) Page 3 of 3 January 2009 [+] Feedback