PIC18F4620 Configurations

Thread Starter

internetuser2k11

Joined Apr 14, 2012
3
Hello!

I am using PIC18F4620 for my Project.

I want PORTA to be Analog Input
PORTB to be Digital Input
PORTC and PORTD to be Digital Output.

Please tell me how to set ADCON0, ADCON1, ADCON2, CMCON registers.

Also tell me if any other settings has to be made.



Thanks

Intenetuser2k11
 

t06afre

Joined May 11, 2009
5,934
Have you downloaded the datasheet. You will find all that kind of information in the datasheet. I suggest you post whatever you have coded so far. For this project. So we have something to start with. We also have a discussion forum for projects and working with embedded systems and microcontrollers. It is better to post this kind problem there. As you will reach more people that way
 

russpatterson

Joined Feb 1, 2010
353
Here's some code for a PIC16F1829 that sets up and reads digital and analog inputs for a solar charge controller. You can learn something from it. Read and re-read the datasheet. Get a debug setup on your PIC and that lets you mess around with register settings easily and see what works.
 

Attachments

Top