Serial control of a digital pot?


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Posts
    92


    Did you find this post helpful? Yes | No

    Default

    Hi,

    I appreciate that very much.

    What is this constant doing : WriteOnPot0 con %00010001 ?

    (I aplogize in advance if this is obvious, my brain is a little jumbled today).

    I will be getting the digital chip in a few days and I will try this out and post results.

    I'll be using an analog sensor read by the pic 18f452 using adcin. Then interpreting that analog reading for use in the "Wiper" variable. So as the analog sensor changes so will the digital pot.

    Thank again,
    TonyA

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


    Did you find this post helpful? Yes | No

    Default

    This constant is the CommandByte needed by the chip. Read datasheet section 5, and look the figure 5-2.
    Steve

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

Similar Threads

  1. Controlling a MCP4162 Digital Pot
    By SOTASOTA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th February 2011, 18:51
  2. Digital Pot Advice
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd October 2007, 20:38
  3. servo control via pot ?
    By n0oxv in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 1st March 2007, 07:11
  4. Replies: 4
    Last Post: - 24th January 2007, 22:20
  5. DS1868 Digital Pot
    By ero in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 31st August 2004, 13:22

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