i am trying set Adc chanal in a 877
I want set without setup_port but with bit in the register ADCON(0x1F) ecc
how i can do ?
with #bit ?
thanks !
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Fri Jul 22, 2005 7:05 am
Read the datasheet for the pic. The channel select starts at bit 3 and is composed of 3 bits. Here is probably the best way for portability between pics.
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