Analog channel configuration

The data sheet states
"Each channel is SW configurable to be:
■ 0-10V input
■ 4-20mA input
■ NTC input with 3V voltage
reference REF3330AIRSER"

How do you configure it via the software?

Is this a joke?

What are we talking about? The reference you've given us is for a voltage reference chip.

The answer to your general question "How do you configure it via software?" has two possible answers (regardless of what "it" is): 1/ find a library for "it" and use that, or 2/ read the datasheet.

Hi, @peerpsi
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".

This will help with advice on how to present your code and problems.

Tom.... :grinning: :+1: :coffee: :australia:

Ah, forum protocols are always a tricky thing to satisfy.
I thought I was clear by posting in the Hardware/Portenta area as that is exactly what the hardware is. As for the datasheet, I did read it and the quote is directly from the datasheet for the Portenta, page 1 at the bottom. My Google searches are turning up nothing for what the intended selection method is for the different analog input configurations it is intended to support, 4-20, 0-10 or NTC.
While I am admittedly a novice at Arduino, actually purchased the device for my son who has taken an interest, I have quite a bit of experience with the more popular industrial platforms. Typically their manuals spell out how to do this selection in the software. I will continue my search as clearly my request for help has been received as offensive.

No, you are quite right. My reaction was inappropriate and unhelpful, and I apologise. Sorry for being a bit of arse.

Hi, @peerpsi
Can you post a link to where you got the "Each channel is SW configurable to be" information from.

I Google > REF3330AIRSER

I eventually get to a data sheet for the IC, a voltage reference IC.
Can you please post an image of the device?

Thanks.. Tom.. :grinning: :+1: :australia:

Portenta datasheet
Datasheet has a picture of the unit and the bottom left corner of page one shows the specifications for the analog stating what I believe is that the analog inputs are software configurable to the 3 different input types. What I also found was a reference to some board level relay that was used to select different resistor values through SPST contacts. In essence the software would turn 1 of the three switches to set the resistor.

ts12a44514pwr
Page 10 of the datasheet refers to this device which would make sense. I suspect through commands you select one relay contact to place in circuit the resistor/s required to configure the analog input channel for the format you want. Question is what command or instruction is required and what is the appropriate syntax.

Hi,
I have scoured the link you sent, yes its very scarce on how to configure the appropriate input function of the analog input.

I have left an enquiry on my local supplier's forum, I hope to get some reply in the next 24hr, unless they have Christmas Holidays.

Tom... :grinning: :+1: :coffee: :australia:

Thanks, I appreciate the help. I don't expect I'd get much from Digikey.

Hi,
I got this reply;

The selection is controlled by a software-controlled analog switch TS12A44514PWR.
According to the examples:

analog_in.set0_10V(); // Select 0-10v
analog_in.set4_20mA(); // Select 4-20mA
analog_in.setNTC(); //Select NTC

So somewhere in the documentation there are examples of codes.
I will ask for the link.

I hope this helps, I am also interested in this controller.

Tom... :grinning: :+1: :australia:

Hi, @peerpsi
The guys at Core Electronics are on the ball this morning.
Got this reply;

The examples should be installed automatically as part of the library install. The analog input >examples are here:
Arduino_MachineControl/examples/Analog_input at master · arduino-libraries/Arduino_MachineControl · GitHub

There does not appear to be a separate document for the API (as is common ith Arduino libraries) so the documentation is what you can glean from the library header files.
Arduino_MachineControl/Arduino_MachineControl.h at master · arduino-libraries/Arduino_MachineControl · GitHub

So it seems most of the info is on GitHub, rather than a dedicated Webpage, which in my opinion is a bummer.

Hope this info makes sense mate.

Here is where the forum for Core Electronics, Australia is located, a very customer oriented company.

I have had times when needing urgent parts and they have been very accomodating, and now in this case there forum response, especially around Christmas is great.

Tom... :grinning: :+1: :coffee: :australia:

TomGeorge thanks for the very helpful information. It is exactly what I was looking for. Cudo's to Core Electronics for their support.