It's sure that's the problem. But is enough 20uS. Vasile On Tue, 3 Apr 2001, Dwayne Reid wrote: > At 01:47 AM 4/3/01 -0400, Brian Reed wrote: > >I've been using one A/D input for months and have now expanded > >to 3. I must really have something goofy in my code, because the > >channels interact with each other. Normally I'd do more testing > >before asking here, but I'm going to try and run it at the SME robot > >competion this Saturday (near Pittsburgh), so I wanted to ask if my > >error is obvious... > > It sure looks as if you are not allowing adequate sample time. You have to > select the desired input channel, then wait for a short while (30 uS or so) > before starting the a/d conversion. The sample time allows the charge at > the input to be stored on the a/d convertors's sample and hold > capacitor. The minimum amount of time required is specified in the data > sheet but 30 uS should be lots. > > Give it a try and see what happens. > > dwayne > > > > Dwayne Reid > Trinity Electronics Systems Ltd Edmonton, AB, CANADA > (780) 489-3199 voice (780) 487-6397 fax > > Celebrating 17 years of Engineering Innovation (1984 - 2001) > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > Do NOT send unsolicited commercial email to this email address. > This message neither grants consent to receive unsolicited > commercial email nor is intended to solicit commercial email. > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics