pot command


Results 1 to 23 of 23

Thread: pot command

Threaded View

  1. #9
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default I think...

    Quote Originally Posted by lerameur
    yes I am printing them out and carefully reading them now.
    But, i am curious, if I wanted to use the POT command, what do i have to do to read from port A?

    k
    lerameur,
    without actually doing it to verify it works . . .as I do not have a 16F88
    put the three BOLD commands into your code to make the PortA pins digital and turn off the analog comparators
    Code:
    CMCON=7              ' Disable comparators
    ANSEL=0               ' Set port as digital I/O
    ADCON1=7
    TrisA = %11111111  'sets all port a as input
    TrisB = %00000000  ' sets all port b as output
    B0 var byte            ' establishes a variable called B
    Start:
    Pot PortA.2,255,B0           ' would like PortA.2,175,B0 use number to suit you
    Lcdout $fe, 1                   'Clear screen
    Lcdout $FE,$80,"Pot: ", #B0       'Display the numerical value
    Pause 300 
    goto start
    end
    This should work.
    JS
    Last edited by Archangel; - 24th November 2006 at 08:29.

Similar Threads

  1. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 21:31
  2. Using the Pot command.
    By timseven in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 17th August 2009, 21:23
  3. PBP2.50b and POT command problem ?
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 13th October 2008, 18:14
  4. Replies: 4
    Last Post: - 24th January 2007, 23:20
  5. Can I do this???
    By noobie in forum mel PIC BASIC
    Replies: 2
    Last Post: - 10th June 2006, 19:57

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