PortA Doesn't Work


+ Reply to Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Posts
    3


    Did you find this post helpful? Yes | No

    Default PORTA 18f

    and for 18f4620 it`s ADCON=00001111 isnt it? do you do that right after tris initialsation or after?

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I do not have the data sheet with me but if you have the correct register and all it should be
    ADCON=%00001111
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by bluestar84 View Post
    and for 18f4620 it`s ADCON=00001111 isnt it? do you do that right after tris initialsation or after?
    From the data sheet:
    19.0 10-BIT ANALOG-TO-DIGITAL CONVERTER (A/D) MODULE

    The Analog-to-Digital (A/D) converter module has
    10 inputs for the 28-pin devices and 13 for the 40/44-pin
    devices. This module allows conversion of an analog
    input signal to a corresponding 10-bit digital number.
    The module has five registers:
    • A/D Result High Register (ADRESH)
    • A/D Result Low Register (ADRESL)
    • A/D Control Register 0 (ADCON0)
    • A/D Control Register 1 (ADCON1)
    • A/D Control Register 2 (ADCON2)

Similar Threads

  1. pls help me verify my code not work, why???
    By chai98a in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th January 2010, 09:19
  2. error worring pbp247
    By chai98a in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th January 2010, 04:51
  3. 16f876 PortA set-up trouble?
    By ronjodu in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2006, 19:31
  4. Can anyone help a beginner in a struggle?
    By douglasjam in forum mel PIC BASIC
    Replies: 1
    Last Post: - 5th May 2005, 23:29
  5. Pin RA4 doesn't work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 15th July 2004, 12:03

Members who have read this thread : 3

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts