Boy do I feel stupid... I must have got my 16F877 and 16F84 mixed up.. Does anybody know of a way of measuring analog signal w/16F84? I know I've seen something about using some cap's & resistors and measuring the time it takes to charge the caps, but I can't seem to find that page again... Does anyone have more information on this method, or any method for that matter that might work? -- Rob --- David Duffy wrote: > Rob wrote: > >Okay.. Still working on the Infrared thing here... > >I've got the multiplexer (CD4051) hooked up > >to RB4/5/6 (for select lines), and the analog > >signal coming into RB7. Problem is, I can't find > >ANY example code on reading an analog signal > >directly into the 16F84, the only thing I've found > >even remotely close used a 555 timer to measure > >infrared pulses and output the count to the 16f84. > > The 16F84 had no inbuilt A2D convertor ! > > >Can anyone point me in the right direction? I've > >got my loops all setup to loop through the mux > >(I just need the info on reading Pin RB7... :( > > There are routines out there for doing A2D on parts without > a convertor using some tricky techniques. I've not done it > myself but the piclist.com site should have some examples. > Regards... > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.