Traditional and Structure Approach to C Coding
C2000 Microcontroller Workshop - Peripheral Registers Header Files 3 - 5
With the traditional approach to coding using #define, we can only view the complete register
values. As an example, notice the control register ADCCTL1 has a value of 0x40E4. We would
need to refer to the reference guide to know the settings of the individual bit fields.
Expressions Window using Structures
With the structure approach, we can add the peripheral to an expressions window, allowing us to