Learn / Glossary

Glossary

Short, plain explanations of the words the manuals assume you know. Each one links to the page that explains it properly, and to the guides where you use it.

A

Alternate function (AF)

Instead of being a plain GPIO, a pin can be handed to a peripheral (UART, timer, SPI…). Each pin has up to 16 options numbered AF0 to AF15; the datasheet tables say which number gives which signal, and GPIOx_AFRL/AFRH select it.

Auto-reload and compare registers (ARR, CCR)

A timer counts from 0 up to the value in TIMx_ARR, then wraps to 0: that wrap is the update event, so one period is ARR + 1 ticks. Each channel also has a compare register TIMx_CCRn; in PWM mode 1 the output is high while the counter is below it, so CCR sets the duty cycle.

B

Ball

A solder ball under a BGA chip, named by row letter and column number (for example T6). The schematic shows the ball next to each pin name; the datasheet lists balls per package.

Bit field

A group of bits inside a register with one meaning, like the two MODER9[1:0] bits that set the mode of pin 9. You change it with a read-modify-write: clear the bits with a mask, then OR in the new value.

C

Clock

The square wave that steps a digital circuit. The CPU clock decides how fast code runs; each peripheral also has a clock that sets things like baud rate and timer tick.

D

Debouncing

A mechanical button does not switch cleanly: for a few milliseconds it flips between open and closed. Debouncing means ignoring changes for a short time after the first edge.

E
F

Framebuffer

A block of RAM that holds one value per pixel. Change a value and the pixel on screen changes at the next refresh. 480 × 272 pixels in RGB565 take 261,120 bytes.

G
H

HAL

ST’s Hardware Abstraction Layer: C functions like HAL_GPIO_WritePin() that write the registers for you. Great for getting started; reading the registers it touches is how you learn what really happens.

I
K

Kernel clock

Many peripherals have two clocks: the bus clock, which lets the CPU access their registers (enabled in RCC_xxxENR), and a kernel clock that times what the peripheral itself does, such as the bits of a UART or the ADC conversions. The kernel clock source is chosen in an RCC register (for the USARTs RCC_D2CCIP2R, for the ADCs RCC_D3CCIPR).

L

Linker script

The file that tells the linker where code and data go in memory (which flash, which RAM). On the H750 it matters because internal flash is only 128 KB.

M
N
P

Peripheral

A hardware block inside the MCU that does one job on its own, like a UART, a timer or the LCD controller. You control it by writing its registers.

Prescaler

A divider in front of a counter. A timer clocked at 200 MHz with prescaler 199 counts at 1 MHz (it divides by PSC + 1).

printf retargeting

The C library does not know your hardware. In a CubeIDE project printf ends in _write, which calls __io_putchar(ch) once per character. Defining __io_putchar so it sends the character on a USART makes printf print to the PC. This comes from the toolchain, not from the ST manuals.

PWM (pulse-width modulation)

A fast on/off square wave whose on-time (duty cycle) sets the average power. It dims LEDs, drives servos and sets motor speed.

Q
R
S
T
U
V
X