Envelope extraction based on rectifier/LP filter with PSOC 5 LP

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

 Hi there,

   

I have built an envelope extraction processor with PSOC 5LP. Overall it is working, but the rectification is not a full rectification, and the envelope is usable but not very neat.

   

The design was a rectifier followed by a low pass filter, as shown in the attachment. 

   

The rectifier was based on an old technical note. Found it in EE times archive. Both on-board voltages were set to 5V. The comparator was comparing the input signal to VDD/2 (reference signal) which yield either a positve or a negative unity gain depending on the level of input signal as compared to that of the reference. A mixer they multiply the output of comparator to the input signal, so the negative waveforms are automatically assigned a gain of -1, and flip to the positive side.

   

The reference of VDD/2 was made up of a op-amp based follower.

   

The low-pass filter was a rather simple design based on an interanl op-amp.

   

The main.c only include start instructions for the components involved.

   

The output waveform of the rectifier was as if the negative side was not flipping over as the nice chart shown in the technical note. Rather, the negatives were still negatives, only the amplitude was a lot smaller. I would post the shape as soon as my oscilliscope is functioning again.

   

My questions are:

   

1. Is the old rectifier design supposed to work on PSOC 5LP? Is there anything altogether wrong with the way I am doing it?

   

2. The note said the output of comparator would be -1 if the input is lower than the reference. May it be zero instead? Is there a parameter of the comp block  for this?

   

3. Are there alternative ways of getting the envelope with PSOC 5LP?

   

Thanks!

0 Likes
3 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Thread handled here -

   

 

   

    

   

          http://www.cypress.com/?app=forum&id=2233&rID=90632

   

 

   

Regards, Dana.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

@Dana

   

Are you trying to send me into a loop? I spent the last 10 minutes in following your link...

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Correction to thread link -

   

 

   

    

   

          http://www.cypress.com/?app=forum&id=2233&rID=90633

   

 

   

Regards, Dana.

0 Likes