A/D, Pot, Input, A,B So lost now....


Results 1 to 8 of 8

Threaded View

  1. #5
    Join Date
    Mar 2008
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    wow, thanks for the reply.

    But damn now Im lost.

    Can I just read the AD converter value to a byte? Then use that as my pulse out. I think thats what that code above is doing, but also applying some limits and boot up procedures.

    I guess where Im getting most lost is how do I define what I am using on that pin? Or Will it just read what ever it wants to? Do I have to write it to a data spot or can I just use it as a variable?

    Servo VAR Portc.5
    Potin VAR AD.4 ' Can I do that? Or Do I call it something else to call the AD converter inside the pin.
    PULSE VAR BYTE


    Loop:
    READ AD.4, Pulse
    PULSOUT Servo, Pulse
    Pause 18
    Goto Loop

    Thanks again, Sorry I am new at this. Im trying.

    EDIT: Ok so super noob question, Is there a difference between calling a PIN by GPIO.? versus Porta.? or Pin 5. I get the port/pin references but I can seem to figure out where the GPIO comes from.
    Last edited by Helmutt; - 9th March 2008 at 18:57.

Similar Threads

  1. floating A/D input
    By muddy0409 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 28th April 2009, 13:21
  2. 12F675 A/D and GPIO sleep interrupt
    By macinug in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th September 2008, 14:39
  3. Advice on Input circuitry for 0-10v or Pot
    By bcd in forum Schematics
    Replies: 18
    Last Post: - 12th April 2008, 10:47
  4. Question from New member A/D input 16f876
    By mbruno in forum General
    Replies: 2
    Last Post: - 26th January 2008, 14:52
  5. Replies: 4
    Last Post: - 24th January 2007, 22:20

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