Are Trinket M0 Input pins connected to internal ADC

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Jerryy
 
Posts: 29
Joined: Thu Feb 22, 2018 9:06 pm

Are Trinket M0 Input pins connected to internal ADC

Post by Jerryy »

I'm attempting to read the temperature using a TMP36 Temperature Sensor following the example
at https://learn.adafruit.com/tmp36-temper ... cuitpython.
In this example, the output voltage of the Sensor goes in port A0 of a Feather M0
The document says that there is an analog to digital converter built-in to the board.
However Instead of a Feather M0 I am using a Trinket M0.
When I looked on the specification for the Trinket M0 it does say there A0 - A4 can
be used as analog input pins but I don't see any mention of a built in ADC.
Am I correct in assume that all the analog pin A0 - A4 on the Trinket M0 when used as input pins, go into
an ADC and if so, how many bits of data are in the digital value outputted. Thanks in advance for
any assistance.

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Are Trinket M0 Input pins connected to internal ADC

Post by dastels »

Yes, analog inputs use the ADC to convert the voltage on the pin to a corresponding number.

Dave

User avatar
Jerryy
 
Posts: 29
Joined: Thu Feb 22, 2018 9:06 pm

Re: Are Trinket M0 Input pins connected to internal ADC

Post by Jerryy »

Thanks for the reply, Would you know how many bits of data the ADC outputs?

Thanks
Jerry

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Are Trinket M0 Input pins connected to internal ADC

Post by dastels »

It depends on the MCU, but the SAMD21/51 are 12 bit.

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Trinket ATTiny, Trinket M0”