Register Read/Write
R2026bLibraries:
STM32 Microcontroller Blockset /
Utilities
Description
You can use the Register Read/Write block in STM32™ Microcontroller Blockset to read data from and write data to various bit fields of registers.
The Register Read/Write block depends on CMSIS-SVD files provided by STM32CubeCLT. If STM32CubeCLT is not registered, configure it through the hardware setup screens by running the stm32setup command.
You can also use the block to specify bit positions using custom bits. It accepts a cell
array where each element is a 1x2 array that specifies the start bit and
end bit.
Ports
Output
Input
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"stmutilitieslib/Register Read//Write"
Example: add_block("stmutilitieslib/Register Read//Write","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2026a