16F876A ADC write and read?


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by clem View Post
    Do I have to set aside specific memory locations?
    Do I have to declare specific variables?
    The book states:
    ADCIN channel, Var

    I'm still lost
    Did you read section 5.2?
    You are using the command ADCIN, which reads the specific ADC channel, which is connected to a certain pin. This value which is read is put into a specifica variable. You aren't using a variable in your code, you haven't specified a place to put it. You are using variables in other spots...so why not here?

    How much PIC programming have you done so far? LED blinky? Anything like that?

  2. #2
    Join Date
    Apr 2007
    Posts
    9


    Did you find this post helpful? Yes | No

    Default None

    Sorry this is my first time.
    But I did figure it out,
    thank you for the help

    Jim-

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by clem View Post
    Sorry this is my first time.
    But I did figure it out,
    thank you for the help

    Jim-
    If you're starting off with ADCIN type commands, you might want to back up a bit and play around some with some LEDs and some buttons first. Get the basics down. Dig in too deep and too hard right off the get go, and you're setting yourself up for headaches in the future.
    Just my thoughts on the process...

  4. #4
    Join Date
    Apr 2007
    Posts
    9


    Did you find this post helpful? Yes | No

    Default Thanks

    Thanks for the advice...much appreciated

    Jim-

Similar Threads

  1. READ WRITE not working consistantly on 12f675
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th September 2009, 16:15
  2. write -read problem?
    By turkuaz in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th August 2009, 13:06
  3. Q: using MCLR for Input on 12F683
    By picster in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 31st January 2009, 15:25
  4. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  5. Write Read And Words
    By Rob Martin in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th March 2004, 23:27

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