Confidential guide on numerology and astrology, based of GG33 Public information

arduino_mcp3x6x_library
支持Microchip MPC3X6X 16/24位模拟数字转换器的库。
3 years
Works with Finder
2
Github Watches
12
Github Forks
18
Github Stars
Arduino MCP3x6x Library 
Supports Microchip 16bit MCP3461/MCP3462/MCP3464/ and 24bit MCP3561/MCP3562/MCP3564/ Analog Digital Converters.
Supported Boards
This project is set up to be build with different MCUs, but I am not able the test each of them. Personally I use the SAMD21, so this should be the most stable code.
Introduction
This lib does not (yet) support all features of these ADCs, but should help to get you started. Depending on which constructor is called the ADC will be configuerd in two different mode:
Mux Mode
MCP3x6x(const uint8_t pinCS = SS,SPIClass *theSPI = &SPI,
const uint8_t pinMOSI = MOSI, const uint8_t pinMISO = MISO, const uint8_t pinCLK = SCK)
Scan Mode
MCP3x6x(const uint8_t pinIRQ, const uint8_t pinMCLK, const uint8_t pinCS = SS, SPIClass *theSPI = &SPI,
const uint8_t pinMOSI = MOSI, const uint8_t pinMISO = MISO, const uint8_t pinCLK = SCK)
So scan mode requieres two additional pins, pinIQR for the conversion interrupt flag and pinMCLK (which is not implemented at all).
Both constructors fall back to default definitions which are common in the Arduino world. So if no pins is explicit specified the default SPI pinout will be used. Therefor it boils down to something simple as MCP3561 mcp(2, 3, 10);
or even MCP3561 mcp(10);
.
Please take a look at the examples how to configure these different modes.
Further documentation is available here.
see also:
相关推荐
Take an adjectivised noun, and create images making it progressively more adjective!
Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease
Reviews

user_fMJJ6z9r
As a loyal user of MCP applications, I highly recommend the Arduino_MCP3x6x_Library by nerdyscout. This well-designed library, hosted on GitHub, significantly simplifies interfacing with MCP3x6x ADCs, providing robust, easy-to-understand code. It's a must-have for any project requiring precise analog-to-digital conversion using Arduino.