Skip to Content
Beginning STM32: Developing with FreeRTOS, libopencm3 and GCC
book

Beginning STM32: Developing with FreeRTOS, libopencm3 and GCC

by Warren Gay
June 2018
Intermediate to advanced
418 pages
8h 26m
English
Apress
Content preview from Beginning STM32: Developing with FreeRTOS, libopencm3 and GCC
© Warren Gay 2018
Warren GayBeginning STM32https://doi.org/10.1007/978-1-4842-3624-6_14

14. Analog-to-Digital Conversion

Warren Gay1 
(1)
St. Catharines, Ontario, Canada
 

Embedded computing often needs to convert an analog signal level into a digital form for analysis. One application is measuring temperature by the voltage developed across a semiconductor. It is no surprise then that the STM32 platform has both an analog-to-digital converter (ADC) and a built-in channel to the ADC for measuring temperature.

This chapter’s demonstration project will illustrate how to use the libopencm3 routines to access the ADC peripheral, reading analog channels PA0 and PA1, in addition to reading the chip temperature and its internal reference voltage.

STM32F103C8T6 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning STM32: Developing with FreeRTOS, libopencm3, and GCC

Beginning STM32: Developing with FreeRTOS, libopencm3, and GCC

Warren Gay

Publisher Resources

ISBN: 9781484236246Purchase LinkPublisher Website