I've got an existing little project that is configured for all analog (eight A/D's) on a pic 16f877. I'd like to see if I couldn't use this existing project and add a mux to it to expand the number of A/D inputs. I've got ports A2, E1, and E2 available for the channel selects. Is it possible to set these as output I/O's where they can be swung high or low and leave the existing a/d inputs? Do I use the set_tris() function?
Thanks.
valemike Guest
Posted: Tue May 10, 2005 9:25 am
Yes you can use tris settings to select the 3 select pins. Set them as outputs.
However, I don't think you can get more A/D inputs with a Mux (?) since i thought a mux only works with logic levels.
There are some PICs out there with several more ADC channels if that interests you.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum