Register Programming Model
TMS320F2837xD Microcontroller Workshop - Peripherial Registers Header Files 3 - 3
Register Programming Model
Register Programming Model
DriverLib
C functions automatically set
register bit fields
Common tasks and
peripheral modes supported
Reduces learning curve and
simplifies programming
Bit Field Header Files
C structures – Peripheral
Register Header Files
Register access whole or by
bits and bit fields are
manipulated without masking
Ease-of-use with CCS IDE
Direct Register Access
User code (C or assembly)
defines and access register
addresses
Hardware
Software
Registers and Addresses
DriverLib
Hardware Abstraction
Bit Fields
Direct
The various levels of the programming model provide different degrees of abstraction. The
highest level is DriverLib which are C functions that automatically set the bit fields. This gives you
the least amount of flexibility in exchange for a reduced learning curve and simplified
programming. The bit field header files are C structures that allow registers to be access whole
or by bits and bit fields, and modified without masking. This provides a nice balance between
ease of use and flexibility when working with Code Composer Studio. Direct register access is
the lowest level where the user code, in C or assembly, defines and access register addresses.