Idiot, trying to be a programmer!


Closed Thread
Results 1 to 7 of 7

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Just a guess...
    This makes the ADC right justified
    Code:
    ADCON1=%10000010 '?? Setup to read analog inputs
    This will make it left justified. Left justified is "normal"for 8 bit.
    Code:
    ADCON1=%00000010
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Apr 2009
    Posts
    18


    Did you find this post helpful? Yes | No

    Default

    Thanks Guys!

    I've made it work. I changed ADCON1=%10000010 to ADCON1=%00000010 and this fixed the problem. So, your guess was exactly correct!

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


    Did you find this post helpful? Yes | No

    Default

    Well, it was an educated guess....
    That is why I asked about the chip being used so I could look at the correct data sheet
    Have FUN!!!
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Melabs U2 Programmer Command Line Options
    By Robert Wells in forum General
    Replies: 5
    Last Post: - 3rd July 2009, 02:11
  2. problems with USB programmer
    By malc-c in forum General
    Replies: 7
    Last Post: - 10th May 2007, 20:14
  3. USB programmer problems
    By uiucee2003 in forum USB
    Replies: 2
    Last Post: - 15th August 2006, 23:47
  4. Melabs USB Programmer
    By tmurph in forum General
    Replies: 1
    Last Post: - 25th December 2005, 03:25
  5. General Programmer Questions
    By mslaney in forum General
    Replies: 1
    Last Post: - 17th December 2004, 18:16

Members who have read this thread : 0

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