Blog Posts - Cypress.com http://www.cypress.com/?id= The year is off to a running start! http://www.cypress.com/?rID=74823 The year has just started and I have already been to 6 universities (MIT, UW Madison, MSOE, Marquette, UPENN and RPI).

PSoC workshops are getting really popular! Tomorrow I am headed to Cal Poly San Luis Obispo to advise some students on their PSoC projects and attend the winter career fair.

Hope your year is going well so far!

C. U. Around

 

]]>
Tue, 29 Jan 2013 22:29:50 -0600
USB Reading http://www.cypress.com/?rID=45767
I feel that there is lot of USB related reading material out there – almost an information deluge - but there are few that encompass some of the key points of this protocol. I’m trying to compile here a few articles that I used to understand some of the basics. Hope this list helps!  

1. USB in a nutshell (By Craig Peacock) - http://www.beyondlogic.org/usbnutshell/usb-in-a-nutshell.pdf
This is an old article (written in 2002) – but describes the protocol in a lot of detail. May be a little too deep for some – I had found it very useful to understand what really goes inside a USB pipe

2. Upgrading Embedded Design Firmware via USB (By Rakesh Reddy) – http://www.eetimes.com/design/other/4026877/Upgrading-Embedded-Design-Firmware-via-USB
This goes a little deeper into the embedded design with USB for those who are not satisfied with the first article above!

3. Common USB Development Mistakes – You Don’t Have To Make Them All Yourself! – (By Steve Kolokowsky and Trevor Davis) http://uk.farnell.com/images/en/ede/pdf/usb_dev_mistake.pdf
This is a very handy article for embedded designers starting off with USB

4.  USB Technology: Multi-TT Hub Goes Head-to-Head With Single-TT – (By Patrick Schmid for Tom’s Hardware) - http://www.tomshardware.com/reviews/usb-technology,677.html
Don’t go by the title. Most of us have used a USB hub at some point in our lives. This article – written back in 2003, gives a good understanding on how a USB hub works!


5. Increase the USB performance of your handset design (By Steve Kolokowsky) - http://www.eetimes.com/design/other/4016183/Increase-the-USB-performance-in-your-handset-design?pageNumber=1

Now that 90% of world’s handset devices (>1.3Billion handsets sold every year) have a USB port, most popularly used for charging and data transfer – this article written in 2006 is very much ahead of its time.

6. Making USB Flash Drives Secure (By Anant Jhawar)  - http://embeddeddsp.embedded.com/columns/technicalinsights/225402174?printable=true
Great read on how the most common USB device around (the flash drives / USB sticks / thumb drives – or whatever you call them J ) can be made more scure

8. USB3.0 – The Next-Generation Interconnect (By Ashwini Govindaraman)
http://electronicdesign.com/article/digital/usb_3_0_the_next_generation_interconnect.aspx
Good article on some of the basics of USB3.0

I'm writing after a long hiatus! Feels like a first entry. Need to keep this moving at a more constant rate. Thank you all for being patient!!

]]>
Thu, 24 Jan 2013 23:16:54 -0600
Did you know? There is a web page dedicated to Programming PSoC devices! http://www.cypress.com/?rID=74305 The General PSoC Programming web page is central location that details every aspect of programming PSoC devices. Topics discussed include software, hardware, documentation, and 3rd party vendor relationships available to PSoC customers.

Here is the link (bookmark it!): http://www.cypress.com/go/programming

Perhaps most importantly we maintain a table of production programming solutions for all parts. Here is a snapshot summary of that information (there is more detail on the web).

As we extend the list of supported programmer tools we ll post a message to this forum and update the table on the web so you can always have an accurate and up-to-date record of your PSoC programming choices.

Happy Programming!

]]>
Wed, 16 Jan 2013 13:22:46 -0600
Getting Started Video for PSoC Designer http://www.cypress.com/?rID=73635  

Watching a brief walkthrough video can be a big help in conquering the PSoC Designer learning curve. Join Ganesh Raja and see how easy it is to build your first project:

http://www.cypress.com/?rID=70468

]]>
Thu, 20 Dec 2012 23:59:01 -0600
PSoC® 5LP Kit Upgrade Program Open http://www.cypress.com/?rID=73569 We want to offer all of our current PSoC®5 customers the opportunity to upgrade your CY8CKIT-050 kit to a PSoC 5LP for free. There are drop-in, pin-for-pin compatible replacement parts for each of the PSoC 5 products in the PSoC 5LP family. The PSoC 5LP offers increased Analog precision with our class leading 12-bit SAR and a 20-bit DelSig ADC, Boost technology allowing for start-up from only 0.5V and lower power modes. The Kit Upgrade Program allows existing PSoC 5 users to try out these new features for free.

The upgrade program for the CY8CKIT-001 and CY8CKIT-010 to PSoC 5LP silicon will be coming in the first weeks of January. Look for an announcement at that time.  

]]>
Wed, 19 Dec 2012 17:08:20 -0600
PSoC 3 Kit Upgrade Program Closing http://www.cypress.com/?rID=73522

The PSoC 3 (CY8CKIT-001, CY8CKIT-003) upgrade program will end January 4th, 2013.  I would like to thank everyone who participated over the last two years for trying out our new silicon. I hope you had an excellent upgrade experience. If you haven't yet had a chance to upgrade your system, you still have a few days.  We are taking upgrade requests through the end of the day on January 4th. You just need to fill out a short form on the PSoC Kit Upgrade Program website.

The team here at Cypress wants you to have the best experience possible with PSoC.  That's why we offer free kit upgrades to production silicon or new silicon (look for a PSoC 5 to PSoC 5LP upgrade program coming soon).  We strongly believe being an early adopter shouldn't penalize you.  We will continue to offer these kit upgrades to production silicon and new key silicon. The PSoC 3 kit upgrade program was highly successful with just under a thousand total kits upgraded over the last two years and we hope that all PSoC 5 customers will use the kit upgrade program to try out the PSoC 5LP.  

]]>
Tue, 18 Dec 2012 17:56:01 -0600
PSoC World Happening Now http://www.cypress.com/?rID=73267 If you've got a few minutes today, please consider logging into our PSoC developer's conference. TJ Rodgers is giving the keynote right now, and there are a host of applications engineers ready to answer any PSoC questions you may have. Please check it out now at www.psocworld.com!

]]>
Wed, 12 Dec 2012 11:43:08 -0600
PSoC® Creator™ 2.1 Service Pack 1 is available for download from the Cypress Website http://www.cypress.com/?rID=73042  

PSoC® Creator 2.1 Service Pack 1 is now officially available for download!  If you are considering using the new PSoC 5LP for its capability to run high-precision programmable analog on a single-cell battery, you need to download the PSoC Creator update.  In addition to updating all the components to support the PSoC 5LP, we fixed several minor defects. Details for the release are in the Release Notes.

Read more about the PSoC 5LP, Cypress's newest ARM® Cortex -M3, in the PSoC 5LP Press Release or on the PSoC 5LP Product Page.

 

Design the way you think with PSoC Creator.  

]]>
Tue, 11 Dec 2012 17:34:05 -0600
Register for PSoC® World - No Raincoat Required! http://www.cypress.com/?rID=73041

Although I wish everyone could come visit us in our Seattle office where we make PSoC, your programmable solution on a chip, it's a bit cold and grey this time of year.  Instead, virtually visit us at PSoC World 2012 on Dec 12 & 13.  I think you'll really enjoy the technical sessions, inspiring keynotes and a chance to chat with me and the whole PSoC team all from the comfort of your home or desk.  I'm most looking forward to the PSoC pannel discussion between several of our customers, a university professor and a PSoC expert from Arrow all moderated by Dan Byers, Senior Director of World Wide FAEs.  I think the discussion will be lively to say the least.

Tom Lantzsch, the EVP of Strategy for ARM, is discussing intelligence everywhere and the pervasive nature both of ARM processors and the fundamental shift in products for increasing technology at lower and less expensive price points.  He also brings up some great thought provoking concepts on energy conservation and low power.

If you're an engineer who likes wine, you need to check out Cypress's CEO, T.J. Rodgers' keynote on the science and technology he's introducing to wine-making in his vineyard near the mountains of Santa Cruz, California and at the University of California at Davis.  T.J. is an engineer's engineer and brings measurement, a knowledge of organic chemistry and fun electronics to everything he does and wine is no exception. 

If you need more convincing, check out the following:

]]>
Mon, 10 Dec 2012 16:47:23 -0600
Pressure Sensing with PSoC3 – Part 4/4 http://www.cypress.com/?rID=72988 In this part, we ll see how to interface an amplified compensated pressure sensor with PSoC3 and evaluate the system performance. This type of pressure sensor is very expensive as it performs both amplification and temperature compensation. The Honeywell SSCDANN015PGAA5 will be used for interfacing with PSoC3. The important specifications of SSCDANN015PGAA5 are listed below

Important specifications:

Supply Voltage: 5V

Accuracy: +/-0.25%

Total error band: +/-2% FSS

Sensor Operation:

This sensor has an amplified and temperature compensated output and is driven by a voltage supply. The output curve and equation are shown below.

 

Design:

The design is very simple as both amplification and temperature compensation are done within PSoC.  Resolution should be 1/1000th of full scale, hence a 10-bit ADC is required. The sensor output voltage goes to 90% of the supply voltage, so the ADC range should be vssa vdda. The ADC should operate with the rail-rail buffer enabled. Sensor output is ratiometric and the ADC reference should be Vdda/4.

 

PSoC Top Design and ADC configuration:

 

List of all errors:

S.No

Parameter

Error at 10 psi (in psi)

Sensor

1

Total error

0.2

2

Non-linearity

0.022

Signal Chain

5

Offset

0

6

Gain error

0.02

7

Offset drift (at 50°C)

0

8

Gain drift (at 50°C)

negligible

9

INL

negligible

 

PSoC Value:

Although not as many analog resources are required when interfacing a pressure sensor with an amplified output, integrating a sensor with other PSoC features such as capsense, segment LCD drive and communication protocols, etc, will lower overall system costs.

Conclusion:

PSoC3 and PSoC 5LP can sense pressure accurately while reducing BOM cost and board space by integrating the analog front-end, ADC, reference and MCU. PSoC ADC inputs can be multiplexed with many inputs (limited only by the GPIO count) allowing interfacing to multiple pressure sensors or other analog sensors. The PSoC Creator design environment makes it easier for you to design and debug, reducing the design time and your time to market.

By Praveen Sekar

]]>
Thu, 06 Dec 2012 08:56:39 -0600
Pressure Sensing with PSoC3 – Part 3/4 http://www.cypress.com/?rID=72816 In part 3, we ll see how to interface an unamplified compensated pressure sensor with PSoC3 and evaluate the system performance. Measurement Specialties MEAS 1210 standard is used for interfacing with PSoC3. The important specifications of MEAS 1210 standard are listed below.

Supply current = 1.5 mA

Pressure Range:  0 -15 psi (Gage)

Sensitivity (max): 10 mV / psi

Sensitivity (min): 5 mV / psi

Temp error - span (max): 0.5 % FSS

Offset (max): 2 mV

Temperature error - offset: 0.5% FSS

Specified temp range: -40 to 125 °C

Bridge resistance (max): 6.4 k (50°C)

Accuracy: +/-0.1 % FSS BFSL

 

Sensor Operation:

The sensor is a piezo-resistive sensor excited by a current and has an output voltage proportional to the pressure and the current. The output voltage has a 50% tolerance and the sensor provides a gain set resistor to calibrate it to 1%. When the sensor is excited by proper current excitation levels specified in the datasheet, the temperature coefficient of span and offset will cause only a very small error in the final measurement (temperature compensated).

 

Design:

The design requires an excitation current of 1.5mA and an ADC to measure the output voltage. With a bridge resistance of 6.4k (max) and excitation current of 1.5mA (current level prescribed in the datasheet for proper temperature compensation), the load voltage of the current source is 9.6V. This means PSoC IDAC cannot directly be used for supplying bridge current because of very high load voltage. To limit external components and get maximum value out of PSoC we can use circuit below.

 

By controlling the VGS of this circuit, the ID can be controlled. VGS is controlled by changing the current of the sinking IDAC. RB ensures the IDAC output voltage is within compliance and optimum. The current sense resistor (0.1%), RSENS,aids in setting the current to 1.5mA. The voltage across RSENS is read by PSoC ADC (0.2%) and the IDAC current is adjusted until ID becomes 1.5mA. With this circuit, we can ensure that the current is accurate to 0.3%. A current accuracy of 2% is the requirement so the temperature error due to offset and span are within datasheet limits.

 

