ADC with LED output


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    trisd = 0 'set portd to all outputs
    adresult var byte 'set up a byte that will receive the a/d input from the ADC
    portd = adresult 'set portd to the result value

  2. #2
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default

    Please disregard post.
    Last edited by T.Jackson; - 9th April 2008 at 17:48.

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    C:>del t.jackson

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Unhappy

    Hi, Trent

    It would be really very nice from you to stay upon PIC related subjects ...

    Hope you understand it told like here ...

    Thanks

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default

    Alain,

    You've heard the last of it. Cyas later.

  6. #6
    Join Date
    Apr 2003
    Location
    Cambridge - UK
    Posts
    1,046


    Did you find this post helpful? Yes | No

    Default

    T Jackson,

    Please moderate your responses...before i moderate them for you.

    I dont see your post being PIC related, or supportive of users on the forum.

    I have received a complaint about your post. Looking at the post in this thread i can see no good reason for it.

    Please take heed, i don't have a lot of time, so my descisions will be swift!

    Thank you for your attention.

  7. #7
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default

    Sorry about this Lester.

    It might be more appropriate if the posts are completely removed. Once again -- sorry for concerning you with this. You've heard the last of it, you have my word.

  8. #8


    Did you find this post helpful? Yes | No

    Default

    Hi, thanks for answering

    I forgot to to set portD as out, and there was a short in my potentiometer. I defined portD as out and got this...


    trisd =0
    ' Define ADCIN parameters
    Define ADC_BITS 8
    Define ADC_CLOCK 3
    Define ADC_SAMPLEUS 50

    adval var byte

    TRISA = %11111111
    ADCON1 = %00000010

    Pause 500

    loop: ADCIN 0, adval
    portd = adval


    Goto loop
    End




    then I got a different pot and It seems to work now.

    Thanks!!!
    Last edited by inventor2008; - 9th April 2008 at 18:55. Reason: don't need that just forgot to delete it

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 04:59
  3. Scale 8bit ADC RGB LED voltmeter
    By Ryan7777 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd February 2008, 03:37
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46

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