F2806x C-Code Header Files
C2000 Microcontroller Workshop - Peripheral Registers Header Files 3 - 9
F2806x C-Code Header Files
The F2806x header file package contains everything needed to use the structure approach. It
defines all the peripheral register bits and register addresses. The header file package includes the
header files, linker command files, code examples, and documentation. The header file package
is available from controlSUITE.
F2806x Header File Package
(http://www.ti.com, controlSUITE)
Contains everything needed to use the
structure approach
Defines all peripheral register bits and
register addresses
Header file package includes:
\F2806x_headers\include .h files
\F2806x_headers\cmd linker .cmd files
\F2806x_examples CCS examples
\doc documentation
controlSUITE Header File Package located at C:\TI\controlSUITE\device_support\
A peripheral is programmed by writing values to a set of registers. Sometimes, individual fields
are written to as bits, or as bytes, or as entire words. Unions are used to overlap memory
(register) so the contents can be accessed in different ways. The header files group all the
registers belonging to a specific peripheral.
Peripheral data structures can be added to the watch window by right-clicking on the structure
and selecting the option to add to watch window. This will allow viewing of the individual
register fields.
Peripheral Structure .h File
The F2806x_Device.h header file is the main include file. By including this file in the .c source
code, all of the peripheral specific .h header files are automatically included. Of course, each
specific .h header file can be included individually in an application that does not use all the
header files, or you can comment out the ones you do not need. (Also includes typedef
statements).