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

PSoC™ 5, 3 & 1 Forum Discussions

Anonymous
Not applicable

after a little reading and studying about PSOC 5, I discovered that there are 2x SAR ADC, 1x Del Sig ADC, 1x Sample and hold circuit. This is very small amount of ADC.

   

 

   

I have 6 sensors, their output is AC signals (sine wave), I want to connect them to psoc5lp and then detect the maximum peak for each signal, then send the peaks values to the computer by UART. Is it impossible to do this tasks thru chip, right?

   

Also I need to generate a sine wave this 20khz frequency inside the chip, then connect the signal with an analog pin, which connected to a seventh sensor, after that, re-enter this signal to the chip to do sample and hold on it, is this possible to do on psoc5lp, cy8c888AXi???

0 Likes
1 Solution
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

1. There should be no problem to accomplish that using PSoC5. A little more reading required though. Please refer to those app notes first

   

http://www.cypress.com/documentation/application-notes/an60321-peak-detection-psoc-3-and-psoc-5lp

   

http://www.cypress.com/documentation/application-notes/an60580-sio-tips-and-tricks-psoc-3-psoc-5lp

   

 

   

and for sine wave generation:

   

http://www.cypress.com/documentation/application-notes/an69133-psoc-3-psoc-5lp-easy-waveform-generat...

   

 

   

2. Get KIT-059 ($10) and start coding. Single (multiplexed) ADC should suffice for your application. You havn't provide six input sine frequency range, so exact implementation may vary.   For more meaningful advise you need provide some specs: sine frequency range, amplitude range, possible offset, phase coherency and offset, bits of resolution, time constant. What d you really need: sine peak value  or averaged Amplitude/RMS value?     

   

PS. There are total 4 sample and hold blocks (one per SC block).

View solution in original post

0 Likes
4 Replies
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

1. There should be no problem to accomplish that using PSoC5. A little more reading required though. Please refer to those app notes first

   

http://www.cypress.com/documentation/application-notes/an60321-peak-detection-psoc-3-and-psoc-5lp

   

http://www.cypress.com/documentation/application-notes/an60580-sio-tips-and-tricks-psoc-3-psoc-5lp

   

 

   

and for sine wave generation:

   

http://www.cypress.com/documentation/application-notes/an69133-psoc-3-psoc-5lp-easy-waveform-generat...

   

 

   

2. Get KIT-059 ($10) and start coding. Single (multiplexed) ADC should suffice for your application. You havn't provide six input sine frequency range, so exact implementation may vary.   For more meaningful advise you need provide some specs: sine frequency range, amplitude range, possible offset, phase coherency and offset, bits of resolution, time constant. What d you really need: sine peak value  or averaged Amplitude/RMS value?     

   

PS. There are total 4 sample and hold blocks (one per SC block).

0 Likes
HeLi_263931
Level 8
Level 8
100 likes received 50 likes received 25 likes received

Out of my mind, I don't know any other MCU which has more than 2 ADCs available. (Most have just one and then a mux to handle multiple signals). So you can use the SAR MUX to handle many channels - with DMA you can sample them without MCU intervention. Depending on the signal frequency, you can even to peak detect using the ADC...

Anonymous
Not applicable

thanks you so much @odissey1 and @hli :

   

actually the attachments image explains what I want to do: I have a reference signal (generated in PSOC) with a frequency =20kHZ and a 1 peak to peak voltage with offset =2.5 voltage. , then this ref signal is going to a six sensors and modified (the amplitude maybe change and  may appear a phase between a signal and the reference signal equal to 0 or π . the frequency doesn’t change, it is fixed 20khz , the offset is fixed =2.5v ) . I need to detected the maximum peak for each signal of the six signals inside PSOC, then display this peaks as DC outputs on a 4 pins on the chip and then send this peak values to PC by UART. ---------- now I know, I have to use a multiplexer with ADC, Can I display the peaks as a DC using  DAC with  de-multiplexer  ????

   

0 Likes
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted
        ardamina, All seems doable, we shall help you when you start coding. How many measurements per second on channels 1-6 you need (per channel)?   
0 Likes