PIC18F4620 Configurations

Discussion in 'The Projects Forum' started by internetuser2k11, Apr 25, 2012.

  1. internetuser2k11

    Thread Starter New Member

    Apr 14, 2012
    3
    0
    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
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    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
     
  3. russpatterson

    Member

    Feb 1, 2010
    351
    16
    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.
     
Loading...