Joined: 20 Mar 2010 Posts: 193 Location: Auckland NZ
18F4620 and AN12 setup
Posted: Sun Feb 19, 2012 3:45 am
Hi, I have a problem:
I use in my circuit AN0 to AN4 and then AN12
So to set it up I use:
Code:
setup_adc_ports(AN0_TO_AN4 | VSS_VDD); //set AD ports AN0 to AN4
How do I get AN12 setup if 18F4620.h does not have this option? I cannot set up ALL because I use other pins as I/O pins. I use external OSC too.
Is there any way I could do this part manually? If there is please could you help and put detailed instruction bit by bit. I have never done it before and I have no clue where to look for an answer. If there is any way to do it manually by registry modification I would like to ask for detailed examples, I do not know ASM so I depend on .h files.
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