Register Read/Write
Libraries:
C2000 Microcontroller Blockset /
Memory Operations
Description
You can use the Register Read/Write block in C2000 Microcontroller Blockset to read data
from and write data to various bit fields of TI C2000 registers. The block depends on files
generated during hardware setup, which are determined by the selected processor and the CCS
version. If the parameters on the block are Unspecified, configure the
hardware setup using c2000setup.
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.
Note
Register Read/Write block depend upon CCS installation and register xmls present in CCS to populate various entries in the block. Some registers may not be available in CCS xmls and hence you will not be able to access them in the block. For example, the HRCAP in F2803x.
When you try to modify the peripheral registers for different CPU cores, make sure that the CPU core has access to the particular peripheral, else the register read/write access may fail.
Examples
Ports
Output
Input
Parameters
Version History
Introduced in R2024a