Sensor Common mode output voltage:

With this design the sensor common mode output voltage is given by;

(1.5 * 6.4)/2 + 0.150 /2 + (1.5mA * 0.05)/2 = 4.8 + 0.075 + 0.0375 = 4.91 V

Here, 1.5mA is the sensor current, 6.4k is the max bridge resistance and 0.150 V is the maximum span, 0.05 is the sense resistance.

The sensor common mode voltage is very high to directly feed into PSoC. The ADC with input buffer can accommodate only to within 200 mV of Vdda. The ADC without buffer can t be used because it has low input impedance. The PGA can allow input voltage all the way to the voltage rail, but we ll be limiting the design to supplies with very strict tolerance levels. This is not desirable as various designers might want flexibility in their power supply design (at least support 5% supplies).

Hence to lower the common mode voltage we can use a charge pump that generates a negative voltage. The generated voltage is about -3V using a negative charge pump. The ripple voltage (of <10%) on the charge pump output doesn t have a major effect as long as we set the ADC input sampling frequency as an integral multiple of the ripple frequency (the charge pump clock frequency).

 

ADC input range:

The sensor span is 150mV (max). The ADC input range should be > +/- 0.256V.  

Resolution:

Resolution required in 1/1000th of full scale. At minimum span of 75mV, we require 75uV of voltage resolution. At 15-bit level, the ADC resolution is 64uV. With a gain of 4, the ADC resolution is < 16uV.

At +/-1.024V range, we require 15-bit resolution

At +/-0.256V range, we require 13-bit resolution

Reference:

This measurement requires an absolute reference. The final pressure accuracy depends on the reference accuracy, therefore the internal 1.024 V reference is a good choice.

 

The ADC has four channels:

0.  Sense resistance channel: This channel is used to set the current to 1.5mA

1.  Sensor Channel: Senses the sensor output

2, 3.  Calibration channels: Measures the gain set resistance for calibration

The IDAC has two channels:

1. Passes current through the calibration resistance

2. Passes current through the sensor

The ADC configuration for the pressure sensing channel is shown below.

 

 

 

Pressure Equation:

The pressure is computed from the measured voltage using the following equation.

P = A* (Vo / Si) * Pr

P Pressure (in psi)

V0 Bridge output voltage in mV

Si Span of pressure sensor output in mV

Pr Rated Pressure (in psi)

A I/1.5. I is the actual current flowing into the pressure sensor

 

Calibrations required:

Span Calibration:

The Span of the pressure sensor is calibrated using the gain set resistance provided in the sensor. Using the gain set resistance, r, the span can be calibrated. The gain set resistance is trimmed such that when it s used in conjunction with a differential amplifier, it ll give a 2V span. Working the equations back, you can find that the gain set resistance.

r = (2 * Rf * Si)/ (So Si)

Here, Rf is feedback resistor of the differential amplifier, Si is the span of the pressure sensor output (differential amplifier input) and So is the span at the differential amplifier output. By looking at the datasheet of the part, Rf and So can be found. For MEAS 1210, Rf = 100k and S0 = 2V.  By measuring r, we can find the span,

Si = 2/(1 + (200/r))

 

Performance measures:

Offset:

The sensor has a 2mV offset (max). This can be calibrated out to zero.

Span error:

The gain set resistor can provide an interchangeability accuracy of 1%. In addition, the gain set resistor can be found with 0.1% accuracy only (limited by calibration resistor accuracy. If the calibration resistor is very accurate (0.01%) or calibrated, then the span error will be 1%.

Temperature Error offset:

This has a maximum error of 0.5% FS. This is 0.075 psi.

Temperature Error span:

This has a maximum error of 0.5% FS. This is 0.075psi.

Pressure non-linearity + hysteresis:

Together they contribute 0.15% FS. This is 0.022 psi.

 

Signal Chain:

Offset error:

The offset error of PSoC ADC is <100uV, which can be cancelled by Correlated Double Sampling (CDS).

Offset drift:

Offset drift of PSoC is 0.55uV/°C. At 50°C, this is 11uV. It is 1/7th of minimum resolution (0.015psi). It can be cancelled by Correlated Double Sampling (CDS).

Gain error:

PSoC ADC s calibrated accuracy is 0.2%. There are 2 measurements, 1 voltage measurement and 1 current measurement (current set to 1.5mA). This can contribute to 0.4% error in total.

Gain drift:

Drift is 50 ppm/°C. For 25°C change, it ll be 0.125%.

List of all errors:

 

S.No

Parameter

Error at 10 psi (in psi)

Sensor

1

Offset

0.2 (Can be calibrated)

2

Span error

 0.1 (best case)

3

Temperature coefficient of offset (50 °C)

0.075

4

Temperature coefficient of span (50 °C)

0.075

5

Non-linearity

0.022

Signal Chain

5

Offset

0

6

Gain error

0.06

7

Offset drift (at 50°C)

0

8

Gain drift (at 50°C)

0.018

9

INL

<0.015

 

PSoC Value:

Apart from integrating the analog front end, ADC, 0.1% precision reference, Op-Amp, IDAC and the MCU and providing a separate channel for accurate temperature measurement, PSoC can integrate miscellaneous features suchascapsense, segment LCD drive and communications protocols. Designing with PSoC creator reduces the design time considerably. The BOM cost and board size can also be significantly reduced.

In the next part we ll see how to interface unamplified compensated pressure sensor with PSoC3.

By Praveen Sekar

]]>
Mon, 03 Dec 2012 10:51:02 -0600
Questions about Programming Your PSoC? http://www.cypress.com/?rID=72698 We've put answers to all of your programming-related questions in a single place:

 

www.cypress.com/go/programming

Clicking the link above will take you to a page detailing the software and hardware you need to program your PSoC. You'll also find programming specifications and a list of our 3rd party programming vendors. In short, it's everything you need to handle programming from your first prototype to high volume manufacturing.

]]>
Thu, 29 Nov 2012 18:02:40 -0600
Pressure Sensing with PSoC3 – Part 2/4: http://www.cypress.com/?rID=72659 In part 2, we ll see how to interface an unamplified uncompensated pressure sensor with PSoC3 and the system performance. We ll use the Honeywell NBPMANS015PGUNV for interfacing with PSoC3. The important specifications of Honeywell NBPMANS015PGUNV are listed below.

Supply voltage = 5V

Pressure Range:  0 -15 psi (Gage)

Sensitivity (max): 6.9 mV / psi (25°C)

Sensitivity (min): 3.3 mV / psi (25°C)

Temp Coefficient of sensitivity (max): -3.8 %

Offset: 35.6 mV (50°C)

Temperature coefficient of offset: 1.5%

Specified temp range: -40 to 125 °C

Bridge resistance (max): 5.9 k (50°C)

Accuracy: +/-0.25 % FSS BFSL

Sensor operation:

This type of pressure sensor is a piezo-resistive sensor (Wheatstone s bridge) driven by a voltage supply. The bridge output voltage is directly proportional to the applied pressure and the supply voltage. The primary sources of error to be factored in while designing with this type of sensor is the sensor offset error, span error and temperature coefficient of span and offset (since the sensor is temperature uncompensated, temperature coefficient of span and offset play a major role in the final error).

Design:

The design parameters of concern are the ADC resolution, input range and reference.

ADC input range:

This parameter is dependent on the maximum voltage output, V0, from the pressure sensor. At 5V supply and using the maximum offset and sensitivity possible, we get;

V0 (max) = 6.9 * 15 + 35.6 = 139.1 mV

ADC input range should be greater than +/-0.256 V.

 

Resolution:

1/1000th of the full scale resolution is sufficient in pressure sensing applications.

Pressure resolution = 15 psi/1000 = 0.015 psi

Voltage resolution = 49.543 mV/1000 = 49.543uV

 

This requires a 16-bit ADC in +/-1.024V range or 14-bit ADC in +/-0.256V range.

Reference:

A ratiometric reference should be used in this case. Hence PSoC reference should be configured for internal vdda/4 , where vdda = 5 volts.

 

PSoC Creator Top Design:

 

The ADC has three channels, one for sensing pressure and the other two used for temperature measurement. The RTD temperature is measured as described in AN70698.  ADC configuration for the pressure sensing channel is shown below.

Note that +/-Vref/4 range can also be used for this configuration in 14-bit mode.

 

Pressure Equation:

From the measured ADC voltage, the pressure is calculated from the equation below;

P = (Vo / S) * Pr

P Pressure (in psi)

V0 Bridge output voltage in mV

S Span in mV

Pr Rated Pressure (in psi)

 

Calibrations required:

 

Room Temperature calibration:

Since span has a very high tolerance, we have to calibrate span before using it. Pressure sensor offset should also be calibrated before use.

 

Offset Calibration:

Offset of the pressure sensor has to be corrected by giving a zero pressure input and measuring the ADC output voltage, Voff.

Voff  = Voffp + Voffs

Voffp Pressure sensor offset

Voffs signal chain offset

 

Span/Gain Calibration:

The span of the pressure sensor is calibrated by applying a full scale pressure input to the pressure sensor and measuring the ADC output voltage, Vfs.

S = Vfs

(Where S is the Span)

By doing span calibration we are calibrating both the span error of the sensor and gain error of the ADC.

 

Temperature calibration:

Both the pressure sensor offset and span varies with temperature and they have to be calibrated. But the sensor datasheet doesn t provide information on the span or offset calibration. It provides only the limits of the error. If the characteristic curve is found by experiment, we can correct for both span and offset temperature coefficient accurately.

 

List of all errors:

S.No

Parameter

Error at 10 psi (in psi)

Sensor

1

Offset

0 *

2

Span error

0 *

3

Temperature coefficient of offset (50 °C)

1.5  (Can be calibrated)

4

Temperature coefficient of span (50 °C)

-0.6 (Can be calibrated)

5

Non-linearity

0.0375

Signal Chain

5

Offset

0

6

Gain error

0 *

7

Offset drift (at 50°C)

< 0.004

8

Gain drift (at 50°C)

0.01 (can be calibrated)

9

INL

0.02

 

*Note:  Assumes calibration source has zero error.

ADC INL and the sensor non-linearity are the only factors that can t be calibrated and will affect the final measurement.

PSoC Value:

Apart from integrating the analog front end, ADC and the MCU, providing a separate channel for accurate temperature measurement, PSoC can integrate miscellaneous features suchascapsense, segment LCD drive and communications protocols. Designing with PSoC creator can reduce the design time considerably. The BOM cost and board size can also be significantly reduced.

In the next part we ll see how to interface unamplified compensated pressure sensor with PSoC3.

By Praveen Sekar

]]>
Wed, 28 Nov 2012 09:26:55 -0600
PSoC World: Virtual PSoC Developer's Conference http://www.cypress.com/?rID=72624 On 12 and 13 Dec 2012, Cypress will be hosting our first PSoC Developer's Conference, PSoC World (www.psocworld.com).  We're extremely excited about this event and have packed in keynotes from our own CEO, TJ Rodgers and other industry visionaries from Arrow, ARM and Macnica.  Additionally, we have introductory to advanced training sessions with video demonstrations detailing how you can take advantage of the PSoC programmable platform to implement a variety of applications and solutions.  Further, we'll be hosting a special panelist session featuring engineers, like you, talking about the creative and different ways they have used PSoC devices and software to implement a variety of solutions.  Register today and watch our sneak peek video at www.psocworld.com

See you there!

 

]]>
Tue, 27 Nov 2012 15:54:47 -0600
PSoC World: Virtual PSoC Developer's Conference http://www.cypress.com/?rID=72623 On 12 and 13 Dec 2012, Cypress will be hosting our first PSoC Developer's Conference, PSoC World (www.psocworld.com).  We're extremely excited about this event and have packed in keynotes from our own CEO, TJ Rodgers and other industry visionaries from Arrow, ARM and Macnica.  Additionally, we have introductory to advanced training sessions with video demonstrations detailing how you can take advantage of the PSoC programmable platform to implement a variety of applications and solutions.  Further, a special panelist session is planned that features engineers, like you, talking about the creative and different ways they have used PSoC devices and software to implement a variety of solutions.  Register today and watch our sneak peek video at www.psocworld.com. See you there! ]]> Tue, 27 Nov 2012 14:56:11 -0600 Pressure Sensing with PSoC3 – Part 1/4 http://www.cypress.com/?rID=72573 Pressure sensors can come in a variety of technologies, such as piezoresistive, capacitive, electromagnetic etc. Piezoresistive pressure sensors are the most commonly used of this group.

In this four part series, piezo-resistive pressure sensing basics and the PSoC circuits for three types of pressure sensors will be examined. The first part covers piezo-resistive pressure sensor basics and introduces three categories of pressure sensors

Piezo-resistive Pressure sensor basics

 A piezo resistive pressure sensor has a silicon diaphragm whose resistance depends on its tension. The diaphragm undergoes tension whenever there is a pressure. It can be modelled by a Wheatstone s bridge where all the resistors change with pressure. When pressure is applied to the diaphragm, resistance of the two arms (diametrically opposite to each other) increases and the resistance of the other two arms decreases.

 Pressure sensor equations

 The change in resistance can be converted to voltage by voltage or current excitation. The equations involved in voltage and current excitation are shown below.

Voltage Excitation Mode:

In this case, the Wheatstone s bridge is excited by a voltage. Span is defined as the bridge output voltage for rated pressure (full pressure). Span( S) is given by

S = V * R/R

R Change in resistance for rated pressure

R - Bridge resistance

V Excitation voltage

 

R = P * Ps

P Rated Pressure

Ps Pressure sensitivity (Change in resistance for unit change in pressure)

Ps = R * k

k - Normalized pressure sensitivity i.e. Pressure sensitivity for 1ohm resistor

S = V * P * k

Span is independent of bridge resistance. The temperature coefficient of span primarily results from the temperature coefficient of pressure sensitivity which is dependent on the diaphragm material.

 

Current excitation:

In this case, the bridge is excited by a current source. In this case span is given by,

S = I * R * P * k

Where I is the excitation current.

In this case, the span depends on the current source and bridge resistance.  

The temperature coefficient of span results from the temperature coefficient of resistance and the temperature coefficient of pressure sensitivity.  By proper design, the two can be made close to each other. Hence current excited pressure sensors have the design advantage of tweaking the process parameters so as to reduce the effect of temperature on span.

 

Pressure sensor types

The pressure sensor span is generally around 50-150mV. Depending on whether the pressure sensor output is amplified and on whether the pressure sensor is compensated for temperature variations of span and offset, we can have the following categories of pressure sensors

  1. Unamplified uncompensated pressure sensors
  2. Unamplified compensated pressure sensors
  3. Amplified pressure sensors/transmitters.

The next three parts explains interfacing each type of pressure sensor with PSoC and the system performance measures.

 

By Praveen Sekar

]]>
Mon, 26 Nov 2012 09:41:56 -0600
PSoC World Is Coming! http://www.cypress.com/?rID=72496 PSoC World is an online virtual event happening Dec. 12 and 13. It is 24 hours of all things PSoC and you do not have to leave your browser to attend.

This is a great opportunity to take a short break from finals and attend the virtual show of shows.

You can register by clicking here: PSoC World

See you there - there will be a few academic goodies on the show.

Until then,

C. U. A.round

]]>
Fri, 23 Nov 2012 10:45:43 -0600
PSoC World Is Coming! http://www.cypress.com/?rID=72495 PSoC World is an online virtual event happening Dec. 12 and 13. It is 24 hours of all things PSoC and you do not have to leave your browser to attend.

This is a great opportunity to take a short break from finals and attend the virtual show of shows.

You can register by clicking here: PSoC World

See you there - there will be a few academic goodies on the show.

Until then,

C. U. A.round

]]>
Fri, 23 Nov 2012 10:45:41 -0600
Let PSoC Brighten Your Holidays http://www.cypress.com/?rID=57336 If you have used microcontrollers as long as I have, you have most likely bit-banged a serial protocol a couple of times.  For those of you new to microcontrollers, bit-banging is when you write 1s and 0s to a GPIO port to simulate hardware you controller doesn't have.  It is almost always a pain, it takes excessive CPU cycles and is even worse if you are on the receiving end, like an I2C slave.  If anyone ever asks you to bit-bang an I2C slave, just say NO!  Just trust me on this one!

Anyway, it is impossible for your microcontroller to always have every serial interface that may come along.  For example, I read about a string of 50 Christmas lights that had red, green, and blue LEDs in each bulb and here comes the best part, each bulb is addressable.  Yes, you can control each individual bulb for color and intensity, four bits for each color (red, green, and blue) and 8 bits for intensity.  Of course the string of lights came with its own controller that could generate 12 different patterns, but I wanted to create my own patterns.  With a little Google searching I found that someone had already hacked the asynchronous protocol and bit-banged an IO port to control the lights with some microcontroller.  Nobody had actually created hardware to make this easier or less CPU intensive, you know why? Because nobody else used a PSoC3 or PSoC5 with their powerful UDBs!  Yes a PSoC3/5 can bit bang with the best of them, but why bother when you have extremely flexible hardware, plus bit banging is so 90's. 

The protocol was a 26-bit packet with one start and three stop bits. Each data bit was divided into three 10uS periods.  The first period is always low, the second period was low if the data was a 1 and high if the data bit was a 0 .  The last period is always high.  See images below for bit and packet formats.

 

The packet format is pretty straight forward with the address, brightness level and three colors packed into 26 bits.  See figure below.

I had a choice, be lazy and use a 32-bit wide shifter or use a single 8-bit wide shifter with a slightly more complicated state machine. The 32-bit wide implementation would be easier but would be a bit wasteful in hardware.  The 8-bit wide implementation would take a bit longer, but much more efficient. I choose to go with the 8-bit wide design.  One other nice feature in the UDBs, is that you can create two 4 byte FIFOs for data flowing into or out of an interface.  This turned out to be perfect since it took 4 bytes to transfer the full 26-bit packet.

The string of lights is 50 bulbs long and if you want to update all the bulbs at one time, it would take 200 bytes (50 bulbs * 4 bytes per packet). Since you don t want the processor to just sit and wait for an interface to move data, DMA is the perfect solution. This way I was able to update the entire string using DMA with almost no CPU overhead!  Where the other guys are wasting their CPU cycles toggling bits, the CPU in the PSoC could concentrate on generating cool interactive patterns, converting DMX commands to the light string format, or any other task.  What is even better, I could implement 8 of these interfaces in a single PSoC3 or PSoC5 at the same time.  

Making this interface into a PSoC Creator component, provides a way to setup all the hardware and DMA with a single start command as with all Creator components.  More APIs are added to generate cool lighting patters.  The video below is an example of version 1.0 controlling three strings of light on my house.

This second video shows four strings on the floor in our lunch room.

 

This third video demonstrates yet another use for the lights.

 

Just think of the possibilities interfacing a string of lights to anything that can be measured with a PSoC!

 

Here are a few other images of the actual box the string came in, the string that I modified, my interface board, and a close up view of one of the bulbs.

 

 

 

Stay tuned for an upcoming video with the details of what it took to make the lighting component and how easy it is to interface the string with the Cypress PSoC3 First Touch Kit.

Mark Hastings

]]>
Sun, 18 Nov 2012 11:37:48 -0600
What can you do with PSoC 3 and PSoC 5LP UDBs http://www.cypress.com/?rID=72191 If you have used PSoC 3, PSoC 5 or the up and coming super cool PSoC 5LP, you have probably heard or and most likely made use of the internal UDBs, whether you knew it or not.  UDBs are digital blocks that allow you to make custom digital gadgets. There are a couple of new application notes that were mentioned before in this Blog, that describe the UDBs in detail and teach you how to use them.  See Cypress application notes AN82250 and AN82156.  Many of the standard digital components in Creator s library are actually constructed with UDBs. Below is a list of some of the components that are constructed mainly of UDBs.

I2C, I2S, LIN, SM Bus, SPDIF, SPI, UART, Counters, CRC generator, Glitch filter, Quadrature Decoder, Shift register, Timer, Logic gates, Flops, Digital multiplexers and de-multiplexers, control and status registers, etc. 

You get the picture, but what is currently in the library is by no means the limit of what can be created.  Recently I sent an email to our application and field application engineers and asked what they had created with UDBs.  Here is a list of some of the components people have created with PSoC UDBs.

  • 60Hz Grid Lock PLL
  • Numerically Controlled Oscillator (Used for DDS)
  • Forward Error Correction (FEC) decoder
  • No clock stretch I2C slave
  • Simple components (8bit adder, PWM, digital compares etc )
  • Complex Counters 
  • ADC mux sequencers
  • Holiday Light controller
  • Square root calculator
  • First order IIR filter
  • Hardware state machines
  • Delta sigma modulator
  • UDB discrete Fourier transform
  • Byte packer (sticks two 12-bit values into 3 bytes for RF transmission)
  • 7-Segment Display controller
  • Remote control servo controller
  • Manchester Encoder/Decoder
  • 1-Wire communication interface
  • ClipDetect,  Monitors 16-bit audio and over rides output if value exceeds a certain limit.
  • Audioclkgen,  Creates a factional N reference for the on-chip PLL.  Used in digital audio designs.

Notice that this list contains some pretty weird stuff that you would never find standard in any microcontroller.  You won t even find most this stuff in the standard PSoC Creator library, yet!  The point is, that it doesn t matter.  You can create your own  custom interface or component, that makes your project unique without adding extra external glue logic or a CPLD.

Cypress does have a Community Components page where people can post any component they have created.  Unfortunately it has been a very well kept secret until now.  Do yourself a favor and check out the Community Components page.

Also, if you want to get more training on creating components, read the app notes I mentioned above or look at the community components guidelines on this this page.

If you have created a cool component (or even a weird one), don t be afraid to share it with the Cypress community for your 15 minutes of fame. 

By Mark Hastings

]]>
Thu, 15 Nov 2012 19:30:58 -0600
ECE Dept. Heads Association Meeting http://www.cypress.com/?rID=60717 This weekend I will be presenting and exhibintg at the ECEDHA conference on the UT Austin campus. If you are attending be sure and stop by the CUA table and say hello. I am also presenting a PSoC overview on Sunday March 25 at 12:30. Again, if you are at the conference please feel free to attend.

12:30 pm - 12:50 pm

ECEDHA - Cypress Semiconductor

www.cypress.com/go/psoc

Learn how PSoC (Programmable System on Chip) Can Enhance Engineering Education
PSoC is a device consisting of programmable analog modules, programmable digital modules and an MCU (ARM Cortex M3 or 8051) all on one piece of silicon. Coupled with the PSoC Creator IDE, PSoC enables the hands on teaching of many classes from fundamentals of digital and analog to embedded systems and beyond using one technology and one software platform. Students learn the device architecture and design flow once and can spend most of their time building projects. To learn more about this exciting technology visit www.cypress.com/go/psoc.

Presenter
Patrick Kane
, Director, Cypress University Alliance; Cypress Semiconductor Corp.

]]>
Wed, 07 Nov 2012 01:21:01 -0600
Cypress Gold level Design Partner - Wildcat Development featured in PSoC Today http://www.cypress.com/?rID=71531 Dave Van Ess, PSoC Apps Guru meets with David Smith, President of Wildcat Development in this episode of PSoC Today. David talks about how he PSoC has been instrumental in solving some of his customers problems.

http://www.engineeringtv.com/video/Cypress-Semiconductor-PSoC-T-56

If you are a Cypress design partner and you would like to show case your PSoC based products in our show contact us at designpartners@cypress.com

]]>
Sun, 04 Nov 2012 14:15:14 -0600
Making PSoC talk to your computer. http://www.cypress.com/?rID=70889 Let's face it, when you create a USB device, you will want it to communicate with some form of a host interface. Using a UART-USB interface is one way to go about this and COM ports are among the more familiar interfaces. But have you ever tried to develop a device that uses a USB COM port in a custom application, that functions across multiple operating systems, while not running into difficulties?

It used to be with creating host applications for a computer, you only needed to create one application for Windows. In today's world, operating systems such as Mac OS X and Linux are growing in popularity. Additionally, mobile devices running Android are increasing in numbers with the continuous  production of smart phones and tablets. With so many different operating systems available, the need for cross platform functionality is ever so more important.

What if I told you there was a way to develop a PSoC 3 or PSoC 5 application to easily stream general data across USB and provide the foundation for cross platform functionality?  Using the Human Interface Device (HID) class makes this possible. Yes, the same class that is used for mice and keyboards is breaking free from the stereotype that it is limited to a device that requires some form of human interface, such as a button press, to function.

