Comments (3)
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.
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.
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)
- Some questions about the SPI HOT 4
- Strange issue with MCP3561 HOT 3
- How do I add license in my source code ? HOT 2
- ESP32-S3-Mini and MCP3462R not working in Mux Mode HOT 24
- Not really an issue :) HOT 3
- Get stuck in mcp.analogRead loop HOT 7
- Function: _getValue(uint32_t raw) wrong return HOT 8
- How is the “_status.dr” logic changed? HOT 8
- Difficulty with compiling for RP2040 using earlephilhower core HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino_mcp3x6x_library.