Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 1 > Additive Synthesis after bandpass filter

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



Additive Synthesis after bandpass filter
Moderator:
ARVI

Post Reply
Follow this topic



Additive Synthesis after bandpass filter

Flury posted on 14 Dec 2012 10:59 AM PST
Member
3 Forum Posts

Dear all,

I want to do additive synthesis (or harmonic synthesis of sine wave).
I use the solution filtering (band pass filtrer) to generate sine waves with timer 8 bits
on a PSOC1 Model CYC8C29466.
I create two harmonic signals (different frequencies, different amplitudes)
and I want to add these two analog signals.

What do you propose of solutions ?

Hardware ?

Software ?

Thank you very much for your propositions




Re: Additive Synthesis after bandpass filter

Bob Marlowe posted on 14 Dec 2012 12:30 PM PST
Top Contributor
1768 Forum Posts

Easiest seems to be to route the two signals to pins and add them with a simple resistor network.

 

Bob



Re: Additive Synthesis after bandpass filter

seg posted on 14 Dec 2012 02:58 PM PST
Cypress Employee
8 Forum Posts

Bob's right, the easiest way is two filters and a resistive adder externally. Feed back into a PGA to get a buffered low-impedance output. You could put a cap on the resistor summing junction to filter out most of the sampling aliases.

IF . . . . you want zero external parts. Put one LPF in ASC10, ASD11, feed filter from digital input on P2[1]. Put second LPF in ASC23, ASD22, feed filter from digital input on P2[2]. Sum the outputs with an MDAC6 in ASC21; you'll have to set the B-input on block ASC21 in your code. Cool part this way is that you can scale the levels by changing the A and B caps. This results in levels that are dependent on power supply. If you want absolute levels, connect filter inputs to RefHi, then modulator bits to your digital signals. Set RefHi to something other than Vdd. You'll get the best result if the filters have the same column clock.

IF . . . . you are software-centric you can follow the method of the DTMF dialer user module and do with direct digital synthesis into a DAC. This is probably limited to a few kHz.

The limit on your output frequency is the slew rate of the analog column output buffer, roughly 40 kHz for rail to rail swing with no distortion caused by slew rate limiting.



Re: Additive Synthesis after bandpass filter

danaaknight posted on 14 Dec 2012 05:02 PM PST
Top Contributor
1773 Forum Posts

If this is DTMF or CTSS, there is a module for former, and an ap note

for latter - http://www.cypress.com/?rID=2600

 

Or you could always adapt DTMF module for different tone set.

 

And of course implment DDS approach http://www.sdiy.org/kbadc/dvco.html

 

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