Skip to content
Arduino library to support Microchip ADC342x analogue to digital converters
C++
Branch: master
Clone or download
per1234 and stevemarple Use a single tab field separator in keywords.txt
Each field of keywords.txt is separated by a single true tab. When you use multiple tabs it causes the field to be interpreted as empty. On Arduino IDE 1.6.5 and newer an empty KEYWORD_TOKENTYPE causes the default editor.function.style coloration to be used (as with KEYWORD2, KEYWORD3, LITERAL2). On Arduino IDE 1.6.4 and older it causes the keyword to not be recognized for any special coloration.

Reference:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keywords
Latest commit 717027b Jul 15, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Minor comment correction. Aug 14, 2013
src Bump version: 1.0.1 → 1.0.2 Oct 7, 2015
.bumpversion.cfg Bump version: 1.0.1 → 1.0.2 Oct 7, 2015
keywords.txt Use a single tab field separator in keywords.txt Jul 15, 2018
library.properties Bump version: 1.0.1 → 1.0.2 Oct 7, 2015
license.txt Initial commit Apr 29, 2012
readme.md Fix minor typo Oct 6, 2015

readme.md

MCP342x ADC library

Arduino library to support Microchip MCP342x analogue to digital converters. The devices utilise the I2C bus. For the low level I2C protocol this library depends on the Arduino Wire library.

Supported devices

  • MCP3422: 2 channel, 12, 14, 16, or 18 bit
  • MCP3423: 2 channel, 12, 14, 16, or 18 bit
  • MCP3424: 4 channel, 12, 14, 16, or 18 bit
  • MCP3426: 2 channel, 12, 14, or 16 bit
  • MCP3427: 2 channel, 12, 14, or 16 bit
  • MCP3428: 4 channel, 12, 14, or 16 bit

The MCP3422 and MCP3426 use I2C address 0x68, all other devices can be configured to use any address in the range 0x68 - 0x6F (inclusive).

License

Released under the GNU Lesser General Public License, version 2.1. See license.txt for details.

Examples

ListDevices

List all devices which respond to a request for one byte. Useful to debug the I2C bus.

ConvertAndRead

Demonstrate the use of the convertAndRead() function.

ConvertAndReadNoDelay

Demonstrate the use of the convert() and read() functions to implement non-blocking analogue to digital conversion. Example makes use of the built-in LED to demonstrate how a slow 18-bit conversion need not interfere with other actions.

GeneralCallConversion

Demonstrate the general call conversion command which can be used to instruct several analogue to digital converters to begin conversion simultanteously.

You can’t perform that action at this time.