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

Status
Not open for further replies.

Lachit

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...


 

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.
 
Reactions: Lachit

    Lachit

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

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…