Digital pot 257 steps - confused!


Results 1 to 2 of 2

Threaded View

  1. #2
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default

    ok, i'M burning the midnight oil - and after spending ages on this problem, almost the minute after I posted here i sorted it.

    Here was the offender (on my PIC)..

    Code:
    SSPSTAT.6 = 0
    it should be SSPSTAT.6 = 1 ....... I reckon that due to that setting (clock edge to tx data on) my digipot was therefore missing a data bit ...which essentially offset the data I was sending it. (which didn't cause a knockon effect to the command byte, because the digipot SPI control bits are i the middle of the first byte sent & were all zeros)
    Last edited by HankMcSpank; - 9th September 2010 at 01:50.

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