Hello,
Just a quick question. I need to run all
8 channels in A/D mode pretty fast.
Also, I need to compare all returned
values and choose the one with the
highest result. But there's a catch. I
need to be able to define the offset
(hysteresis) between the values I'm
comparing. For example if ch1 is
giving the reading 20% higher than
ch3 PIC should choose ch1 value for
further processing. Now with all this
I'm concerned with timing. I need to
read 8 ch, do at least 5 measurements,
average them and compare, choose
the highest value, and make a certain
pin high. All that within 50mS or less
(preferable). While reading the posts
in the archives I bumped into one of
Melanie's posts about ADC that
caught my attention. She said that she
prefers using direct addressing for
ADC to ADCIN, especially when
using interrupts. My question is is
this method any faster and how fast
can I really go with ADC without
getting garbage from it? Anyone?
--
Sincerest regards,
YZ7REA Vladimir M Skrbic
4N7ATV Repeater Administrator
YU7GHZ Radio Club President
Bookmarks