+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Junior Member level 3
    Points: 1,009, Level: 7

    Join Date
    Apr 2008
    Posts
    25
    Helped
    0 / 0
    Points
    1,009
    Level
    7

    Digital Potentiometer

    Hi All ,

    can any one please If its possible post any assembly code for controlling Digital Potentiometer (MCP4011) from pic18f family , or to explain how can i program it ,
    i have seen the MCP4011 Datasheet , but i'm not sure how can i generate U/D and cs signals from the pic.

    thanks ,

    •   AltAdvertisement

        
       

  2. #2
    Full Member level 5
    Points: 3,560, Level: 14
    Achievements:
    7 years registered

    Join Date
    Feb 2007
    Location
    33 N, 73 E
    Posts
    255
    Helped
    37 / 37
    Points
    3,560
    Level
    14

    Re: Digital Potentiometer

    If you are using the pot for audio application than you d better off in using something like PGA231x, CS3310.



    •   AltAdvertisement

        
       

  3. #3
    Junior Member level 3
    Points: 1,009, Level: 7

    Join Date
    Apr 2008
    Posts
    25
    Helped
    0 / 0
    Points
    1,009
    Level
    7

    Re: Digital Potentiometer

    Hi abidr,

    No, i'm not using the pot for audio application. i need to do simple thing , just to know how can i move the resistor up and down thats all i need. i will make this more clear i need to click on the pc (up) the rsistor value changes (increases) click (down) the rsistor value decreases .

    thanks



    •   AltAdvertisement

        
       

  4. #4
    Banned
    Points: 8,931, Level: 22

    Join Date
    Jan 2007
    Posts
    943
    Helped
    177 / 177
    Points
    8,931
    Level
    22

    Re: Digital Potentiometer

    Hi,
    You can control the potentiometer as follows:
    Connect the CS pin to a port pin and U/D pin to another port pin.

    To Move Up the pot:

    1. Make CS bit high
    2. Make U/D bit high.
    3. Make CS Low
    4. Make U/D Low, NOP, U/D High ; the pot moves up by one step.
    5 . Repeat Step 4 as many times, as possible to move/ as you want the pot to move up.
    6. Make CS high and lock up the position

    Now to Move Down the pot,

    1. MAke CS bit high
    2. Make U/D low
    3. Make CS Low
    4. Make U/D High, NOP, U/D Low ; the pot moves Down by one step.
    5 . Repeat Step 4 as many times, as possible to move/ as you want the pot to move Down.
    6. Make CS high and lock up the position

    Note:The pot position is volatile and need to be set everytime on power on.

    Regards,
    Laktronics



--[[ ]]--