Programming With STM32: Getting Started With the Nucleo Board and C/C++ - eBook PDF - Quickly download the ebook in PDF format for unlimited reading
Programming With STM32: Getting Started With the Nucleo Board and C/C++ - eBook PDF - Quickly download the ebook in PDF format for unlimited reading
https://ebookluna.com/download/programming-with-
stm32-getting-started-with-the-nucleo-board-and-c-c-ebook-
pdf/
OR CLICK BUTTON
DOWLOAD EBOOK
https://ebookluna.com/download/programming-the-intel-galileo-getting-
started-with-the-arduino-compatible-development-board-ebook-pdf/
Programming Arduino: Getting Started with Sketches 2nd Edition - eBook PDF
https://ebookluna.com/download/programming-arduino-getting-started-with-
sketches-tab-ebook-pdf/
Programming the Photon: Getting Started with the Internet of Things 1st
edition - eBook PDF
https://ebookluna.com/download/programming-the-photon-getting-started-with-
the-internet-of-things-ebook-pdf/
Programming the Raspberry Pi, Third Edition: Getting Started with Python
Simon Monk - eBook PDF
https://ebookluna.com/download/programming-the-raspberry-pi-third-edition-
getting-started-with-python-ebook-pdf/
Programming Arduino: Getting Started with Sketches 3rd Edition Simon Monk -
eBook PDF
https://ebookluna.com/download/programming-arduino-getting-started-with-
sketches-ebook-pdf/
Programming the Photon: Getting Started with the Internet of Things (Tab)
1st Edition - eBook PDF
https://ebookluna.com/download/programming-the-photon-getting-started-with-
the-internet-of-things-tab-ebook-pdf/
https://ebookluna.com/product/ebook-pdf-programming-problem-solving-and-
abstraction-with-c/
Readings from Programming with C++ 1st Edition Kyla Mcmullen - eBook PDF
https://ebookluna.com/download/readings-from-programming-with-c-ebook-
pdf-2/
Readings from Programming with C++ 1st Edition Kyla Mcmullen - eBook PDF
https://ebookluna.com/download/readings-from-programming-with-c-ebook-pdf/
Copyright © 2018 by McGraw-Hill Education. All rights reserved. Except as
permitted under the United States Copyright Act of 1976, no part of this
publication may be reproduced or distributed in any form or by any means, or
stored in a database or retrieval system, without the prior written permission of
the publisher.
ISBN: 978-1-26-003132-4
MHID: 1-26-003132-2
The material in this eBook also appears in the print version of this title: ISBN:
978-1-26-003131-7, MHID: 1-26-003131-4.
All trademarks are trademarks of their respective owners. Rather than put a
trademark symbol after every occurrence of a trademarked name, we use names
in an editorial fashion only, and to the benefit of the trademark owner, with no
intention of infringement of the trademark. Where such designations appear in
this book, they have been printed with initial caps.
This is a copyrighted work and McGraw-Hill Education and its licensors reserve
all rights in and to the work. Use of this work is subject to these terms. Except as
permitted under the Copyright Act of 1976 and the right to store and retrieve one
copy of the work, you may not decompile, disassemble, reverse engineer,
reproduce, modify, create derivative works based upon, transmit, distribute,
disseminate, sell, publish or sublicense the work or any part of it without
McGraw-Hill Education’s prior consent. You may use the work for your own
noncommercial and personal use; any other use of the work is strictly prohibited.
Your right to use the work may be terminated if you fail to comply with these
terms.
Peter enjoys cooking, fine wine, traveling, and spending quality time with his
family. His wife is my daughter, Shauna, and their child is my two-year-old
granddaughter, Evangeline.
Peter and I have spent many hours discussing many topics ranging from ancient
Greek artifacts to the latest technologies impacting modern society. I always
look forward to those interesting and challenging discussions.
CONTENTS AT A GLANCE
3 STM32CubeMX Application
6 Interrupts
7 Timers
9 Analog-to-Digital Conversion
Index
CONTENTS
Preface
3 STM32CubeMX Application
Pinout Tab
MCU Alternative Functions
Integrated Peripheral (IP) Tree Pane
Creating an Example Project using CubeMX
The main.c Code Listing
ARM Cortex Microcontroller Software Interface Standard (CMSIS)
CubeMX-Generated C Code
Compiling and Downloading the Project
Downloading the Hex Code
Summary
6 Interrupts
Interrupts
NVIC Specifications
Interrupt Process
External Interrupts
Interrupt Demonstration
Summary
7 Timers
STM Timer Peripherals
STM Timer Configuration
Update Event Calculation
Polled or Non-interrupt Blink LED Timer Demonstration
Test Run
Interrupt-Driven Blink LED Timer Demonstration
Test Run
Multi-rate Interrupt-Driven Blink LED Timer Demonstration
Test Run
Modification to the Multi-rate Program
Test Run
Summary
9 Analog-to-Digital Conversion
ADC Functions
ADC Module with HAL
ADC Conversion Modes
Channels, Groups, and Ranks
ADC Demonstration
ADC Demonstration Software
Summary
Microcomputer vs Microcontroller
I believe at the start of this book that it must make very clear the differences
between a microcomputer and a MCU. The reason for this distinction is very
simple: STM is a company that designs and manufacturers MCUs, not
microcomputers. I think my following definition of a MCU is as good as any
that I have read:
Right away, you can see from the definition that a MCU contains a
microprocessor which is sometimes referred to as a microcomputer. There also
must be both dynamic or volatile memory as well as nonvolatile or static
memory, where the latter holds any programs or scripts necessary to run the
Discovering Diverse Content Through
Random Scribd Documents
SUNSETS ON CLEARWATER LAKE, MINN.
Second Evening
A sea of fire in which a sky
Of lavender and blue and red
Together with the clouds of changing dye
Reflected are—divinely wed;
And we, who rove about, are led
By an illusion, such as seldom seen:
A strange receding of the deep,
As if we sat above a waterfall,
O’er which our skiff full soon must leap
Into immensity, bright, hyaline,
Where brooding spirits beck and call.
Third Evening
To-night the rising storm-clouds hide
The sun’s departure from our gaze;
A heavy mist begins to glide
Across the water’s ashen face;
A host of swallows, circling, fly
Like cavalcades upon a plain;
A myriad of insects die,
Uncounted lives, like drops of rain
Lost in the sea, lost in the All,
The life, the death, the Oversoul.
And little children laugh and play
Upon the beach, and on the pier,
In them the closing of the day,
With gathering storm, awakes no fear,
For in their souls the light remains,
That oped the water-lily’s breast,
And woke the warbler’s glad refrain,
And all the heart of nature blest;
What matters though the clouds obscure
Its finished course one single eve,
If we, like children, can allure
Even clouds and mist to pleasure give.
Fourth Evening
The glitt’ring wavelets blind my sight,
And neath the hand I needs must scan
The dazzling shimmer of the light,
Which like Seraphic highways span
The breeze-swept, glad expanse;
Methinks I see the Naiads dance
To music of the swaying reeds
And rushes, where the narrows jut,
Adorned with many-colored weeds,
From Neptune’s gardens freshly cut.
And the children’s faces brighten, and their laughter has a ring
Which no winter-sport could give them, and no lamplight play could bring;
Even the aged in whose bosom life’s enchantments seldom sing,
Take a pleasure in the message of this happy month of spring.
II
Sometimes, when in uphappy mood,
I on my limitations brood,
And think how narrow the confines,
In which the soul almost repines,
I turn again—just to behold
My finny friends of burnished gold.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookluna.com