The truth is that the HID protocol provides the perfect foundation to shuttle data back and forth between a PSoC and computer, in applications where high speed data transfer is not required. Best of all is that implementing a generic HID on PSoC is easy to do and creating Graphical User Interfaces (GUIs) on various operating systems such as Windows, Mac OS X, and Linux is fairly straightforward.  AN82072: PSoC 3 / PSoC 5 USB General Data Transfer with Standard OS Drivers will guide you through all the steps required to do so. You will have your PSoC streaming data to a host operating system of your choice in no time! 

You can download this application note from the following link.
AN82072 - PSoC® 3 / PSoC 5 USB General Data Transfer with Standard OS Drivers

 

By Robert Murphy

]]>
Thu, 18 Oct 2012 09:28:47 -0600
PSoC Creator 2.1 Component Pack 4 Released http://www.cypress.com/?rID=70692 PSoC Creator 2.1 Component Pack 4 (CP4) adds 6 new components to Cypress growing library of inbuilt virtual chips or components. To those not familiar with Component Packs they are component-only enhancements to PSoC Creator. So what are these new components?

1.       SMBus and PMBus

These complete Cypress power supervision portfolio for PSoC 3 and PSoC 5, by adding SMBus and PMBus slave communication capability to PSoC. Learn more about PSoC Power Supervision solution at http://www.cypress.com/go/PowerSupervision.

2.       Debouncer

This is probably going to be the most-used component out of all six new releases because it is the easiest and best way to debounce and edge-detect switch inputs to your system, without using your CPU.

3.        Glitch Filter

The hardware glitch filter removes unwanted pulses from a digital signal, and is a frequently used function in digital designs. The Glitch Filter v2.0 is a complete re-design from its previous version which was available as a PSoC Creator concept component.

For more information on switch-debouncing and glitch-filtering, see AN60024.

4.       RTD Calculator

5.       Thermistor Calculator

6.       Thermocouple Calculator

These three new components add easy-to-implement temperature-sensing capability to PSoC Creator s component library. Find out more about temperature-sensing with PSoC 3 and PSoC 5 through the suite of application notes available:

·         AN70698 - Temperature Measurement with RTDs

·         AN66477 - Temperature Measurement with Thermistor

·         AN75511 - Temperature Measurement with Thermocouples

In addition, you may be interested in:

·         AN60590 - Temperature Measurement Using Diode

·         AN65977 - Creating an Interface to a TMP05/TMP06 Digital Temperature Sensor

CP4 also provides an update to the I2C Master/Multi-Master/Slave component, with the addition of an I2C bus multiplexing feature, besides for some minor tweaks.

I have already installed CP4 on my system especially for the debouncer. Many of you may want one or more of these new components, or the more robust I2C. To get all of these, please download Component Pack 4.

]]>
Mon, 15 Oct 2012 09:49:35 -0600
New Getting Started Video for PSoC Designer http://www.cypress.com/?rID=70568 We've updated the PSoC Designer "Getting Started" video to show off some of the features of the new version 5.3. Join Ganesh Raja and see how easy it is to build your first project:

http://www.cypress.com/?rID=70468

Also, don't miss episode 2 of PSoC Today's continuing series on PSoC Designer 5.3:

http://www.cypress.com/?rID=70509

]]>
Fri, 12 Oct 2012 13:26:59 -0600
PSoC Designer 5.3 Available Now! http://www.cypress.com/?rID=70510 You may have noticed that Cypress Update Manager has notified you of a new PSoC Designer download available. We know a lot of Designer users want to hang on to their existing version of the software, so please be aware that installing PSoC Designer 5.3 will not impact the functionality of any previously installed versions of Designer. We think you'll like the improved the IDE, new user modules and bug fixes, but you can stick with your existing software as long as you like.

]]>
Thu, 11 Oct 2012 12:37:16 -0600
Getting Started With PSoC Designer http://www.cypress.com/?rID=70504 Here is a video that I created for Getting started with PSoC Designer 5.3. View it in 720p or 1080p for higher quality.

]]>
Thu, 11 Oct 2012 08:59:28 -0600
Creator Components Aren’t Just For Hardware http://www.cypress.com/?rID=70445 Often I write programs that can have multiple modes based on a constant or I just want to vary a parameter and rerun the program.  Since the schematic is the main view of the project, it is often beneficial to see the current constants or parameters right on the schematic.  This is done for components such as the DelSig ADC where the resolution of the first configuration is displayed.  This same concept can be used for software only constants as well.

The Constants component is a very simple way to display constants used by the firmware on the schematic.  Also this allows you to change firmware parameters without changing actual source code.  I have created an example component that allows the user to assigns names and values to up to four constants.  The component consists of just a symbol and a header file. Below is what the component would look like on the schematic.  The four constants have already been assigned names, DEBUG, LOOP, DELAY, and COUNT, as well as values.

Figure 1 Example Project Constants Component

 

The configuration is very simple.  The user simply assigns a name and value.  The header file is automatically generated.  The constants defined below will have the instance name pre-pended on the name.  For example, the LOOP constant name will be MyConstants_LOOP .

Figure 2 Configuration dialog of Project Constants Component

 

The generated header file would look like this using the configuration in Figure 2.

 #defineMyConstants_DEBUG   0

#defineMyConstants_LOOP   100

#defineMyConstants_DELAY   95

#defineMyConstants_COUNT   5

 

 

The constants can then be used throughout the firmware, just by including the MyConstants.h header file.  Below is an example of a code snippet that makes use of the constants provided in MyConstants.h.

 

 for(i = 0; i < MyConstants_LOOP; i++)

{

      LCD_Position(1,5);  
   
      LCD_PrintHexUint8(i);

      CyDelay(MyConstants_DELAY);

}

  

The same concept could be used for user created components for a specific application. For example a project phase component that displays on the schematic whether the project is in the release or debug phase.  The header file would contain the #define statements for the different mode.

 

 

Figure 3 Project Phase Component

 

Other similar components can easily be generated by the user, with just some simple basic knowledge of how to create components. For example if you wanted a waveform generator to change the waveform without changing code.

 

Figure 4 Application Mode Example

 

The header file would contain the following:

 

 #defineAppMode_Mode     2

#defineAppMode_SINE     0

#defineAppMode_SQUARE   1

#defineAppMode_TRIANGLE 2

 

 

The firmware would look at the AppMode_Mode constant to determine which waveform to generate, requiring no code changes.

This is just one simple trick to make a project more flexible and easier to change its operation without editing code.  It is also a good way to demo an application to a customer.  The user can then try different operations without editing code.  The MyConst component is generic and can be used with any project.  The ProjectPhase and AppMode components can easily be created by the user in a matter of minutes.

 

By Mark Hastings

]]>
Wed, 10 Oct 2012 16:56:55 -0600
Component Datasheets available in Chinese and Japanese! http://www.cypress.com/?rID=70295 Component datasheets are now available online for the Chinese and Japanese languages in addition to the English versions previously available.

You can view these translated datasheets by right-clicking on them in the Component Catalog and selecting Open Component Webpage or by clicking Help->Documentation and either Japanese or Chinese Language. Components are "virtual chips" represented by an icon in the PSoC Creator IDE and as such require the same amount of detailed information as discrete ICs about their implementation, APIs and theory of operation to enable you to take advantage of the capabilities they provide. Further, in a future release of PSoC Creator we will enable you to install the Chinese or Japanese versions of the component datasheets along with the tool simplifying access to this documentation. If you have any feedback along the way, please contact us at psoc_creator_feedback@cypress.com Translation screenshot
]]>
Mon, 08 Oct 2012 12:59:12 -0600
Vote for your favorite PSoC! http://www.cypress.com/?rID=40636 PSoC35

  

PSoC 3, PSoC 5 and PSoC Creator are finalists for EDN magazine's Innovation Awards. Vote at: http://bit.ly/bUkQhb . PSoC Rocks! #psoc

 

Heading to UNCC tomorrow for PSoC 3 workshops Friday and Saturday. If you are already going to IEEE South East CON come by and check us out.

Cheers

]]>
Mon, 08 Oct 2012 01:55:16 -0600
Starter Design Templates http://www.cypress.com/?rID=67148 This new feature is most important to new and inexperienced users because starting with PSoC Creator 2.1 you don't have to start with an empty design canvas any more. Once Creator is open go to "File -- New -- Project" in PSoC Creator 2.1. The tool offers 6 Starter Designs for PSoC 3 and PSoC 5. It is easier to write a program around a proven solution template, so try it out, become more productive faster. That is what PSoC Creator is all about; productivity, short time to market, easy hardware / software co-development and unique solutions.

Read more about Starter Designs in the Release Notes of PSoC Creator 2.1

]]>
Mon, 08 Oct 2012 00:45:40 -0600
New application Note: AN82250 - Introduction to PSoC PLD Design http://www.cypress.com/?rID=70089

Do you want to use the Programmable Logic Device (PLD) capability of PSoC, and don t know where to start? Or need to create your own custom digital components in PSoC Universal Digital Blocks (UDBs)? Then look no further.

AN82250: PSoC® 3 and PSoC 5 Implementing Programmable Logic Designs An Introduction provides you with an ideal start towards digital mastery with PSoC UDBs. By introducing the PLD architecture, and then walking through an example project, AN82250 teaches you how to create Verilog components in PSoC Creator. For those interested in advanced features of PSoC PLDs and PSoC Creator, these are touched upon in the additional reading material in the appendices.

This application note is actually the second of a three-part series of application notes written to help you learn and exploit PSoC s powerful digital capabilities. This series begins with the introductory AN81623: Digital Design Best Practices, continues with the PLD-centric AN82250, and culminates with the datapath-focused AN81256: Designing PSoC Creator Components With UDB Datapaths.

After reading AN82250, you will be able to implement moderately complex PLD-based components in PSoC Creator. AN82250 also provides a good gateway to building more complex Datapath-based designs dealt with in AN82156. So what are you waiting for? Download AN82250 now!

 

By Antonio De Lima Fernandes

]]>
Wed, 03 Oct 2012 09:25:42 -0600
Designing PSoC Creator Components With UDB Datapaths http://www.cypress.com/?rID=69959 New Application Note AN82156: 

AN82156 - Designing PSoC Creator Components With UDB Datapaths


Have you ever wondered how PSOC Creator manages to pack so much functionality into its components? Chances are the component uses the UDBs in PSoC 3 and PSoC 5 to perform calculations, comparisons, and data management.  The "secret sauce" in the UDBs is the datapath - a configurable 8-bit ALU designed to offload tasks from the CPU. The datapaths, when chained together across UDBs and/or combined with PLD logic, are powerful tools to have at your disposal. Understanding how to use them is an essential part of creating optimized PSoC 3 and PSoC 5 solutions.

AN82156 explains how the datapaths work and teaches you how to develop PSoC Creator components that use the UDB datapaths. It contains step-by-step instructions for creating your first datapath component. The appendices also review the Datapath Configuration Tool and the Verilog code it generates.


If you are planning to create a custom component, you should become familiar with the datapath and the advantages it can offer. AN82156, its example projects, and related on-demand training videos are available today from the Cypress.com website.

AN82156 Landing Page:

On-Demand Videos:

By Greg Reynolds

 

]]>
Mon, 01 Oct 2012 13:17:28 -0600
Introduction to PSoC 1 Architecture and Design Flow http://www.cypress.com/?rID=69919 Here is a video I made on introduction to PSoC 1 architecture and design flow.

]]>
Mon, 01 Oct 2012 00:43:04 -0600
PSoC on Kickstarter! http://www.cypress.com/?rID=69902 I was at the Open Source Hardware Summit in NYC this week where Jon Moeller introduced his freeSOC board. Find out more about the  freeSOC . If you like what you see, you can get one on his  Kickstarter  page.

]]>
Sat, 29 Sep 2012 16:36:54 -0600
Power Line Transceiver User Module Now Available on CY8C29xxx Devices! http://www.cypress.com/?rID=69848 We've just made power line communication easier than ever. With the today's release of PSoC Designer 5.3, you can now use the PLT (Power Line Transceiver) user module on any CY8C29xxx family device.

]]>
Fri, 28 Sep 2012 17:07:29 -0600
Brand New Device Catalog Coming http://www.cypress.com/?rID=69737 The next major improvement in Designer 5.3 is the device catalog. We ve completely rewritten how you select your device to make it quicker and easier to find the right PSoC for your project. You can now filter the list based on device characteristics (such as pin count, package or available peripherals) or by typing in a substring of your part number. In the image below, for example, the list has been filtered to show only the 28pin SSOP CapSensePlus parts (they support CapSense and 4 or more digital blocks).

On the right side of the window, you can see the pinout and list of supported user modules for the selected device.

Note for power users: if you know a portion of the MPN for the device you want to use, you can also just type it in the Find box in the top of the window, and the list will filter live as you type. You can also right-click a device in the catalog to add it to your favorites. These two methods are the quickest ways to select your device.

]]>
Wed, 26 Sep 2012 23:54:35 -0600
PSoC1 Getting Started Debugging - Part 1 - The Hardware http://www.cypress.com/?rID=68793 Here is a video I made for Getting Started debugging a PSoC1 project.  This is a two part series and in the first part, I have covered the hardware requirements.  The second part that covers the PSoC Designer part of the debugging will follow soon.

Application note "AN73212 - Debugging with PSoC1" provides all the information required to debug a PSoC1 project.

Happy Debugging!

]]>
Mon, 10 Sep 2012 04:15:04 -0600
PSoC Designer 5.3 Preview #1 - Auto-Routing! http://www.cypress.com/?rID=68512 (With Designer 5.3 just a month away, we've decided to start previewing the new features here on the PSoC Designer Blog (also displayed on the Designer Start Page). Every few days we'll tell you about another of the many new features in Designer 5.3. First up? Auto-routing!)

Tired of clicking on one interconnect row after another, trying to get all your signals to where they need to go? With Designer 5.3, you're done with that! Just shift+click on a block port and a number of glowing, golden lines will show you all the possible destinations. A second click on one of those highlighted locations and you're done! This works on analog routes as well as digital routes, block-to-block or block-to-pin. This will make Designer quicker for your new engineers to learn, and make life easier for the veteran users.

A final note: If you like the control of personally routing your signals, have no fear! We haven't removed any of the existing manual routing features.

]]>
Wed, 29 Aug 2012 21:53:00 -0600
PSoC 3 and PSoC 5 Interrupts http://www.cypress.com/?rID=68510 The interrupt controllers of PSoC 3 and PSoC 5 are very similar. If you expect the standard and very basic 8051 interrupt controller in the PSoC 3, be surprised. Programming the interrupts is simple by using the APIs within PSoC Creator. The Application Note AN54460 provides examples, additional information how to use the NVIC interrupt controller. It describes the differences and usage of edge triggered versus level triggered interrupts but also goes deeper into re-entrancy. That much information up front, PSoC 3 interrupts default to not re-entrant while PSoC 5 interrupts default to re-entrant. If you are planning to build your system schedule around interrupt priorities this is a must read Application Note!

]]>
Wed, 29 Aug 2012 19:42:25 -0600
45 Degrees of Hong Kong http://www.cypress.com/?rID=68509 Looking South East into Tsim Sha Tsui from Sky 100 building

The tall building in the center is the new Hyatt. My hotel is forward and to the right (you cannot see it really).

You are looking into Wan Chai on Hong Kong Island in the background.

Moving to a more directly Southern view. Looking at the famous Victoria Peak behind the Central area of Hong Kong Island

]]>
Wed, 29 Aug 2012 18:16:36 -0600
Digital Filters - Powerful features in PSoC 3 and PSoC 5 http://www.cypress.com/?rID=68365 As a new user to PSoC devices and PSoC Creator you might find it somewhat mind boggling to deal with Digital Filterprogrammable logic, programmable analog and on top of this with a sub processor capable of handling digital filters. Cypress offers numerous documents which explain how to handle digital filters as this is not a trivial task and there is also a previous Peripheral of The Month dealing with Digital Filters. The latest source of information is a series of PSoC Today shows where Dave and Kendall talk about the implementation used for PSoC 3 and PSoC 5 in PSoC Creator.

]]>
Tue, 28 Aug 2012 14:24:21 -0600
Getting the most out of the PSoC 3 and PSoC 5 Internal Oscillators http://www.cypress.com/?rID=68138 AN80248 "PSoC 3/PSoC 5 Improving the Accuracy of Internal Oscillators" application note was recently released. This application note is in response to many requests for PSoC Creator components that can trim the Internal Main Oscillator (IMO) and Internal Lo-speed Oscillator (ILO) at run-time.

Trimming simply means adjusting register values to achieve better accuracy be it for offset of a comparator or the frequency of a clock. For clocks, trimming means calibration with respect to a higher accuracy reference clock.

 

 

In the example project associated with the application note (schematic shown above), the IMO is trimmed with a 32 kHz crystal as reference and the ILO is trimmed with the IMO as reference. This enables the IMO to achieve near MHz crystal accuracy (±0.05%) at kHz crystal cost. The ILO performance is also considerably improved with a post-trim accuracy of ±6.5% with respect to the IMO. This means that the respective trim components improve ILO accuracy by a factor of 16, and the IMO accuracy by up to a factor of 140. Moreover, the accuracy can be easily verified on the character LCD (an example is shown below) with a simple API call to check IMO and ILO errors!

 

I really enjoyed developing these two components. Once you program the example project on the PSoC, zap it with freeze-spray or a heat gun and have fun watching the component correct the IMO and ILO frequencies!

In conclusion, having an accurate MHz clock is important for a wide range of applications, and particularly for high-speed communication. An accurate kHz clock also has many applications, especially in low power modes when MHz clocks are switched off.

The IMO and ILO Trim components really enhance the already-flexible clocking structure in PSoC 3 & PSoC 5, and I hope that they help you out in your specific applications as well. You can download the application note and the components at AN80248's landing page.

By Antonio De Lima Fernandes

]]>
Wed, 22 Aug 2012 17:48:12 -0600
Digital Design Best Practices http://www.cypress.com/?rID=68069 For me, one of the most fascinating aspects of PSoC 3 and PSoC 5 is the Universal Digital Blocks (UDBs). They greatly enhance the computational capabilites of PSoC 3/5, to the point where in many cases you can offload most if not all of the CPU's functionality, sometimes leaving the CPU with literally nothing to do after initialization. They contain as many as 24 8-bit datapaths for simple computations - add, subtract, increment, decrement, bitwise AND, OR, XOR, and shift.They also contain as many as 48 small PLDs which can be used to implement combinatorial logic and state machines. The UDBs add a whole dimension to MCU programming that may be new to many designers.

To help you learn about and effectively use the UDBs, we're launching a series of new application notes that cover the topic in great detail. The first one, AN81623, PSoC 3/5 Digital Design Best Practices, is intended to introduce designers, especially firmware engineers, to the field of digital design and how it is done with PSoC 3/5.  Forthcoming application notes will give detailed instruction on the use of PLDs, datapaths and other UDB features.

AN81623 gives a brief introduction to digital hardware design theory and then describes the digital subsystem in PSoC 3 and PSoC 5. It also describes best practices for digital design using PSoC Creator, and shows how to use static timing analysis (STA) report files.

So this application note should help you more effectively use the digital components available to you right now - Counter, Timer, PWM, Shift Register, Quadrature Decoder, and more.  And with the Lookup Table (LUT) component you should easily be able to build simple state machines. Then watch for more advanced application notes, coming soon, that will show how to implement your own complex digital designs in the PSoC 3/5 UDBs.

To download this new application note "Digital Design Best Practices" click on this link, AN81623.

By Mark Ainsworth

]]>
Tue, 21 Aug 2012 17:25:33 -0600
PSoC in Japan http://www.cypress.com/?rID=67925 On Friday, I was in Tokyo meeting with Professor Renji Mikami. In addition to managing the CUA program in Japan, Mikami-san teaches over 180 students per year about PSoC at Meijo University.

Professor Renji Mikami

 

View of Tokyo from Cypress Japan office

I will be presenting a PSoC workshop at TALE 2012 being held at Hong Kong Polytechnic on Monday.

Until Then,

C. U. Around

]]>
Sat, 18 Aug 2012 22:08:29 -0600
Not just another pretty Waveform Generator http://www.cypress.com/?rID=67707 The WaveDAC8 component and application note (AN69133) was released about a year ago.  I found that many people see the title Easy Waveform Generation with the WaveDAC8 Component and think that it just generates a simple waveform.  The component is far more flexible than that.  The application note AN69133 contains four example projects to show the flexibility and ease of use.  Granted the first project generates a simple sine wave but the other three projects go further. 

The second project, 2_WaveDAC8_TwoWaves shows how you can alternate between two waveforms and easily switch right at the end of each wave.  The project schematic is rather simple, and the source code can t get much simpler.

Project source code.


 

#include<device.h>

void main()

{

 /* Initialize WaveDAC8 */

   WaveDAC8_1_Start();

   for(;;);  /* Loop forever */

}


This is the waveform output, notice it is not just a simple sinewave.

The third project "3_WaveDAC8_UART_FSL" shows how to generate a simple FSK output when you combine the WaveDAC8 and UART components.  Note the simplicity of the schematic below.  By changing the two clocks you can generate any two frequencies you want.

The scope screen shot below shows the output of the UART and the WaveDAC8 output.

Again the code can t get much simpler to send out Hello World .


#include<device.h>

void main()

{

   /* Initialize WaveDAC8  */

   WaveDAC8_1_Start();

   UART_1_Start();  /* Initialize UART */

   Clock_1_Start(); /* Start both clocks */

   Clock_2_Start();

   for(;;)

   {

      /* Send "Hello World"  */

      UART_1_PutString((uint8 *)"Hello World");

      CyDelay(250);   /* Wait 500 mSec */

      CyDelay(250);

    }

}


The forth project was probably the most fun.  Who doesn t enjoy dialing their phone with their own custom made PSoC controlled DTMF dialer.   This project used two WaveDAC8 components, a couple of counters, an opamp to buffer the DAC outputs, and a single clock.

This project demonstrates another cool feature of PSoC.  Since the WaveDAC8 component uses standard internal DACs to generate the output,  connecting the two DAC outputs together is not a problem.  When the DAC is in the voltage DAC mode, it is simply a current DAC with an internal resistor.  Now the coolest thing about this project is that it gives you a good chance to use that FFT feature in your digital scope.  I had the DTMF dialer project dial the sequence 159D which causes all of the eight tones to be exercised.  Using the Tek MSO 2024 FFT mode I can see the frequency spectrum of the output, cool eh?

 

You can find the full application note, example projects, and WaveDAC8 component library on the AN69133 Application Note web page. The application note contains details about the design of the WaveDAC8 and information on sampling theory.

 

So just remember, although the WaveDAC8 maybe pretty, it has some brains as well.  Since it does all it's work with DMA, it does not require any of the valuable PSoC 3 or PSoC 5 CPU cycles.

By Mark Hastings

]]>
Tue, 14 Aug 2012 12:51:43 -0600
More on waveform synthesis http://www.cypress.com/?rID=67647 The second Filter Wizard article on waveform synthesis schemes for the DFB is up on EE Times Europe now: http://www.analog-eetimes.com/en/more-direct-waveform-synthesis-mr-chebychev-helps-out.html?cmp_id=71&news_id=222903800.  In the article I mention polynomial evaluation stuff in passing, before using an alternative method.  But for quite a few applications, the DFB can be a good engine for rapid calculation of polynomials using Horner's method.  Provided the error bounds imposed by 24bit fixed-point arithmetic are appropriate, this is way faster than doing it in a CPU.  The iterative method is reminiscent of FIR filter execution and leverages the addressing ability of the DFB hardware.  In the end, for the music synthesis task, I opted for... but why give it away - go check out the article!  best / Kendall

]]>
Mon, 13 Aug 2012 04:48:02 -0600
PSoC Designer 5.3 Coming Soon! http://www.cypress.com/?rID=67625 Our software team has been hard at work on PSoC Designer 5.3, and it will be ready next month! This release will have more new features and user modules than anything you've seen in over four years! Stay tuned for more details.

]]>
Sun, 12 Aug 2012 17:12:49 -0600
And the winner of the solution contest is ..... http://www.cypress.com/?rID=67600 If you have not done so lately it is probably about time to visit the Cypress Developer Community again. This community has lots of great members ready to help when questions come up. Recently Cypress executed a couple promotions, giving development kits out as prices. One of the promotions was a solutions contest. We asked the forum members to post their unique to PSoC solutions and create a short video. Check out the winners who put in some great applications. HLI's contributions are highly sophisticated and they are the results of countless evening hours. DiodeDan's contribution is an analog multiplexer involving analog switches and DMA. Have fun with the videos and take it as an invitation to show off your own designs because you can do things with PSoC that you just cannot do with a regular microcontroller!

]]>
Fri, 10 Aug 2012 15:22:31 -0600
AN54439: PSoC 3 and PSoC 5 External Crystal Oscillators Updated http://www.cypress.com/?rID=67353 AN54439, our PSoC 3 and 5 ECO app note, just received a massive overhaul.

 

  • The update includes:
  • A description of the updates to the PSoC Creator 2.1 ECO interface.
  • Descriptions of ECO performance metrics, and how to measure them.
  • An "Advanced Topics" section for ECO experts.
  • A table of recommended MHz resonators with manufacturer specifications, reccomended configurations and typical performance metrics. (Shown below)

Check it out now, and let us know what you think in the comments!

By Max Kingsbury

]]>
Mon, 06 Aug 2012 18:33:17 -0600
ASEE International Forum http://www.cypress.com/?rID=67245 I attended the innaugural ASEE International Forum in June and there were professors from 20 different countries in attendance. It was held at the Hotel Pacio Del Rio in San Antonio Texas.

]]>
Fri, 03 Aug 2012 12:16:32 -0600
Your PSoC Designer Questions Answered! http://www.cypress.com/?rID=67196 We've compiled a list of frequently asked PSoC Designer questions and provided answers to each one. To get answers, please check out:

http://www.cypress.com/go/psocdesignerfaq

]]>
Thu, 02 Aug 2012 17:08:20 -0600
New to PSoC Designer? http://www.cypress.com/?rID=67185 Have you just downloaded Designer and want to climb up the learning curve? Please check out our online training video, where we create a project completely from scratch, including both hardware config and firmware elements:

http://www.youtube.com/watch?v=GrbbYZXRaqs&context=C3ea8e43ADOEgsToPDskJu3ydARmtq8n9dWhPWGn7L

]]>
Thu, 02 Aug 2012 13:14:45 -0600
Announcing Qualified PSoC 3 JTAG Programming Support Through Goepel: http://www.cypress.com/?rID=66955 Cypress Semiconductor has completed the JTAG programming qualification for Goepel Electronic (http://www.goepel.com/). The qualification covered all electrical requirements, algorithm support, and verification of multiple device packages. Cypress has qualified the 48-SSOP, 48-QFN, 68-QFN, and 100-TQFP packages.

The vendor has released their software update, CASCON GALAXY 4.6.0a 1266 and VarioTAP model libraries, which contains JTAG programming support for the entire PSoC 3 device family. All testing was conducted on the SCAN FLEX SFX/ASL1149 programmer. Prior to programming PSoC 3 devices via JTAG or through a JTAG chain, users will need to ensure they have the latest Cypress supporting software via Goepel and the correct Goepel JTAG programmers.

For more information on device programming capabilities and software pricing contact the Goepel Sales office:
For more information on PSoC programming, visit the PSoC programming landing page.
If you need additional device support please file a tech support case.

]]>
Fri, 27 Jul 2012 12:24:29 -0600
Getting started with PSoC 3, a comprehensive guide http://www.cypress.com/?rID=62777 If you ever searched for a getting started document that includes an introduction to CreatorAN54181, setting up your development kits and how it all works together, you just found it!  The Cypress Application Note AN54181 covers all aspects with great detail.

]]>
Fri, 27 Jul 2012 07:39:54 -0600
More Good “Analog” Stuff in PSoC Creator 2.1 http://www.cypress.com/?rID=66715 PSoC Creator 2.1 has just been released and has even more good stuff to help the user design and debug his or her application.  I know that many of you at times wanted more information on just how your signal was routed from a GPIO pin to the DelSig ADC or how an internal signal was connected between a VDAC and Comparator.  Well, wait no more!  Now you can look at any analog route, lock it down and even change it if you have a preference.  Even better, you can do all this graphically.  Here are a couple slides that I created a few months back for an internal training class.  This should be just enough to peak your interest about PSoC Creator 2.1. 

The following is an actual screen shot of the Analog Device Viewer/Editor.  If you look close, note that all the resources used, including routes are highlighted.  You can click on the nets on the right or the graphical routes on the left to examine the nets and routes.

 

Example Circuit

Below is an example circuit and the analog viewer s representation.  Note how AMux_1 consist of the light blue traces.  It is easy to understand just how the signals are routed and exactly the resources used to create the circuit, no more guess work!

 

Lock down signals and component placements graphically

Many of you at times wish you could easily lock down blocks that are used for a specific component implementation.  You may have learned to use the constraints editor but found it a real pain trying to remember the syntax.  I know I did.  Now you can graphically lock down or move blocks right in the analog editor.  I can almost hear the cheers in the background from you seasoned users.

 

Analog Mux and Simulation

Ever asked yourself I wonder exactly how my analog mux is implemented?   I know I have.  Now you can go into the tool and connect the analog mux one channel at a time and see the actual signal path.  No more laying awake at night wondering if your signal took AGL[6] or AGL[7] on its way home to the ADC.

 

View analog switch names, registers, and masks.

This feature is for the real hard core guys that want to know the actual register and mask to control each analog switch.  Now just by hovering over a switch you can get all that information.  No more digging into that big 1000+ page document to try and figure out how to control that one switch.

Measure typical route resistance with an Ohm Meter

This is another cool tool.  The Ohm Meter tool lets you measure the route resistance between any two endpoints of a signal.  Of course the measurement is not exact, but it gives you a ballpark number of what to expect. ( Please ignore the significant digits of the ohm meter reading in the figure below, it has been rounded off in the current version.)

 

 

 

Toggle analog switches interactively in the debugger

This feature is really powerful.  While in the debugger, you can view the state of almost any switch.  The only ones you can t monitor is the state of any switch that is controlled by hardware, such as the hardware mux.  All other analog switches that are part of a route, or controlled by software can be examined interactively.  So each time you halt the operation in the debugger, you can actually view the current state of the switches.  But wait, there s more!  You can actually toggle the state of each switch as well.  This means you can debug any route you want and interactively see what happens when you open or close a switch.  I often use a spare route and pin to internally probe signals.  Yes you heard me, this allows you to probe internal nodes while the chip is running.  If you don t like this feature, you shouldn t call yourself an engineer!

Set breakpoints when a switch opens or closes

OK one more amazing feature.  Just think of being able to click on an analog switch and set a breakpoint when that switch opens, closes, or just changes states.  Yes not kidding!  I dare you to find another vender s tool and MCU that will let you do that!

I hope this was just enough information to give you a taste of some of the new features in PSoC Creator 2.1.  So don t delay, go download PSoC Creator 2.1 and play with some of the new analog debug and design features.   If this isn t enough there are even more features to help you get your design to market faster.  You can download the new feature packed PSoC Creator 2.1 here.  So don t delay, go checkout all the good stuff!

 

By Mark Hastings

 

 

 

 

 

 

]]>
Tue, 24 Jul 2012 19:17:15 -0600
Wobbly wires in PSoC Creator 2.1 http://www.cypress.com/?rID=66710 PSoC Creator 2.1 is out on the streets today. And it has wobbly wires (the engineers call it rubber-banding)! When you move something around in a schematic the wires don't break any more. The tool re-draws the wires for you so you don't lose the connections between components. It saves a lot of time when you're cleaning up the design. It's great to finally have wobbly wires because a lot of you have been asking for the feature for longer than I care to admit.

I recommend installing 2.1 today (http://www.cypress.com/go/psoccreator) and trying it out. Remember that you can still do breaking moves by presssing the Control key when you move things around (and there is a Tools->Options parameter to reverse the behavior if you prefer it the other way around).

Happy wobbling!

]]>
Tue, 24 Jul 2012 16:32:14 -0600
Getting started with PSoC 5 http://www.cypress.com/?rID=63017 A couple days ago I posted the guide for PSoC 3, here we go for PSoC 5. If you are new to PSoC 5, this is a must read PSoC5-getting started imagedocument. Many questions are answered before you have to ask them. Whether you are using a PSoC CYC8KIT-001 or a CYC8KIT-050, the steps needed to get the "Blinky" going are outlined. There is also a more comprehensive project, an ambient light/dark detector, included in Appendix B. Our engineers have spent weeks to create and polish this Application Note AN77759, and it can save you many hours on your way to a successful project with PSoC 5!

]]>
Tue, 24 Jul 2012 12:14:50 -0600
PSoC Creator 2.1 is available for download from the Cypress website http://www.cypress.com/?rID=66643 The early access program has ended as there is no need for it any more. PSoC Creator 2.1Creator 2.1 graphics is now officially available for download to all customers! The wait is over and we highly recommend for all users to upgrade to this new version. Many of you have asked us for rubber banding or flexible wires, which ever you prefer. We listened to your input and improved PSoC Creator in many places. It is easier to use than ever before, performance of components has significantly increased and it can be installed in parallel to Creator 2.0. If you are close to production or just want to be extra cautious, just keep Creator 2.0 for now until you have verified there are no problems.

No let us have some fun with the new version of PSoC Creator.

]]>
Tue, 24 Jul 2012 11:42:03 -0600
Highly flexible SPI Master component http://www.cypress.com/?rID=58563 The SPI interface of PSoC 3 and PSoC 5 offers 3-16 bit data width, up to 9 Mbps data rate and a very flexible buffer size from 1-255 bytes or words to offload the CPU during data transfer. The SPI can be configured through the API and does not require detailed knowledge of the registers.

]]>
Fri, 20 Jul 2012 02:38:59 -0600
Digital Filter - Hardware supported implementation with PSoC 3 and PSoC 5 http://www.cypress.com/?rID=60347  

The PSoC 3 and PSoC 5 hardware filtering engine can deliver fast, high order, high accuracy filters. The Digital Filter Block (DFB) works seamlessly with the on-chip DMA and Interrupt logic. More detailed information is provided in the DFB Data Sheet. You can configure digital filters on one or two data stream.

During March and April, Cypress offers world-wide workshops to give engineers a kick-start with filter design the PSoC way.

Please check our Filter Wizard Blog and our special site for Digital Filters too. 

Digital Filter
]]>
Fri, 20 Jul 2012 02:29:05 -0600
Component Pack 2 adds an Assembler for the Digital Filter Block http://www.cypress.com/?rID=60757 This 2nd component package will add new features to the installed PSoC Creator 2.0 but WILL NOT change the PSoC Creator tool itself. A project created with PSoC Creator 2.0 will not be modified through the installation of a component pack!

The new component of this release is:
     Digital Filter Block (DFB) Assembler
Component-packThe updated and improved components of this release are:
     USB FS adds support for communication with an external MIDI device
     SPI master adds a high speed mode, doubling the max. baudrate to 18 Mbps

Detailed release notes; download requires to be logged in with your Cypress account

The fast option for a component update using the Update Manager takes approx. 2 Minutes with a high-speed internet connection.
You can find the Update Manager under: All Programs - Cypress - Cypress Update Manager
This program will guide you through the component update process.

]]>
Fri, 20 Jul 2012 02:26:36 -0600
Show us your solutions and a new development kit can be yours http://www.cypress.com/?rID=66390 Check out our new promotions. PSoC is so versatile and can be used for so many applications, it is unbelievable. Creator users are at the forefront of discovering new solutions every day, using the digital and analog programmability of PSoC. Please share your solution with the PSoC community. Find more information about the promotion. If you developed a new component to get to your solution, you will get even more visibility in the Community Components forum. I am so sure there are many solutions and components out there that just wait to be promoted and reused by other friends of PSoC. Don't be shy, give it a try!

]]>
Wed, 18 Jul 2012 15:33:40 -0600
Cypress PSoC Forums: Free Development Kits for Good Posts to be continued http://www.cypress.com/?rID=64882 Customers who are interested in PSoC 3 and PSoC 5 will be given the opportunity to win more Free Development Kits. Stay put and watch the forum to find out how you can be one of the next winners.

The development kits are once again the CY8CKIT-030, CY8KIT-050 and CY8CKIT-001 kits. Check out the Cypress Store for details on the kits. Please register with the Cypress Developer Community (CDC), if you haven't done so already, and start posting new topics on the PSoC 3 and PSoC 5 forums

Share your thoughts, ask your questions, win a develoment kit!  Be an active member of the CDC.

]]>
Sun, 01 Jul 2012 19:05:28 -0600
Working on a limited power budget? There are many ways to save power. http://www.cypress.com/?rID=64878 Asking 3 engineers what they expect from a low power device, you will most likely get 3 different answers.AN 77900 There are so many parameters that need to be watched. Low power consumption while running in active mode, low stand by current, fast wake up and more critical components are important when planning for the power supply, the battery, the heat dissipation, simply the system power concept. The Application Note AN 77900 looks at these aspects and helps you making the best decisions for your system. A must read for designers of battery powered applications and system architects.

]]>
Sun, 01 Jul 2012 16:34:58 -0600
Videos help you to master PSoC Creator: Enabling the Analog Device Viewer http://www.cypress.com/?rID=64877 PSoC Creator performs many functions and you could compare it to a digital camera with intelligent automatic exposure settings. PSoC Creator routs all signals and does a great job at optimizing for time and placement. Sometimes there are (particilarly analog) routes, an expert wants to see or modify. With the analog device viewer in PSoC Creator 2.0 you get a tool to look at details. This is a tool for the advanced user with analog background. This video shows how to enable the analog device viewer.

]]>
Sun, 01 Jul 2012 16:18:40 -0600
PSoC Today is picking up steam, watch videos about the ARM architecture http://www.cypress.com/?rID=64844 Have you watched PSoC webisodes lately? If you are new to the ARM check out the webisodes "ARM Architecture" Parts 1-3. CM3Dave interviews Ata Khan, Cypress Vice President and ARM guru. Learn that 32-bit cores can run on smaller code than 8-bit, how it is possible to use less power with a 32-bit and much more. Curious? Be our guest and watch PSoC today.

]]>
Sun, 01 Jul 2012 15:56:10 -0600
Peripheral of the month - Fan Controller http://www.cypress.com/?rID=64842 The Fan Controller component enables designers to quickly and easily develop fan controller solutions using PSoC. The component is a system-level solution that encapsulates all necessary hardware blocks including PWMs, tachometer input capture timer, control registers, status registers and a DMA controller reducing development time and effort.

The PSoC Fan Controller Component can control up to 16 independent 4-wire DC fans. Because the design is done in hardware, the cooling system will run even when the CPU is in a sleep mode or better even, the CPU can handle other real-time critical events while the fans are controlled via a hardware control loop.

]]>
Fri, 29 Jun 2012 18:29:01 -0600
PSoC 3/5 Low-Power Application Note Released http://www.cypress.com/?rID=64726 Power consumption can mean the difference between a good idea and a great product. The proliferation of portable electronics and the growing focus on green technology has increased the importance of reducing a design's power consumption. The PSoC 3 and PSoC 5 low-power modes allow you to reduce average current draw without limiting functionality, especially when implemented with other power-saving features and techniques. A new application note, AN77900 (http://www.cypress.com/?rID=64554), has just been released to help you become familiar with the power-saving features available in the PSoC 3/5 devices.

AN77900 is available on the Cypress website today, contains:

  • An introduction to the low-power features of the PSoC 3/5 devices.
  • Information on reducing power consumption in Active and Alternate Active modes.
  • Examples, tips, and tricks for success with the Sleep and Hibernate low-power modes, including example code.
  • Descriptions and explanations of the registers and API associated with low-power operation.
  • Step-by-step instructions for performing accurate power measurements using the Cypress DVK boards.

Example projects for both the PSoC 3 and PSoC 5 are also included with the application note:

  • Low-power modes and wakeup source examples for PSoC 3.
  • Low-power modes and wakeup source examples for PSoC 5.
  • A simple example project with no low-power optimizations.
  • The same simple example using low-power techniques.

In addition to the application note and example projects, we're pleased to be able to provide you with a spreadsheet that can be used to perform rough "back of the napkin" type estimates for the average power consumption and battery life of your design. The spreadsheet lets you use up to ten different PSoC 3/5 configurations, with selectable settings for various subsystems and components. Based upon those configurations, the spreadsheet will calculate the average power consumption and show an estimated battery life.

AN77900 is a good starting point for anyone who wants to become more familiar with the PSoC 3/5 low-power features. As with all our documentation, we're happy to hear back from you regarding any additional topics that you'd like to see covered in this application note.

By Greg Reynolds

]]>
Fri, 29 Jun 2012 12:28:51 -0600
New System Management App Notes Online http://www.cypress.com/?rID=64300 Cypress apps engineers have worked out a number of new system management solutions using PSoC. Please see the following app notes for more details.

AN78646 - Integrated Power Manager using PSoC® 1

AN78692 - PSoC® 1 - Intelligent Fan Controller

AN78737 - PSoC® 1 - Temperature Sensing Solution using a TMP05/TMP06 Digital Temperature Sensor

AN78920 - PSoC® 1 Temperature Measurement Using Diode

]]>
Mon, 18 Jun 2012 10:05:26 -0600
Component Pack 3 ready for download http://www.cypress.com/?rID=64045 Power Monitor The Power Monitor is used to monitor the voltage and current for up to 32 DC-DC power converters. The component sequences through each of the measurements and determines the voltage or current using the Delta-Sigma ADC. User-defined warning and fault limits are monitored and generate a hardware indication when any of the maskable conditions occur.
Fan Controller v2.0 The 2.0 version of the Fan Controller is the first production version of the component. The Fan Controller is used to control up to 16 4-wire brushless DC fans using PWM. The fan speed can be controlled by firmware or by using a closed loop fan control implementation directly in hardware.
The fast option for a component update is using the Cypress Update Manager and it takes approx. 2 Minutes with a high-speed internet connection.

You can find the Update Manager under: All Programs - Cypress - Cypress Update Manager
This program will guide you through the component update process.

To download the full installation file of Creator with the new Component Pack or check out the release notes, visit the dedicated landing page.

]]>
Mon, 11 Jun 2012 12:50:01 -0600
Temperature Sensing and Control http://www.cypress.com/?rID=64041 PSoC provides complete high performance temperature sensing and control solutions for RTDs, thermocouples, thermistors, temperature diodes, IC temperature sensors, other analog output temperature sensors and digital output temperature sensors. Using on-chip current and voltage sensor drive, DAC and PWM outputs for control, LCD drive, key pad or touch screen interface, power management and USB or RS-232 communication it is a true system-on-chip.Find more information on the Temperature Sensing and Control website

]]>
Mon, 11 Jun 2012 11:31:53 -0600
CY8CKIT-025 for Diode Temperature Measurement http://www.cypress.com/?rID=64043 The CY8CKIT-025 PSoC® Precision Analog Temperature Sensor Expansion Board Kit (EBK) includes 5 temperature sensors andCY8CKIT 025 examples projects to make temperature sensing and control design quick and easy. This kit enables the designer to measure temperature accurately to a resolution of 0.1º C. It is designed for use with the CY8CKIT-030 PSoC 3 Development Kit, the CY8CKIT-050 PSoC 5 Development Kit and the CY8CKIT-001 Development Kit.

]]>
Mon, 11 Jun 2012 11:20:53 -0600
PSoC 3 Kit Upgrade Program http://www.cypress.com/?rID=61994 Our way to say Thanks for being an early adopter of PSoC®!

The kit upgrade program allows customers who own development kits with PSoC 3 ES2 silicon to get new kits with production version PSoC 3 silicon at no cost. The kits that qualify include:  PSoC 3 First Touch Kit (FTK), PSoC Processor Module Kit,  and PSoC Development kit (DVK).

Also, Customers who wish to perform Power Cycle programming but have the MiniProg3 revision *A (CY8CKIT-002) can upgrade to the MiniProg3 revision *B for free.

More details on the upgrade program..

]]>
Tue, 22 May 2012 01:00:13 -0600
Creator Start Page in Chinese, Japanese and Korean language http://www.cypress.com/?rID=61574 Cypress has added language support for Chinese, Japanese and Korean on the PSoC Creator Start Page. This will help to navigate through Creator information easier and faster. 

]]>
Mon, 21 May 2012 01:08:42 -0600
Development Kit for Thermal Management Applications http://www.cypress.com/?rID=63192 Thermal management and fan control is an excellent application space for PSoC 3 and PSoC 5CY8CKIT-036 picture. This development kit CY8CKIT-036 will reduce time to market considerably. It plugs into either one of the PSoC 3 and PSoC 5 development boards and comes with reference code in our component library. Developing a fan control application has never been easier or faster!

]]>
Wed, 16 May 2012 19:30:38 -0600
China Ministry of Education http://www.cypress.com/?rID=63159 Last Month I visited Beijing for the Chinese Ministry of Education's Conference where I gave one of the key notes

I was also fortunate enough to visit the summer palace while in Beijing

The 17 Arch bridge on lake Kunming

And of course the golden arches ;<)

C. U. Around

]]>
Tue, 15 May 2012 16:44:10 -0600
Empty Nest Syndrome http://www.cypress.com/?rID=63120 I travel a fair amount. Hence my car is parked in various parking lots for periods of up to two weeks. I was checking my oil last week before a drive to Cal Poly in San Luis Obispo. Whne I opened my hood this is what I found ...

What kind of bird brain decides to build a nest on an engine block?

C. U. Around

]]>
Mon, 14 May 2012 15:57:09 -0600
Temperature measurement and control Part1 http://www.cypress.com/?rID=63058 Measuring temperature is important for many embedded applications. Effects like increased leakage, lower peak performance, Thermometerall the way up to damaging the hardware of the system are possible side effects if the temperature is out of control. Cypress has published a number of Application Notes describing different methods to measure temperature. The focus today is measuring using a diode, an internal iDAC and the high resolution ADC. Application Note AN60590 shows the details.

]]>
Mon, 14 May 2012 12:31:31 -0600
Cypress at the Embedded World 2012 http://www.cypress.com/?rID=59462 Meet Cypress at the Embedded World in Nuremberg from February 28 through March 1

The Embedded World is the most important embedded event in Europe and more than 19000 visitors were there in 2011.
Cypress will show multiple applications using PSoC 3 and PSoC 5 devices. One is a quad-copter that will be fun to watch. Come an
d see us in Hall4A-106. The booth will be manned with highly knowledgeable engineers to answer any questions you might have.
Embedded World 2012
]]>
Thu, 10 May 2012 12:05:31 -0600
1-day free Creator workshops in the China, Europe, Japan, South Korea and the USA http://www.cypress.com/?rID=60633 This day long workshop will give you hands-on experience using and developing PSoC 3 and PSoC 5 solutions utilizing Cypress's PSoC® Creator Software development environment and the PSoC Development Kit (CY8CKIT-030 or CY8CKIT-050). In addition, this workshop will introduce PSoC Digital Filtering techniques using design examples made with PSoC Creator.
Detailed information about dates, the agenda and how to enroll.

]]>
Thu, 10 May 2012 12:03:41 -0600
More about Filters http://www.cypress.com/?rID=61195 Additional information about the Filter component looking into the FIR side.

Filter pictureWhat defines the FIR filter? A two part introduction into coefficient values from our Filter Wiz Kendall.
1.
Analyze your FIR filter
2. Synthesize your FIR filter. 

If you want to tap deeper into the brain of a Filter Wiz, check out Kendall's Filter Blog

]]>
Thu, 10 May 2012 12:02:02 -0600
PSoC goes WebTV http://www.cypress.com/?rID=61208 PSoC today bannerWhy not combining work and pleasure if possible? Get valuable information about PSoC Designs while being entertained in PSoC today. Have fun and learn!

]]>
Thu, 10 May 2012 12:00:58 -0600
PSoC 5 and Creator 2.0 Thermal Management Application at Design West http://www.cypress.com/?rID=61257 This brief video shows how a PSoC based solution can control temperature and fans without the CPU even running. Interview-ARM-ESC2012

MCUs CAN'T. PSoC CAN interview at the ARM booth during Design West in San Jose, 2012 as posted on Youtube.

]]>
Thu, 10 May 2012 12:00:16 -0600
Go to the Head of the Class - PSoC Classroom Online http://www.cypress.com/?rID=62925 Walk through five sample projects with us in the PSoC Classroom. These progressively more advanced walkthroughs will help you better understand analog and digital user modules, API calls and more! Check out:

http://www.cypress.com/?rID=58117

]]>
Tue, 08 May 2012 17:08:16 -0600
PSoC 3 8051 Code Optimization http://www.cypress.com/?rID=50833 Have you noticed that sometimes your C code for the PSoC 3 8051 can use up a lot of flash memory?  If you structure your C code to use some unique 8051 features you can use a lot less flash and your code will execute faster too.  And, you don’t have to write any 8051 assembler, you can do it all in C.

 

For more information about 8051 Code Optimization, see application note AN60630.

By Mark Ainsworth

]]>
Mon, 07 May 2012 07:58:20 -0600
New Debugging App Note Available http://www.cypress.com/?rID=62775 Interested in learning more about the debugger in PSoC Designer? Cypress Apps Engineers have put together a great App Note to guide you through debugging your PSoC. You can find it at:

http://www.cypress.com/?rID=57555

]]>
Fri, 04 May 2012 18:09:08 -0600
FIRST Robotics http://www.cypress.com/?rID=62455 Meet me in St. Louis for the FIRST Robotics FInals! www.usfirst.org

 

 

C. U. in St. Louis

         or

C. U. Around

]]>
Wed, 25 Apr 2012 14:19:59 -0600
PSoC 1 SC Block Applications - Precision Full Wave Rectifier http://www.cypress.com/?rID=61340 I made a video showing how a precision full wave rectifier may be created in PSoC 1 by configuring a Switched Capacitor block as a modulator.

Execercise to the User:

  1. Set the ASign parameter of the SCBlock to "Positive" and observe the result
  2. Set the ACap value to 8, 24 and 31 and observe the result.
  3. Set the Polarity of the Comparator to Negative and observe the result.

For more details about Switched Capacitor blocks, refer below application note.

AN2041 - Understanding PSoC 1 Switched Capacitor Analog Blocks

 

The project file for the video may be found below.

PSoC Designer Project - Precision Rectifier

]]>
Thu, 12 Apr 2012 21:11:55 -0600
Running code in RAM using PSoC5 and the GCC compiler http://www.cypress.com/?rID=61932 Firmware engineers are always looking for ways to write more efficient code.  Often this means executing functions as fast as possible.  One way to improve the execution time of your code when developing for PSoC5 is to place your code into RAM.

Placing code in RAM using GCC

Gcc supports the use of the __attribute__ keyword which allows you to apply special attributes to your code.  There are many attributes you can apply; the one we are interested in is section .

The section attribute places code in a specific memory section as defined in the cm3gcc.ld file.  RAM is defined as the .data section.  So, for example, if you wanted to place a function in RAM the code for the function prototype would look like this:

void foo (void) __attribute__ ((section(".data")));

This method can be used for variables as well.

Interrupt Example

A great use of this feature is to place interrupt handlers in RAM for faster execution time.  If you define your own ISRs you can do this by placing __attribute__ ((section .data ))) after the ISR prototype like a normal function declaration.

If you are using the Cypress generated ISR code you can add a declaration statement to the section of code at the top of the .c file which is provided for the user to include modules and declare variables.

Here is an example:

// place interrupt in SRAM to improve speed

externCY_ISR_PROTO(isr_1_Interrupt) __attribute__ ((section(".data")));

for an isr named isr_1.

Linker Warning

When you place code into the .data section you will get the following warning:

Warning: ignoring changed section attributes for .data

This is because the .data section does not, by default, expect to have code attributes associated with it.  In this case you can ignore the warning, because you intend to add attributes to the .data section.  Even though the warning indicates that the linker is ignoring your attribute, it will still place your code in RAM.  You can verify this in the map file by checking which section your code has been placed in.

To clear this warning you would need to modify the cm3gcc.ld file.  The best approach would be to add a custom section located in RAM for you code.  However, since this is Creator generated source code, changes you make to this file will be overwritten when generating the project APIs.

RAM vs Flash execution

The following table provides some sample data taken to show the code execution speed from flash vs RAM.  There is about a 30 % improvement in execution time when executing out of RAM vs flash.  This data was taken by toggling a pin in an ISR with a varying amount of code, measured in bytes.  The Cortex M3 was running at 24 MHz. There was no difference in the time it took to get into the interrupt.

Code Size (bytes)

Flash Execution Time

RAM Execution Time

% Difference

400

9.8 usec

7 usec

- 29 %

800

19.4 usec

13.4 usec

- 31 %

1600

38.4 usec

26.8 usec

- 30 %

3200

76.8 usec

53.4 usec

- 30 %

 

By Keith Mikoleit

]]>
Thu, 12 Apr 2012 16:42:11 -0600
Are you going to NAB? Don't miss the Cypress FX3 demo in action by Nuvation http://www.cypress.com/?rID=61710 Are you going to NAB show this year - Please visit Nuvation's booth to witness uncompressed HD video delivered through Cypress FX3 USB3.0 pipe at NAB

Six years back, I was an Applications Engineer handling broadcast video customers who were using Cypress HOTLink family of SERDES devices in broadcast video networks. I loved going to the NAB show (http://www.nabshow.com) since the entire food chain of the industry (from component vendors to content creators) gather to show case their latest technology related to broadcast video.  

One of the video applications where the new Cypress EZ-USB FX3 differentiates itself is Broadcast Video. The FX3 device is a very efficient and cost-effective way to deliver uncompressed HD video from a professional broadcast studio network to a PC-host via a SuperSpeed USB3.0 link. USB3.0 is a straightforward way to bring in uncompressed HD video from the studio network into a PC-host without a lot of hardware. For example, the Cypress EZ-USB FX3 can used in conjunction with FPGAs to bridge between other studio-video formats like SD-SDI and HD-SDI to USB3.0.

At NAB 2012 (http://www.nabshow.com) held from April 16-19th, Nuvation, a platinum design partner certified for Cypress EZ-USB FX3 will be showcasing new USB 3.0 technology based on Cypress Semiconductor s new EZ-USB FX3 device.  The NAB show is a large convention of the entire video broadcast industry held yearly at Las Vegas. Nuvation s demonstration will show uncompressed HD video being sent into a PC for display and processing at high speeds over a USB 3.0 link.  This lightweight design showcases both a cost-effective and high throughput architecture that allows high-end video transport. Stop by Nuvation s booth N3536 at NAB 2012 to see this demonstration running live.

If you have any questions on this topic please contact designpartners@cypress.com

Thanks,

Palani

]]>
Mon, 09 Apr 2012 18:27:59 -0600
PSoC Workshop at UT http://www.cypress.com/?rID=61616 A PSoC workshop was held at UT in Austin March 23rd and 27th. We had a lecture and then a workshop a few days later. It was very successful, pizza was enjoyed by all.

 

]]>
Sat, 07 Apr 2012 05:26:50 -0600
PSoC Designer Start Page now in Chinese, Japanese and Korean http://www.cypress.com/?rID=61594 The Designer Start Page is now available in Chinese, Japanese and Korean. Please click on the links at the upper-right corner to access them.

Also note that because we are translating the page weekly, the topmost posts may sometimes be in English, waiting until the next translation pass.

]]>
Fri, 06 Apr 2012 18:50:23 -0600
Using ceramic resonators with PSoC 3 and PSoC 5 http://www.cypress.com/?rID=61516 Did you know that in addition to supporting 4 - 25 MHz crystals, PSoC 3 and 5's MHz ECOs also support ceramic resonators? Although they tend to have more frequency error, resonators are cheaper, come in smaller packages, start up faster, and are more mechanically robust than crystals. They also often have their load capacitors built-in to the resonator package. And, because they have no maximum drive level rating, they can be used without the need for an automatic gain control circuit.

To configure the PSoC 3 and 5 ECO for use with a ceramic resonator, simply use the PSoC Creator Design Wide Resources interface to configure the oscillator as you normally would, then add the following lines in your main.c initialization code:

/* Configure MHz XTAL */

/* Turn automatic gain control off (AGC not necessary for resonators */

CY_SET_REG8(CYREG_FASTCLK_XMHZ_CSR, 0x05);

/* Set the XTAL feedback and watchdog voltages to a reasonable value */

CY_SET_REG8(CYREG_FASTCLK_XMHZ_CFG1, 0x55)

 

Also, be sure to check out AN54439 - PSoC® 3 and PSoC 5 External Oscillator to learn more about using PSoC 3 and 5's powerful ECO circuit.

 

Max Kingsbury

Applications Engineer

]]>
Thu, 05 Apr 2012 13:23:38 -0600
Full Wave Rectifier Tutorial http://www.cypress.com/?rID=61424 PSoC expert Ganesh Raaja walks you through a Full Wave Rectifier design using PSoC's switched cap blocks. Watch it now at http://www.cypress.com/?rID=61340

]]>
Tue, 03 Apr 2012 19:55:33 -0600
CapSense (R) Button Example - PSoC3 and PSoC5 http://www.cypress.com/?rID=53008 This short video explains how to create PSoC Creator project for CapSense designs

 

 For more information, see the Code Example "CapSense® Button and Slider Example - PSoC® 3 / PSoC 5".

By Jaya Kathuria

]]>
Mon, 02 Apr 2012 18:14:00 -0600
Thermal Management Using PSoC 1 http://www.cypress.com/?rID=61221 With its flexibile Analog and Digital resources, PSoC 1 is a very strong candidate for Thermal Management applications.  The PSoC can measure temperature from various types of temperature sensors like Diodes, Analog sensors, I2C based sensors, PWM based sensors and 1 wire sensors.  PSoC can implement a closed fan controller function by using 8 or 16 bit PWMs to drive fans and 16 bit timer to measure speed of the fan from the tach signal provided by some fans.

This video shows how a thermal managament application may be implemented using PSoC 1. 

 

 

More information on the kits used may be found in the below links.

CY8CKIT-001 PSoC Platform Development Kit

CY8CKIT-036 Thermal Management Expansion Board

 

The project used in the demo may be found below.

PSoC Designer Project - Thermal Management

]]>
Sat, 31 Mar 2012 00:50:06 -0600
Calibrating Amplifiers and ADCs in PSoC 1 http://www.cypress.com/?rID=60945 In today s world of mixed-signal systems, many applications require analog quantities including but not limited to voltage, current, temperature, pressure, acceleration, pH, flow, and ECG to be measured and processed. The field of uses ranges from lab and medical equipment operating in controlled environments to industrial equipment running under harsh operating conditions. The analog signals to be measured can range from a few micro-volts in ECG systems to thousands of volts in electricity generation plants.

Unfortunately, there is no such thing as an ideal converter in the real world, where systems have to contend with errors that are introduced into the system and affect the ADC s output. The most important errors are offset and gain errors.  

Refer graph below.  This is a plot of an 8 bit ADC with a range of +2.5V.  X axis denotes the input voltage and Y axis denotes the ADC counts.  The blue line is the ideal ADC output. The red line is the actual ADC output.  Notice the actual output is shifted from the ideal.  This shift is called the offset error.


 
All operational amplifiers have a finite offset voltage at the input.  This offset voltage gets added to the input signal, gets amplified by the amplifier s gain and manifests at the output.  Apart from the amplifier stage, the ADC also has its own offset voltage which adds to the system error.  Offset error is an additive error and can be easily removed from the system.

Graph below is the plot of the same 8 bit ADC with the +2.5V range.  Note that the slope of the actual output is now different from the slope of the ideal output.  This shift in slope is called the gain error.


 
These errors may be removed from a system using many calibration techniques like:

  • Correlated Double Sampling
  • Two-point Calibration
  • Gain calibration using external reference. 

PSoC 1, with its flexible analog resources and routing makes it very easy to implement all of the above calibration techniques.  Depending upon the application, one or more of these methods can be combined to achieve maximum accuracy.
Recently, I, with my friend and colleague Pushek Madaan, wrote an article on this topic in EETimes.  The article may be found in the following link.

Calibrating Amplifiers and ADCs in SoCs

The article in PDF format and the PSoC Designer projects for the Correlated Double Sampling and Two-point calibration technique are attached here in this post.

Happy Signal Conditioning!!

 

Calibrating Amplifiers and ADCs in SoCs - PDF Article

PSoC Designer Project - CDS Calibration

PSoC Designer Project - Two Point Calibration

]]>
Fri, 30 Mar 2012 23:23:40 -0600
Watch PSoC Today every Tuesday and Thursday! http://www.cypress.com/?rID=61211 Join Dave Van Ess as he interviews engineers designing innovative solutions with PSoC. It doesn't stop with discussions, Dave and guests provide hands-on demonstrations providing tips and tricks along the way. PSoC Today! is a talk show for engineers by engineers serving six-minute webisodes fresh every Tuesday and Thursday on cypress.com!

http://www.cypress.com/?rID=60521

]]>
Fri, 30 Mar 2012 16:46:57 -0600
ECEDHA 2012 http://www.cypress.com/?rID=61186 I was at the ECE Department Heads Conference earlier this week. Recognize anyone on the cover?

]]>
Fri, 30 Mar 2012 10:20:21 -0600