Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

16 Channel ADC breakout card with serial interface

Status
Not open for further replies.

engr_joni_ee

Advanced Member level 3
Joined
Nov 3, 2018
Messages
750
Helped
2
Reputation
4
Reaction score
4
Trophy points
18
Activity points
6,229
Hi, I am looking for 16 channel 12bit ADC card with serial interface like I2C or SPI for Microcontroller. I have found MCP 3208 but this is 8 channel. Any suggestion for 16 channel ?
 

How about one for $ 15 and you write a small amount of code. Use the 12 bit
SAR or the 20 bit DelSig. Could have a mix of single ended and differential
channel;s if so desired.

Use any / all of the COM interfaces shown.

1665082096232.png


This is whats in chip, in many cases multiples :

1665081842251.png


1665081922477.png


Regards, Dana.
 

Keep
How to order it and how many ADC input channels available in the card ?

Keep in mind this is a dev board, you C code it to effect operation.

So in your case at the most basic level you write a routine that takes the SAR
conversion complete signal for the channel it just scanned and pass that to
your COM link to output. Code not complex, just want you to know how its
used.

The IDE and compiler are free - https://www.infineon.com/cms/en/design-support/tools/sdk/psoc-software/

This board has limited I/O, so could get 24+ channels out of it.

A board with much more I/O would be -


or


Before you jump tell me a little more about your design goals for the board,
and maybe your technical capability with embedded design tools and projects.


Regards, Dana.
 

Back to MCP 3208. Is there any c code example available for MCP 3208 to inferface with PIC 18F ?
 

Just to confirm this 32 channel version easily routed in the part -

1665095796115.png


Note that included pins used for the COM I showed above on the solution.

Still left a lot of other resources for other uses, see right hand window.


Regards, Dana.
 

Hi,

Back to MCP 3208. Is there any c code example available for MCP 3208 to inferface with PIC 18F ?

See Fig 6-1 of the datasheet.

it´s SPI ... and SPI is simple.

1) Hardware:
* add a pullup on the MISO line

2) software / setup
set up SPI speed and SPI mode
define: uint_16 ADC_Data; for your adc value as working variable

3) software / for every sample
* First send three bytes: Config / 0x00 / 0x00
* and you automatically get three bytes back: 0xFF / data_high / data_low
* do ADC_Data = ((uint16) data_high <<8 ) | data_low

If you like yiu now may check: ADC_Data & 0xF000 should be 0xE000 (three trailing high bits because of installed pullup, followed by one start bit = 0

but for further working with the ADC value do:
ADC_Data &= 0x0FFF;

that´s it. No rocket science.
all in all just a couple lines of code...
(and I´m no programmer at all)

Klaus
 

How about one for $ 15 and you write a small amount of code. Use the 12 bit
SAR or the 20 bit DelSig. Could have a mix of single ended and differential
channel;s if so desired.

Use any / all of the COM interfaces shown.

View attachment 178937

This is whats in chip, in many cases multiples :

View attachment 178935

View attachment 178936

Regards, Dana.
Hi, I am bit confused. You have shown pictures but not the name of the hardware. Can you please share more info ? Which hardware you are referring to and which software and how to order it ?
 

IDE and Compiler, free, PSOC Creator -



Board, low end, $ 15, reasonable I/O -


1669983629877.png


Boards with more I/O also available -



This is PSOC 5LP family, there are lower end parts, PSOC 4, and hi end
dual core parts, PSOC 6.


Regards, Dana.
 

IDE and Compiler, free, PSOC Creator -



Board, low end, $ 15, reasonable I/O -


View attachment 180009

Boards with more I/O also available -



This is PSOC 5LP family, there are lower end parts, PSOC 4, and hi end
dual core parts, PSOC 6.


Regards, Dana.
Hi again, thanks for sharing. How may analog channels for ADC ? and what is the sampling rate and resolution ?
 

The mux for the DelSig (20 bits), 48 channels routed, did not try 64 as this package
I worked with 72 pins (if memory serves me).

1669989284145.png


At 20 bits sampling rate is 187 SPS, so effectively each channel ~ 4 SPS.

If 12 bit SAR used instead ~ 100 Khz each channel, 48 channels.

Parts have 1 DelSig and 2 SARs in it.


Regards, Dana.
 
Last edited:

Might suggest you round up the ADC parts which look suitable, and see which offer eval boards (which may have software available as well from the vendor).
 

Hi Dana, Kindly write complete sentence for better understanding.

From your reply I guess there are 48 single ended ADC channels and the resolution of ADC is 20 bit, is that right ? I don't get about the sampling rate. Can you please write again about the sampling rate ?

How many ADC are present physically. If there is only one ADC then all the 48 inputs are multiplexed, right ?
 

Parts have 1 DelSig and 2 SARs in it.

Part has 2 12 bit SARs in it and 1 20 bit DelSig. Yes the 48 channels going
to DelSig are muxed,

The DelSig, running at 20 bits, has 187 SPS for one conversion. So muxed
at 48 channels effective sample rate per channel is [187 / 48] SPS. If DelSig
run at 16 bits its rate is 48,000 SPS, so each channel would be 1,000 SPS
effective.

The SAR maxes out at 1 MSPS, so you can do the math for effective sample rate
for mux configuration you are working with.

You could run two SARs, each muxed 24 or all 3 A/Ds with various mux configurations,
all running concurrently, pinout is main limitation on the package and / or internal
routing limitations.

Hi Dana, Kindly write complete sentence for better understanding.

Not very good at English, my native language, barely passed any of those classes.
I have a son that communicates in fragments, wonder where he got that from....

Datasheet here - https://www.infineon.com/cms/en/pro...-arm-cortex-m3/cy8c58lpxxx/cy8c5868axi-lp035/



Regards, Dana.
 
Last edited:

The DelSig, running at 20 bits, has 187 SPS for one conversion.

I see the confusion I created, should be -

187 samples taken and each converted in 1 second. So a sample
is taken and converted every 5.25 mS. At 20 bits.


Regards, Dana.
 

I see the confusion I created, should be -

187 samples taken and each converted in 1 second. So a sample
is taken and converted every 5.25 mS. At 20 bits.


Regards, Dana.
That’s STILL cotradictory. You first say each sample is converted in 1 second and then you say 5.25 mS.

I give up.
 

That’s STILL cotradictory. You first say each sample is converted in 1 second and then you say 5.25 mS.

I give up.
187 samples x 5.25 mS = ~ 1 sec.

So at a rate of 1 sample and its conversion in ~5.25 mS means
that in 1 sec we can do that process for / on 187 samples.

So the DelSig configed at 20 bits will sample and convert at a rate of 187 SPS.

Def of SPS :



Dana.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top