Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Product List
ControlSUITE Slide 5

There are many different types of programmers, each with their own preferences. With controlSUITE™, the user has the option to select a path that they feel most comfortable with. It all starts with Level 1, which is the infrastructure, and allows direct access to the ones and zeros of registers and addresses. Experienced embedded programmers like the full control and like to stay with low-level programming. This can be done in either assembly or C. Level 2 is a memory-mapped set of bit fields and structures with a common naming convention that makes the peripheral register appear to be a simple variable. This allows bit by bit or whole register access without the bit masking that is common from other microcontrollers. The Code Composer Studio v4 IDE includes a tool that recognizes the peripheral register naming and can auto complete or suggest through a drop down menu. A header file is used in every system to initialize the peripheral bit fields, and multiple code examples are included for each device family and peripheral mode. Level 3 abstracts the bit fields even further by providing a set of APIs (high level C functions and parameter based function calls) for the most common peripherals, tasks, and modes. For example, to configure a Pulse Width Modulator (PWM) output, instead of figuring out all the required settings and which registers and bit fields need to be modified, users will simply call a function and pass key parameters like channel number, frequency, and duty cycle. This approach is great for the common modes, but to take advantage of the vast flexibility and programmability of some of the peripherals (like our PWMs), Level 2 bit fields are often required. Level 4 is a system framework (based on the bit fields and APIs) that includes a template for standard device initialization, memory management, task management, and hooks for common evaluation and debug tools as they would be used in a real application.

PTM Published on: 2010-11-17