Jump to content

How to wire a digital pot on mbhp J19 ?


mindjuice

Recommended Posts

Hi.

Hopefully Jonathan Farmer who did all of the work on the Digipot interface will respond but I would guess that something like this should work:

You will need to "#define DPOT_SPI 2" to use J19

SO of J19 connects to SI of the first MCP42XXX

SI of J19 connects to SO of the second MCP42XXX

SC of J19 connects to SCK of both MCP42XXX

RC1 or RC2 of J19 connects to CS of both MCP42XXX (#define DPOT_SPI_RC_PIN 0 or 1 )

You may find more information about this by reading the source code in %MIOS32_PATH%/trunk/modules/dpot and %MIOS32_PATH%/trunk/apps/tutorials/026_dpot directories.

Cheers

Phil

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...