Microcontrollers are embedded into larger systems to provide benefits such as better performance, more features, better efficiency, lower costs and better dependability. This textbook introduces students to creating microcontroller-based embedded systems featuring an ARM Cortex-M CPU core.Chapter 1 introduces students to the concepts of MCU-based embedded systems, and how they differ from general-purpose computers. It then introduces the ARM Cortex-M0+ CPU, the Kinetis KL25Z MCU, and the low cost FRDM-KL25Z MCU development board.Chapter 2 presents the general purpose I/O peripheral to provide an early, hands-on experience with reading switches and lighting LEDs using C code. It also introduces the CMSIS hardware abstraction layer, which simplifies software access to peripherals.Chapter 3 introduces multitasking on the CPU, with the goals of improving responsiveness and software modularity while reducing CPU overhead. The interplay of interrupts, peripherals and schedulers (both cooperative and preemptive) is examined.Chapter 4 presents the ARM Cortex-M0+ processor core, including organization, registers, memory, and instruction set. It then discusses interrupts and exceptions, including CPU response and hardware configuration. Designing software for a system with interrupts is discussed, including program design (including partitioning work), interrupt configuration, writing handlers in C, and sharing data safely given preemption.Chapter 5 first gives an overview of tool-chain which translates a program from C source code to executable object code. It then shows side-by-side the source code and the object code the tool-chain has generated to implement it. Topics covered include functions, arguments, return values, activation records, exception handlers, control flow constructs for loops and selection, memory allocation and use, and accessing data in memory.Chapter 6 presents analog interfacing, starting with theory and ending with practical implementations. Quantization and sampling are presented as a foundation for digital to analog conversion, and analog to digital conversion. The DAC, ADC and analog comparator peripherals are presented and used.Chapter 7 presents timer peripherals and their use for generating a periodic interrupt or a pulse-width modulated signal, or for measuring elapsed time or a signal’s frequency. Watchdog timers, used to detect and reset an out-of-control program, are also discussed. The SysTick, PIT, TPM and COP timers are examined.Chapter 8 discusses serial communications, starting with the fundamentals of data serialization, framing, error detection, media access control and addressing. Software queues are introduced to show how to buffer data between communication ISRs and other parts of the program. Three protocols and their supporting peripherals are investigated next: SPI, asynchronous serial (UART) and I2C. UART communication is demonstrated using the FRDM-KL25Z’s debug MCU as a serial port bridge over USB to the PC. I2C communication is demonstrated using the FRDM-KL25Z’s built-in 3 axis accelerometer with I2C interface.Chapter 9 introduces the direct memory access peripheral and its ability to transfer data autonomously, offloading work from the CPU and offering dramatically improved performance. Examples include using DMA for bulk data copying, and for DAC-based analog waveform generation with precise timing.An appendix covers how to measure the power and energy use on the FRDM-KL25Z board, including disconnecting the debug MCU to reduce power. Energy measurement using an ultracapacitor is also presented.For use in ECE, EE, and CS departments.
✔ Author(s): Alexander G Dean
✔ Title: Embedded Systems Fundamentals with ARM Cortex-M based Microcontrollers: A Practical Approach FRDM-KL25Z Edition
✔ Rating : 4.4 out of 5 base on (51 reviews)
✔ ISBN-10: 1911531034
✔ Language: English
✔ Format ebook: PDF, EPUB, Kindle, Audio, HTML and MOBI
✔ Device compatibles: Android, iOS, PC and Amazon Kindle
Readers' opinions about Embedded Systems Fundamentals with ARM Cortex by Alexander G Dean
Leyanne Kemp
Delve into a dystopian world where survival hinges on ingenuity and courage. The author's vivid descriptions and fast-paced narrative keep you on the edge of your seat. The protagonist's journey is filled with thrilling moments and unexpected twists. The world-building is detailed and immersive, creating a believable and haunting setting. It's a gripping tale that explores themes of power, resistance, and hope. Ideal for fans of dystopian fiction.
Jayleen Vargas
Experience the inspiring journey of an individual overcoming incredible odds in this powerful memoir. The author's candid and heartfelt writing brings their story to life. Each chapter reveals the resilience and strength of the human spirit. The narrative is both informative and deeply moving, offering valuable life lessons. It's a story that motivates and inspires, making it a must-read. Perfect for those seeking inspiration and personal growth.
Alicia Lawrence
Embark on a journey through time with a historical novel that spans generations. The author's meticulous research and engaging prose create a vivid and immersive experience. Each character's story is intricately woven into the fabric of history. The narrative explores themes of legacy, identity, and change with depth and insight. It's a captivating blend of personal and historical drama. Perfect for fans of multi-generational sagas.
Dear Bob and Sue: Season 3, My Guide to Magical Creatures: Create your own world of magical creatures! Kid’s activity book. (My Guide Activity Books), Unsettling Truths: The Ongoing, Dehumanizing Legacy of the Doctrine of Discovery, The Narrow Gate, Founding Martyr: The Life and Death of Dr. Joseph Warren, the American Revolution’s Lost Hero, How Do You Know? A Guide to Clear Thinking About Wall Street, Investing, and Life, Rick Steves Best of Germany: With Salzburg (Rick Steves Travel Guide), Family Practice Guidelines, Fourth Edition, Harper Learns Body Boundaries: Teaching Kids Consent, Respecting Personal Space, Private Parts Safety, When To Speak Up And Say No, And Social Life Skills (Enabling Kids To Thrive), Spiders!: A My Incredible World Picture Book for Children (My Incredible World: Nature and Animal Picture Books for Children),