Apr 29, 2011
One of the most common questions I come across is “How do I measure a negative voltage using PSoC?” For example, I have a +1V signal that I need to measure using PSoC ADC. But the PSoC will not take any voltage below VSS. How do I measure the negative portion of the input signal? The solution depends on the answer to two questions. Is the signal ground isolated from PSoC ground (VSS)? Signal Ground Isolated from PSoC Ground If the signal ground is isolated from VSS of PSoC, then for both AC and DC input signals, the solution is simple and same. Bring out AGND to an external pin and then feed the signal with respective to this AGND.
In the schematic above, the internal AGND is brought out on P0[5] using the Analog buffer and the signal is connected between this AGND and the PSoC input. Set the reference of the PGA (if you are using a PGA to amplify the signal) to AGND and the DataFormat of the ADC to “Signed” and the PSoC is now ready to measure a –ve signal. Bring out AGND to an external pin Signal Ground is Same as PSoC Ground – AC signal If the signal ground is same as VSS, and if the input signal is AC, then the signal reference can be shifted from VSS to AGND by using a capacitor and a resistor.
In the above schematic, AGND is brought out to P0[5]. The signal to be measured is connected to the PSoC input through capacitor “C” and the PSoC input is biased to AGND by resistor “R”. C and R form a high pass filter and hence should be selected in such a way that the input signal is passed without attenuation. Set reference of the PGA to AGND and DataFormat of ADC to Signed. Signal Ground is Same as PSoC Ground – DC Signal When the input signal is DC and the signal ground is same as VSS, then the input can be shifted to AGND by biasing the input to VREFHI.
In the above circuit, the input signal is connected to the PSoC input through resistor R1, and the input of the PSoC is biased to VREFHI using R2. VREFHI can be brought out to a pin the same way as AGND is brought out, either by using the RefMux user module, or by writing to the ACBxxCR2 register. With this circuit, the input signal will be lifted to AGND and attenuated by a factor of 2. This method works for references that have VSS as REFLO, ie (Vbg + Vbg), (Vdd/2 + Vdd/2) and (1.6Vbg + 1.6Vbg). For example, for a reference of (Vbg + Vbg), the Analog Ground is at 1.3V and VREFHI is at 2.6V. For a +1V input, following are the voltage levels on the input of PSoC for various input signal voltage levels.
From the above table, it is clear that the input signal gets shifted to 1.3V (AGND) and is attenuated by a factor of 2. One side effect of this method is the difference between the shift created by the resistor network and the internal AGND will be amplified by the PGA. But this can be compensated in firmware. Depending on the type of input signal and isolation between signal and PSoC grounds, one of the above methods may be used to measure a –ve signal using PSoC.
Rating:
(4.3/5) by 6
users
Mar 19, 2011
Back to the blog world after a long period of inactivity. In the past few months, I have had a chance to work on a very interesting project for our CEO T.J. Rodgers. He is donating 152 wine fermenters to the U.C Davis School of Enology and Viticulture. A couple of articles that talk about the project: Blending Science With Wine, UC Davis claims world’s greenest winery
LT1303 is a charge pump, which is used to step up the 3.5V - 4.5V battery voltage to 15V and charge C6, a 2200uF capacitor. J3 is a socket for the Orbit valve. The common is connected to the +ve of the 2200uF capacitor. The other two pins are connected to the drain of T1 and T2, N Channel MOSFETs. Applying a pulse to the gate of these transistors will discharge the charge in capacitor through the corresponding coil. Let us have the look at how the PSoC controls this circuit. The PSoC controls the charge pump through the CH_PMP_SHDN and VB_FB signals. CH_PMP_SHDN is a GPIO pin configured as StdCPU/Strong and turns on or off the charge pump. VB_FB is the feedback signal used to sense the voltage on the 2200uF capacitor. Figure below shows the PSoC Designer resource placement for the valve control.
Stay tuned for more interesting topics on the Fermenter!
Rating:
(4/5) by 1
user
Jun 18, 2010
With a handful of PSoC3 resources and an external capacitor, a Voltage controlled oscillator can be created.
t = C * V / I For example, if the maximum period value is desired to be 500uS for an input voltage of 2.5V, for an IDAC value of 1uA, the value of C can be calculated: C = (500uSec * 1uA) / 2.5V = 200pF
Rating:
(3.5/5) by 4
users
May 27, 2010
In the recent FAE Conference held in the 3rd week of May 2010, I had a chance to attend a session on “Analog Signal Chain” taken by our Analog experts Dennis and Mark. They showed some really cool tricks using the PSoC3 analog. Some of this stuff was really amazing.
Coming soon is an Application Note on this cool trick.
Rating:
Be the first to rate
May 07, 2010
Last week end – this is my first visit to the US – I had a chance to visit the 17 Mile Drive in Monterey Bay. My friend and colleague Palani took a great risk and agreed to teach me to drive on the US roads, especially the freeway. The Teacher and the Student He taught me lane discipline, important road symbols, looking over shoulders before switching lanes, entering the freeway at 60mph (I would never dare do this in India) and many more. I did throw him a few scares by driving on the left side of the road a couple of times (deserted roads of course) and once changing lane without looking behind my shoulder. Thanks to his tutelage I have learnt the ropes and now I am able to drive in San Jose roads without getting honked at (just once in the past 5 days). The Lone Cypress Tree This is “The Lone Cypress Tree” which stands on a rock for more than 200 years (some web sites claim more than 250 years). I learnt from a colleague Don that this tree which stands as a symbol of stability weathering time is the inspiration behind the Cypress Logo.
Rating:
(4.5/5) by 2
users
1 to 5 of
28 Results
| Next >
|
||||||||||||||||||||||||||||||||||||||
Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.














Tags: 











