Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] ADC Problem....detecting Peak Value

Status
Not open for further replies.

Lachit

Newbie level 1
Newbie level 1
Joined
Jun 6, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,287
Hello everyone,
I am using pic 18f45k22 and the compiler is mikroC.It is perfectly working and i am able to display the adc values in lcd also..But the problem is that I only require the peak value to be displayed in the lcd instead of all the values......There are four different channels and four peaks as shown in fig....PLZ help ASAP...


peak.JPG
 

Take first sample and store it in a variable then take second sample and compare it with first value. If greater then discard first value else dicard second value. Repeat it for no. of samples taken.
 
  • Like
Reactions: Lachit

    Lachit

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top