mille-feuilleAutomatic Schematic Creation Tool

* AD2ch *

step

Features

Download datasheet
Main component : MCP3202 - Dual Channel 12-Bit A/D Converter with SPI Serial Interface
• 12-bit resolution
• ±1 LSB maximum DNL
• ±2 LSB maximum INL (MCP3202-C)
• Analog inputs programmable as single-ended or pseudo-differential pairs
• On-chip sample and hold
• SPI Serial Interface (Modes 0,0 and 1,1)
• Single supply operation: 2.7V-5.5V
• 100 ksps maximum sampling rate at VDD = 5V
• 50 ksps maximum sampling rate at VDD = 2.7V
• Low power CMOS technology
• 500 nA typical standby current, 5 µA maximum
• 550 µA maximum active current at 5V
• Industrial temp range: -40°C to +85°C
• 8-pin MSOP, PDIP, SOIC and TSSOP packages

step

Programming

Sample program
AD2chTest.py
AD2chDiffTest.py


* functions *
import AD2ch

def getInfo(Number) : Getting hardware information of device board
Number : connector number of baseboard

def read(milModClass, ch) : Reading analog data with dual single-ended inputs.
milModClass : module instance
ch : ADC device channel

def readSimpleDiff(milModClass): : Simply reading analog data with a single pseudo-differential input pair.
milModClass : module instance

def readDiff(milModClass,PN) : Reading analog data with a single pseudo-differential input pair.
milModClass : module instance
PN : inverting input setting
  0 (0ch = IN+, 1ch = IN-)
  1 (0ch = IN-, 1ch = IN+)