ADC with LED output


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1


    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