Abstract
We have seen how 1 bit (as digital value) can be input to or output from the microcontroller in Chap. 4. The microcontroller should also process analog values (whether being electrical or other type) for some applications. Therefore, we will first explain what we should understand from analog and digital concepts in this chapter. Afterward, we will focus on the analog to digital conversion (ADC) operation in embedded systems. We will also handle these operations in the STM32F4 microcontroller via practical examples. Next, we will cover digital to analog conversion (DAC) both in general terms and specific to the STM32F4 microcontroller. As in the ADC case, we will provide usage examples for the DAC module. Therefore, the reader will be able to process an analog value via digital microcontroller. As the end of the chapter application, we will add ADC and DAC operations to the robot vacuum cleaner developed throughout the book.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Arm: ARM Compiler: armcc User Guide, arm dui0472k edn (2014)
Python Community. https://docs.python.org/3/library/datatypes.html. Accessed 4 June 4 2021
Mbed. https://os.mbed.com/handbook/C-Data-Types. Accessed 4 June 2021
STMicroelectronics. STM32F405/415, STM32F407/417, STM32F427/437 and STM32F429/439 advanced Arm-based 32-bit MCUs, rm0090 rev 19 ed. (2021)
Ünsalan, C., Gürhan, H.D.: Programmable Microcontrollers with Applications: MSP430 LaunchPad with CCS and Grace. McGraw-Hill, New York (2013)
Ünsalan, C., Gürhan, H.D., Yücel, M.E.: Programmable Microcontrollers: Applications on the MSP432 LaunchPad. McGraw-Hill, New York (2018)
Ünsalan, C., Yücel, M.E., Gürhan, H.D.: Digital Signal Processing Using Arm Cortex-M based Microcontrollers: Theory and Practice. Arm Education Media, Cambridge (2018)
Author information
Authors and Affiliations
7.1 Electronic supplementary material
Rights and permissions
Copyright information
© 2022 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Ünsalan, C., Gürhan, H.D., Yücel, M.E. (2022). Conversion Between Analog and Digital Values. In: Embedded System Design with ARM Cortex-M Microcontrollers. Springer, Cham. https://doi.org/10.1007/978-3-030-88439-0_7
Download citation
DOI: https://doi.org/10.1007/978-3-030-88439-0_7
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-88438-3
Online ISBN: 978-3-030-88439-0
eBook Packages: EngineeringEngineering (R0)