Index Index
0b Section A.3
0x Section A.3
2N3904 Subsection 5.2.6
2N3906 Subsection 5.2.6
7-bit address Subsection 12.2.5
absolute maximum ratings Subsection 4.1.1
accelerometer Subsection 4.1.2 Subsection 12.1.2
active-low Subsection 2.1.2
actuator signal chain Subsection 11.2.1
Adafruit Bluefruit LE UART Friend Subsection 15.1.6
reading two channels Subsection 14.3.2
ADC channel Subsection 6.2.2
adc_read() Subsection 6.2.5
adc_setChannel() Subsection 14.3.2
ADCPot.c Subsection 6.2.5
ADEN Subsection 6.2.4
ADRDY Subsection 6.2.4
ADSTART Subsection 6.2.4 Subsection 14.3.2
advertising (BLE) Subsection 15.1.4
AFRL Subsection 3.3.1
AI policy Subsection 1.4.4
alternate function Subsection 1.1.2 Subsection 3.3.1 Subsection 15.2.1
AN-1057 Subsection 12.5.7 Subsection 12.6.6
Analog Discovery 2 Subsection 2.2.2 Subsection 7.2.3 Subsection 15.3.2
analog front end Subsection 6.1.1
analog input Subsection 6.2.2
analog mode Subsection 1.1.2 Subsection 6.2.4
analog-to-digital converter Subsection 6.1.1
APBENR1 Subsection 3.3.2
arbitration Subsection 10.4.10
Arduino header Subsection 1.2.1
arithmetic shift Subsection 12.6.4
array Section A.8
array index Section A.8
assignment in a condition Section A.6
AT commands Subsection 15.2.3 Subsection 15.3.3
AT+FACTORYRESET Subsection 15.2.3 Subsection 15.3.3
AT+GAPDEVNAME Subsection 15.2.3 Subsection 15.3.3
atan2() Subsection 12.5.7 Subsection 12.6.6
atomic bit set/reset Subsection 9.2.8
auto-increment Subsection 12.3.4
auto-reload register Subsection 8.1.2
back electromotive force Subsection 11.1.1
back-EMF Subsection 11.1.1 Subsection 11.2.1
base address Subsection 1.6.2
base-current limiting resistor Subsection 5.2.4
baud rate Subsection 3.1.2 Subsection 3.3.3
binary Section A.3
bipolar junction transistor Subsection 5.1.2
bisection Subsection 7.1.3 Subsection 7.2.1
bit Section A.3
bit manipulation Appendix C
bit mask Subsection 1.2.3 Section 1.5
and bit number Section A.9
bit numbering Section A.3
bit period Subsection 3.1.2
bit twiddling Section 1.5
bit-field macros Subsection 3.2.3 Subsection 5.2.3
bitwise operators Section 1.5
connection modes Subsection 15.1.2
Blinky Subsection 1.2.2
first run Section D.3
blinkyTimerInt.c Subsection 8.2.7
blocking loop Subsection 2.5.2
Bluefruit LE Connect Subsection 15.1.6
Bluetooth Classic Subsection 15.1.1
Bluetooth Low Energy Subsection 15.1.1
board simulator Subsection 1.2.5 Chapter 17
braces Section A.9
breadboard Subsection 1.4.3
break Section A.6
breakout board Subsection 12.1.2
breakpoint Subsection 7.1.7
broadcast mode Subsection 15.1.2
brownout Subsection 13.2.6
BRR (GPIO) Subsection 9.3.2
BRR (USART) Subsection 3.3.3
BS107P Subsection 5.2.6
BS250P Subsection 5.2.6
busy-wait loop Subsection 1.4.2 Subsection 8.1.1
bypass capacitor Subsection 7.2.3
C for Python programmers Appendix A
calibration Subsection 12.6.5
capacitive sensing Subsection 12.3.1
capacitor markings Subsection 2.4.1
carriage return Subsection 3.2.2 Subsection 3.4.3
CC1E Subsection 11.3.2
CCRDY Subsection 14.3.2
CdS cell Subsection 14.1.1
central (BLE) Subsection 15.1.3
char Section A.4
characteristic (BLE) Subsection 15.1.5
clearing a bit Subsection 1.2.3 Section 1.5 Appendix C
client (BLE) Subsection 15.1.3
clock domain Subsection 16.1.2
clock stretching Subsection 10.4.10
coding style Section A.9
command mode Subsection 15.1.6 Subsection 15.2.3
command pulse Subsection 13.1.4 Subsection 13.4.1
comment Section A.2
useful Section A.9
common cathode Subsection 10.3.3
common ground Subsection 13.1.5
Common Microcontroller Software Interface Standard Subsection 5.2.3
comparator Subsection 6.1.4
compiled language Section A.1
compiler Subsection 1.4.1 Section A.1
compiler error message Subsection 7.1.2
compiler optimization Subsection 8.3.6
component bay Chapter 17
contact bounce Subsection 2.1.3 Subsection 2.4.1 Section 2.5 Subsection 9.3.6
control terminal Subsection 5.1.1
controller (I2C) Subsection 10.1.3 Subsection 10.4.2
controller gain Subsection 14.2.4 Subsection 14.3.3
conversion time Subsection 6.2.7 Subsection 6.3.1
CoolTerm Subsection 3.2.1
chart view Subsection 12.5.6
installation Section D.6
Cortex-M0+ Subsection 1.6.1
CR (ADC) Subsection 6.2.4 Subsection 6.3.3
CR1 (PWR) Subsection 16.1.2
CR1 (TIM14) Subsection 8.2.3 Subsection 8.3.1
CR1 (USART) Subsection 3.3.4
CR3 (USART1) Subsection 15.3.1
CTRL_REG1_A Subsection 12.3.5 Subsection 12.4.2
CTRL_REG4_A Subsection 12.3.5 Subsection 12.4.3
CTSE Subsection 15.3.1
current gain Subsection 5.1.2
current-limiting resistor Subsection 1.4.3
dark resistance Subsection 14.1.4
data mode Subsection 15.1.6 Subsection 15.2.3
datasheet Subsection 4.1.1 Subsection 5.2.6
absolute maximum ratings Subsection 4.1.1
application information Subsection 4.1.1
electrical characteristics Subsection 4.1.1
list of documents Appendix F
recommended operating conditions Subsection 4.1.1
DC motor Subsection 11.1.1 Subsection 11.2.1
dead band Subsection 11.5.5
dead band width Subsection 13.2.2 Subsection 13.4.1
dead zone Subsection 14.3.3
debouncing Subsection 2.1.3 Section 2.5 Subsection 9.3.6
debug perspective Subsection 7.1.4
debugger Subsection 7.1.4 Subsection 7.2.5
declaration Section A.4
delay_ms() Subsection 1.4.2 Subsection 8.1.1
deserializer Subsection 3.1.1
device driver Subsection 10.3.9 Subsection 12.2.7
diagnostic printf Subsection 7.1.3
differential capacitor Subsection 12.6.1
digital input Subsection 2.1.1 Section 2.3
digital multimeter (DMM) Subsection 1.4.3
__disable_irq() Subsection 8.2.6 Subsection 9.3.5
display RAM Subsection 10.3.5 Subsection 10.4.12
DR (ADC) Subsection 6.2.4 Subsection 6.3.3
DRV5053 Subsection 4.1.2
DS3231 Subsection 4.1.2
duty cycle Subsection 11.1.3 Subsection 11.2.5
dynamic power consumption Subsection 16.1.1
edge detection Subsection 2.4.2
EE-SX672 Subsection 11.6.6
electrostatic discharge (ESD) Subsection 5.2.5
embedded system Subsection 4.1.1
empty statement Section A.6
EMR1 Subsection 9.3.3
__enable_irq() Subsection 8.2.6
ES28.h Subsection 1.4.2
exception entry Subsection 8.3.5
Exclude from Build Subsection 1.3.1
Extended Interrupt and Event Controller Subsection 9.1.3
EXTI4_15_IRQHandler Subsection 9.2.6
fall-through Section A.6
falling edge Subsection 9.2.5
feedback loop Subsection 13.1.2 Subsection 14.2.4
fetch-decode-execute Subsection 1.6.1
finite state machine Section 2.6 Subsection 2.7.2
action Section 2.6
event Section 2.6
state Section 2.6
transition Section 2.6
flash memory Subsection 1.4.1 Section A.1
floating pin Subsection 2.1.2
floating-point number Subsection 7.2.4 Subsection 12.5.8
floating-point unit Subsection 12.5.8
for loop Subsection 7.2.2 Section A.6
force-sensing resistor Subsection 14.1.2
format specifier Subsection 3.2.2 Subsection 7.2.4
full duplex Subsection 3.1.4
full-scale range Subsection 12.3.3 Subsection 12.4.3
function Section A.7
GATT Subsection 15.1.5
gear train Subsection 13.1.1
general-purpose input/output Subsection 1.1.2
Generic Access Profile Subsection 15.1.4
Generic Attribute Profile Subsection 15.1.5
geometric mean Subsection 14.3.1
global variable Section A.7
GPIO Subsection 1.1.2
GPIO interrupt Subsection 9.1.3
GPIO port Subsection 1.1.2
GPIO_TypeDef Subsection 1.6.2
gyroscope Subsection 12.3.2
H-bridge Subsection 11.1.2 Subsection 11.2.2
half duplex Subsection 10.1.3 Subsection 10.4.4
Hall-effect sensor Subsection 4.1.2
hardware debouncing Subsection 2.1.3 Subsection 2.5.1
hardware flow control Subsection 15.2.1 Subsection 15.3.1
header comment Section A.9
header file Subsection 3.4.1 Section A.2 Section A.7
hexadecimal Section A.3
high impedance Subsection 11.2.3 Subsection 11.6.3
high-side switch Subsection 5.2.4
hysteresis Subsection 2.1.1
multiple devices on one bus Subsection 12.2.1
I2C address Subsection 4.1.2 Subsection 10.1.6 Subsection 10.4.2
i2c1_byteRead() Subsection 10.3.7
i2c1_byteWrite() Subsection 10.3.7 Subsection 10.3.8 Subsection 10.4.9
i2c1_init() Subsection 10.3.6 Subsection 10.3.7
i2c1_memRead() Subsection 10.3.7 Subsection 10.4.9
i2c1_memWrite() Subsection 10.3.5 Subsection 10.3.7
IEEE 754 Subsection 12.6.7
illuminated resistance Subsection 14.1.4
inclination sensing Subsection 12.5.7
#include Section A.2
include path Section D.2
increment operator (++) Section A.6
indentation Section A.9
independent watchdog Subsection 16.1.3
infinite loop Subsection 1.2.3
initialization Section A.4 Section A.9
input capture Subsection 8.3.7
int Section A.4
int16_t Subsection 12.3.4
integer division Subsection 3.3.3 Subsection 12.6.4 Subsection 13.2.4 Subsection 13.4.4 Subsection 14.3.3 Section A.5
integer overflow Section A.4
integer scaling Subsection 13.4.4
Inter-Integrated Circuit Subsection 10.1.3
interface driver Subsection 10.3.9
interrupt Subsection 8.1.4 Subsection 8.3.4
interrupt priority Subsection 8.3.4
interrupt service routine Subsection 8.1.4 Subsection 8.3.6
interrupt-driven main loop Subsection 16.1.2
__io_putchar() Subsection 3.4.3
IRF9Z24N Subsection 5.2.6
IRFZ24N Subsection 5.2.6
ISR (ADC) Subsection 6.2.4 Subsection 6.3.3
ISR (I2C) Subsection 10.3.8 Subsection 10.4.5
ISR (USART) Subsection 3.3.5
Kirchhoff’s voltage law Subsection 1.4.3
KSC2073 Subsection 5.2.6
Lab 1 Subsection 1.4.4
Lab 2 Section 2.8
Lab 3 Section 5.2
Lab 6 Subsection 11.5.5
Lab 7 Subsection 12.5.9
Lab 8 Subsection 14.2.2
Lab 9 Subsection 15.2.4
left shift Subsection 1.2.3
left-justified Subsection 12.3.4 Subsection 12.6.3
light-dependent resistor Subsection 14.1.1
LIS3DH Subsection 4.1.2
load cell Subsection 14.1.2
load terminal Subsection 5.1.1
local variable Section A.7
log-log plot Subsection 14.2.1
logic analyzer Subsection 7.2.3 Subsection 12.2.4
logic-level MOSFET Subsection 5.1.3 Subsection 5.2.5
logical operators Section A.6
low-power mode Subsection 16.1.2 Subsection 16.2.1
low-side switch Subsection 5.2.4
LPen Subsection 12.4.2
lsm303_AccelInit() Subsection 12.5.3
lsm303_AccelReadRaw() Subsection 12.3.4
lsm303_AccelRegisterRead() Subsection 12.2.3
lsm303_AccelRegisterWrite() Subsection 12.5.3
LSM303AGR Subsection 12.1.2 Subsection 12.6.2
lsm303agr.h Subsection 12.2.7 Subsection 12.6.2
macro expansion Subsection 7.1.2
magic number Subsection 7.2.2 Section A.9
main() Subsection 1.3.1 Section A.2
memory map Subsection 1.4.1 Subsection 1.6.2
memory-mapped I/O Subsection 1.4.1 Subsection 1.6.2
mesh mode Subsection 15.1.2
metal-oxide-semiconductor field-effect transistor Subsection 5.1.3
Micro-Electro-Mechanical System Subsection 12.3.1
microcontroller Subsection 1.1.1
milli-g (mg) Subsection 12.3.3
milliseconds() Subsection 11.5.4
MOD pin Subsection 15.1.6 Subsection 15.2.3
N-channel MOSFET Subsection 5.2.5
named constant Subsection 7.2.2
naming style Section A.9
Nested Vectored Interrupt Controller Subsection 8.3.4
non-blocking read Subsection 3.2.4 Subsection 15.2.2
NPN BJT Subsection 5.1.2 Subsection 5.2.4
NRST Subsection 7.2.3
Nucleo-64 Subsection 1.2.1
NVIC_EnableIRQ() Subsection 8.2.6
OC1M Subsection 11.3.4
open collector Subsection 11.5.2 Subsection 11.6.6
optical incremental sensor Subsection 11.4.1
oscilloscope Subsection 2.2.2 Subsection 7.1.9 Subsection 13.2.5
cursor Subsection 2.2.2
time base Subsection 2.2.2
trigger Subsection 2.2.2
out-of-bounds access Section A.8
output compare Subsection 8.3.7
output data rate Subsection 12.4.2
overrun error Subsection 5.2.2
oversampling Subsection 3.3.3
P-channel MOSFET Subsection 5.2.5
pa0_adc_init() Subsection 6.2.5
parity bit Subsection 3.1.3
pass by value Section A.7
pb4_exti_init() Subsection 9.2.5
PDV-P8001 Subsection 14.1.4
peripheral (BLE) Subsection 15.1.3
peripheral clock Subsection 1.1.3
peripheral register Subsection 1.1.3
persistence of vision Subsection 10.2.1
photocell Subsection 14.1.1
photointerrupter Subsection 11.4.1
photoresistor Subsection 14.1.1
phototransistor Subsection 11.4.1
PNP BJT Subsection 5.2.4
point-to-point mode Subsection 15.1.2
polling Subsection 2.4.2 Subsection 8.1.1 Subsection 8.1.4 Subsection 8.2.4 Subsection 9.1.1 Subsection 11.6.7
potentiometer Subsection 6.1.3 Subsection 6.2.3
power consumption Subsection 16.1.1
power rail Subsection 1.4.3
PR (IWDG) Subsection 16.1.3 Subsection 16.2.2
preprocessor Section A.2
prescaler Subsection 8.1.2 Subsection 8.1.3 Subsection 8.2.2 Subsection 13.2.3 Subsection 13.4.2
program counter Subsection 1.6.1 Subsection 8.3.4
proof mass Subsection 12.3.1
proportional control Subsection 14.3.3
Protocol tab Subsection 15.2.2 Subsection 15.3.2
prototype Section A.7
pull-down resistor Subsection 2.1.2
pull-up resistor Subsection 2.1.2 Section 2.3 Subsection 10.4.10 Subsection 11.5.2
pulse width Subsection 13.1.4
pulse-width modulation Subsection 11.1.3
push-pull Subsection 10.3.6
push-pull output Subsection 1.4.1
pushbutton Subsection 2.2.3
servo command Subsection 13.1.4 Subsection 13.2.2
PWM frequency Subsection 11.6.2
PWM mode 1 Subsection 13.4.2
PWM resolution Subsection 11.3.5 Subsection 11.6.2 Subsection 13.2.3
quadrature encoder Subsection 11.6.5
quantization Subsection 6.1.2
R/W bit Subsection 10.1.6
race condition Subsection 9.2.8 Subsection 9.3.5
RC filter Subsection 2.5.1
RC time constant Subsection 2.5.1
read-modify-write Subsection 6.2.6 Subsection 8.2.5 Subsection 8.3.2 Subsection 9.2.8
real-time clock Subsection 4.1.2
reference manual Subsection 2.2.3 Appendix F
reference voltage Subsection 6.1.2
register Section A.2
address offset Appendix B
reference table Appendix B
register access type Subsection 6.2.6 Subsection 8.2.5 Subsection 8.3.2
register address map Subsection 12.2.7 Subsection 12.6.2
register panel Chapter 17
regulator board Subsection 13.1.5 Subsection 13.2.6
remainder operator (%) Section A.5
repeated START Subsection 10.4.8 Subsection 10.4.11
reserved bits Subsection 8.3.2
reset and clock control Subsection 1.1.3
reset value Subsection 7.1.6
resolution (ADC) Subsection 6.1.2
resolution mode Subsection 12.3.3 Subsection 12.4.3
retarget layer Subsection 3.4.3
return type Section A.7
right shift Subsection 12.2.3 Subsection 12.6.4
round() Subsection 12.5.8
RTSE Subsection 15.3.1
RTSR1 Subsection 9.2.5
Run mode Subsection 16.1.2
sample-and-hold Subsection 6.1.4
sampling interval Subsection 14.2.4 Subsection 14.3.3
sampling time Subsection 6.3.2
saturation (transistor) Subsection 5.1.2 Subsection 5.2.4
Schmitt trigger Subsection 2.1.1
scientific debugging method Subsection 7.2.1
scope Section A.7
semicolon Section A.2
sensitivity Subsection 12.3.3 Subsection 12.5.7 Subsection 14.2.1
sensor signal chain Subsection 6.1.1
serial wire debug Subsection 7.1.6
serializer Subsection 3.1.1
server (BLE) Subsection 15.1.3
service (BLE) Subsection 15.1.5
servomotor Subsection 13.1.1
setting a bit Subsection 1.2.3 Section 1.5 Appendix C
seven-segment display Subsection 10.1.1 Subsection 10.3.3
SevenSeg_blink() Subsection 10.3.11
SevenSeg_dim() Subsection 10.3.11
SevenSeg_init() Subsection 10.3.10
SevenSeg_write() Subsection 10.3.11
SFRs tab Subsection 7.1.5
shoot-through Subsection 11.2.2
short brake Subsection 11.2.2 Subsection 11.6.3
Shutdown mode Subsection 16.1.2 Subsection 16.2.1
Si7021 Subsection 4.1.2
single-stepping Subsection 7.1.5
Sleep mode Subsection 16.1.2 Subsection 16.2.1
SLEEPDEEP Subsection 16.1.2 Subsection 16.2.1
SMPR Subsection 6.3.2
software debouncing Subsection 2.1.3 Subsection 2.5.2
solar tracker Subsection 14.1.5 Subsection 14.2.4
source resistance Subsection 6.3.2
special function register Subsection 7.1.5
SR (IWDG) Subsection 16.1.3 Subsection 16.2.2
SR (TIM14) Subsection 8.2.4 Subsection 8.3.1
firmware update Subsection D.4.1
server Subsection D.4.2
stack Subsection 8.3.4
stack frame Subsection 8.3.5
stack pointer Subsection 1.6.1
staircase effect Subsection 3.4.3
stall torque Subsection 13.1.3
Standby mode Subsection 16.1.2 Subsection 16.2.1
start bit Subsection 3.1.3
START condition Subsection 10.1.4 Subsection 10.4.3
start_conversion() Subsection 6.2.5
starter files Appendix E
startup file Subsection 8.2.6
state diagram Section 2.6 Subsection 2.7.3
static power consumption Subsection 16.1.1
stdint.h Section A.4
STEMMA QT Subsection 12.1.2
Step Into Subsection 7.2.5
Step Over Subsection 7.2.5
STM32C031C6 Subsection 1.1.1
stm32c0xx.h Section A.2
STM32CubeIDE Subsection 1.2.2 Subsection 7.1.4 Section A.1
excluding a file from the build Subsection 12.5.2
installation Appendix D
stop bit Subsection 3.1.3
STOP condition Subsection 10.1.4 Subsection 10.4.3
Stop mode Subsection 16.1.2 Subsection 16.2.1
strain gage Subsection 14.1.2
sub-address Subsection 12.3.4
successive approximation Subsection 6.1.4 Subsection 6.2.7
switch Subsection 2.7.2 Section A.6
synchronous Subsection 10.1.3 Subsection 10.4.4
system clock Subsection 16.1.2
system window watchdog Subsection 16.1.3
SysTick Subsection 11.5.4
target (I2C) Subsection 10.1.3 Subsection 10.4.2
temperature sensor Subsection 4.1.2
TemplateProject Subsection 1.4.4 Appendix D
copying Section D.5
creating Section D.2
testing a bit Section 1.5 Appendix C
Thayer Shares Section D.1
thermistor Subsection 14.1.2
threshold voltage Subsection 5.1.3
tilt Subsection 12.5.7
TIM1 Subsection 8.3.7
tim14_500ms_init() Subsection 8.2.3
TIM14_IRQHandler() Subsection 8.2.6
TIM14_IRQn Subsection 8.2.6
tim14_pa7_pwm_init() Subsection 11.3.4 Subsection 13.2.4 Subsection 13.4.3
tim14_pwm_set() Subsection 11.3.4 Subsection 13.2.4
TIM16_IRQHandler() Subsection 13.2.4
tim16_ms_interrupt_init() Subsection 13.2.4
TIM17 Subsection 8.3.7
TIM3 Subsection 8.3.7
time-division multiplexing Subsection 10.2.1 Subsection 10.3.3
timer Subsection 8.1.2
timer period Subsection 8.1.3 Subsection 8.2.2 Subsection 8.3.1
TIMINGR Subsection 10.4.5 Subsection 10.4.6
TIP42 Subsection 5.2.6
TMP235 Subsection 4.1.2
toggling a bit Section 1.5 Appendix C
transfer function Subsection 4.1.2
transistor Subsection 5.1.1
two’s complement Subsection 12.3.4 Subsection 12.6.3
typedef enum Subsection 2.7.2 Section A.6
UART Section 3.1
UART frame Subsection 3.1.3
UART service Subsection 15.1.6
uart.c Subsection 3.4.2
uart.h Subsection 3.4.1
uart1_init() Subsection 15.2.2
uart2_init() Subsection 3.2.2 Section 3.3
uart2_read() Subsection 3.3.5 Subsection 15.2.2
uart2_write() Subsection 3.3.5
uint16_t Section A.4
uint32_t Section A.4
uint8_t Section A.4
undefined behavior Section A.4
unit test Subsection 12.2.7 Subsection 12.5.4
universal asynchronous receiver-transmitter Section 3.1
unsigned Section A.4
update event Subsection 8.1.2 Subsection 11.3.2
updateServo() Subsection 13.2.4
USART Subsection 3.1.6
USART1 Subsection 15.2.1
USART2 Section 3.3
USART2EN Subsection 3.3.2
USARTDIV Subsection 3.3.3
user LED Subsection 1.2.1
UUID Subsection 15.1.4
Variables tab Subsection 7.1.8
vector table Subsection 8.2.6 Subsection 8.3.4 Subsection 9.2.3
void Section A.7
volatile Subsection 8.2.6 Subsection 8.3.6
voltage divider Subsection 6.1.3 Subsection 14.1.3 Subsection 14.3.1
voltage regulator Subsection 11.2.4
watchdog Subsection 16.1.3
watchdog timeout Subsection 16.2.2
Waveforms Subsection 2.2.2 Subsection 15.3.2
installation Section D.6
weak symbol Subsection 3.4.3
__WFI() Subsection 16.1.2 Subsection 16.2.1
while (1) Section A.6
while loop Subsection 7.2.2 Section A.6
WHO_AM_I Subsection 12.1.3 Subsection 12.2.3
WINR Subsection 16.2.2
wiper Subsection 6.1.3
workspace Section D.1
worst-case design Subsection 5.2.6
write-1-to-clear Subsection 6.2.6
WWDG Subsection 16.1.3
XOR Section 1.5
zero-g offset Subsection 12.3.3 Subsection 12.6.5
