Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 1 > Wave generate using PSoC?

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Wave generate using PSoC?
Moderator:
ARVI

Post Reply
Follow this topic



Wave generate using PSoC?

stabomfalcon posted on 28 Mar 2013 11:28 PM PST
Member
2 Forum Posts

 

Hi there.

 

How do I use the analog out pins of PSoC to generate waves, say triangle wave etc?

 




Re: Wave generate using PSoC?

arvi posted on 28 Mar 2013 11:36 PM PST
Cypress Employee
119 Forum Posts

 

 

PSoC 1 has a digital to analog converter (DAC) which can be used for this.

 

A good place to start would be this application note - AN2025 - Analog – Sine Wave Generation with PSoC® 1

 

The first example project shows how you can define your waveform using a lookup table, and then feed it to the DAC to generate a scaled, proportional analog voltage.

 

 

 

 

 

 



Re: Wave generate using PSoC?

danaaknight posted on 28 Mar 2013 02:38 AM PST
Top Contributor
1773 Forum Posts

The prior post has severe limits on frequency output, LUT case, < 1 Khz for 64 bit LUT.

 

Alternatives -

 

1) Use BPF and feed it with a square wave, you can get 100 Khz like performance.

Limitation is tuning BPF, calculations and register writes needed to do this. And

limits on low frequencies obtainable.

 

2) PSOC 3/5 Wavedac component. www.cypress.com/

 

www.element14.com/community/docs/DOC-48063/l/cypress-ce56171--training-document-on-sine-wave-generator-with-dac-for-psoc-3-and-psoc-5-family

 

3) External DDS, DC to 100 Mhz +. www.psocdeveloper.com/.../an-pointer/​an2380/an-file/​an2380.pdf.html

 

Regards, Dana.



Re: Wave generate using PSoC?

stabomfalcon posted on 30 Mar 2013 01:14 AM PST
Member
2 Forum Posts

 

Thanks for the suggestions. With the WaveDAC or VDAC, the output range is limited to 0 to 4.080V. Is there something internal to PSoC which can scale to 5V like a PGA?

 Otherwise I might go with the PSoC 1 approach, simple 8 bit DAC updates.



Re: Wave generate using PSoC?

danaaknight posted on 30 Mar 2013 03:17 AM PST
Top Contributor
1773 Forum Posts

The PSOC III PGA is rated to swing to 150 mV of either rail with a 100K ohm load.

 

An alternative approach is to use an integrator approach, step response of an integrator

is a ramp. Note in PSOC 1 the output buffer does not have R-R performance either.

Use of an integrator can give you more linearity, and with a simple AGC loop will handle

different frequencies to yield a constant amplitude output. Additionally should be able

to achieve higher frequencies than with DAC/LUT approach. The only significant downside

would be lowest ramp rate achievable due to leakage.

 

Regards, Dana.

 

 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

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.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20