really simple adcin question


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    that's interesting, how about if you just change to
    Code:
    if compvalue > (vin + 1) then 
        serout porta.5,6,[#vin,10,13]
        endif
    Or having anoher Var like

    Code:
    TestVar=vin+1
    if compvalue > TestVar then 
        serout porta.5,6,[#vin,10,13]
        endif
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    kitcat's Avatar
    kitcat Guest


    Did you find this post helpful? Yes | No

    Default

    Hmmn. Neither of these seem to work as I would expect.
    I find it works better if I put a "pause 5" at the end. Not quite sure if it is down to a speed issue?

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    How about if you just monitor you reading on a LCD or Serial PC communication? Is there variation as it's suppose to have, or the results are just messy?

    How about your ADC config?

    How about the impedance of your POT? Must meet the maximum state in the datasheet...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. ADCIN question
    By Greg McFadden in forum General
    Replies: 4
    Last Post: - 16th September 2008, 02:53
  2. Really simple question for you experts :)
    By lew247 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th June 2008, 01:43
  3. Simple question regarding ports
    By rngd in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd February 2008, 16:37
  4. SIMPLE question
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th February 2008, 18:27
  5. really simple, dumb question
    By picster in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd March 2007, 22:02

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