Giter VIP home page Giter VIP logo

Comments (3)

nerdyscout avatar nerdyscout commented on June 9, 2024

hey @Omikron90
please be aware this is a very early stage of a library, and not functional at all!

I do not own a MCP346x, but according the datasheet it should behave similar to my MCP3564.

2 ideas what could be he problem (because I struggeled there as well)

**chapter 6.2.4**
Changing the command type within the same communication (while CS is
logic low) is not possible. The communication has to be
stopped (CS rising edge) and restarted (CS falling
edge) to change its command type. The list of possible
commands, their type and their possible command
addresses are described in Table 6-2

so check if CS toggles on every command written.

depending on the clk_sel you must assemble a pullup on mclk.

from arduino_mcp3x6x_library.

Omikron90 avatar Omikron90 commented on June 9, 2024

hey @nerdyscout
thanks for the two ideas, especially the pullup on MCLK has brought me further. Now I can write and read the registers :-)

Yes, the MCP346x is for the most part the same as the MCP356x. I should have considered however actually also all changes when writing the registers.

Unfortunately the ADC still does not return any values when I read the register 0x0 (ADCDATA). Did you also have problems with this?

from arduino_mcp3x6x_library.

nerdyscout avatar nerdyscout commented on June 9, 2024

default it expects a external clk of 4.9152Mhz used for ADC sampling. but you could configure an internal clk. that should help.

from arduino_mcp3x6x_library.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.