Skip to main content

Conversion Between Analog and Digital Values

  • Chapter
  • First Online:
Embedded System Design with ARM Cortex-M Microcontrollers

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 79.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Arm: ARM Compiler: armcc User Guide, arm dui0472k edn (2014)

    Google Scholar 

  2. Python Community. https://docs.python.org/3/library/datatypes.html. Accessed 4 June 4 2021

  3. Mbed. https://os.mbed.com/handbook/C-Data-Types. Accessed 4 June 2021

  4. STMicroelectronics. STM32F405/415, STM32F407/417, STM32F427/437 and STM32F429/439 advanced Arm-based 32-bit MCUs, rm0090 rev 19 ed. (2021)

    Google Scholar 

  5. Ünsalan, C., Gürhan, H.D.: Programmable Microcontrollers with Applications: MSP430 LaunchPad with CCS and Grace. McGraw-Hill, New York (2013)

    Google Scholar 

  6. Ünsalan, C., Gürhan, H.D., Yücel, M.E.: Programmable Microcontrollers: Applications on the MSP432 LaunchPad. McGraw-Hill, New York (2018)

    Google Scholar 

  7. Ü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)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

7.1 Electronic supplementary material

Rights and permissions

Reprints and permissions

Copyright information

© 2022 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics