Peak Detector

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

cross mob
ChDe_285186
Level 4
Level 4
0 Likes
13 Replies
ChDe_285186
Level 4
Level 4
        I could not type any info in Chrome! Anyway... does anybody know of a block similar to that in AN60321 for PSoC1 devices?   
0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Why not create a S/H driven by a comparator. Use a open drain output to discharge

   

cap to start a new cycle.

   

 

   

Or use a SC block.               http://www.cypress.com/?rID=2899     AN2041

   

 

   

Or use DAC, Comparator in a control loop and do a binary search on

   

DAC to create the trip point for the Comparator.

   

 

   

Regards, Dana.

0 Likes
ChDe_285186
Level 4
Level 4
        Thanks Dana, All have been considered, BUTTTT... the signal in fact two signals are AC waveforms and would require more analogue blocks then are available on the PSoC1. OK on the PSoC3 or 5 device with the user block but the IC format is better for me with a PDIP device. I will continue to investigate. Regards Chris D   
0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

There are as many as 12 analog blocks on PSOC 1, that still not

   

enough ?

   

 

   

CY8C29466.....

   

 

   

Regards, Dana.

0 Likes
ChDe_285186
Level 4
Level 4
        Dana, Using a dual ADC and extending the AGND to a pin uses 3 analogue columns and I have yet to integrate the waveform for peak detection. No project to post yet, I am in the planning phase. Regards Chris D   
0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

At its simplest a diode (schottky) and a cap form a peak detector. Use an open drain

   

output to discharge cap on reset command.

   

 

   

Or -

   

 

   

Peak detector

   

In this case the Vf of the diode essentially eliminated. Again open drain output can

   

effect reset (cap discharge) switch.

   

 

   

Regards, Dana.

0 Likes
DennisS_46
Employee
Employee
100 sign-ins 50 likes received 50 solutions authored

You can make the opamp from an SC block per the method of AN2223. The problem is that the SC block inputs have finite input impedance, so this might load down your hold capacitor. This can be handled by using a PGA with gain of unity to buffer the B-input of the block. Instead of using P2.3 directly into the SC block, the inverting input is through P0.odd through a PGA in ACB00, then into the B input of the SC block in ASC10. The output isn't low impedance because of the diode, you might want to buffer it with another PGA placed in ACB01. This isn't blinding fast, the net opamp is about half of the speed of the venerable 741.

0 Likes
lock attach
Attachments are accessible only for community members.
ChDe_285186
Level 4
Level 4
0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Certainly that would work. The prior approaches discussed all have tradeoffs,

   

this one would impact available MIPs which would be very dependent on

   

max frequency of waveform.

   

 

   

Regards, Dana.

0 Likes
lock attach
Attachments are accessible only for community members.
ChDe_285186
Level 4
Level 4
0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Consider posting your whole  project, makes life easier to troubleshoot. We can't open just

   

the .cmx file by itself.

   

 

   

“File”                                                           Designer

   

“Archive Project”

   

 

   

Regards, Dana.

0 Likes
lock attach
Attachments are accessible only for community members.
ChDe_285186
Level 4
Level 4
0 Likes
ChDe_285186
Level 4
Level 4
        I have found the problem. Analogue input muxes connected to the same source. OOPS!   
0 Likes