It is not so much whether they manage to read the datasheet, as to whether they even bother to download and absorb it. Maybe they should have to take an oath such this before they ask the question.
I hereby solemnly affirm that:
a. I have downloaded the datasheet for the device in question.
b. I have read (and have done my utmost to comprehend) the relevant section and/or sections that pertain to my question.
In witness whereof, I humbly submit my question, and where it is deemed to be helpful, I will quote the relevant section of the datasheet.
Last edited by rmteo; - 20th September 2008 at 17:44.
Look at the MAX function - it is in the manual.
Vmax = Vmax MAX ADCvalue
As the ADC value rises the value of VMAX rises. When the ADC value falls, the value
of Vmax stays the same. If you sample for more than a full cycle VMax has the peak value of the sine wave.
If you are looking at the sine wave cycle-by-cycle, you will have to clear Vmax at zero crossing.
Charles Linquist
Bookmarks