It is a familiar scene in labs across the globe: A design engineer is pushing the envelope, seeking to enhance functionality or improve performance. Unfortunately, while digging deep into low-level system timing, a design stalemate occurs. The potential solution demands the alteration of key control signals. These situations can impede creativity, leaving engineers with one wish: “If only there was a way to customize logic and timing within a control peripheral.” That wish is now a reality with the configurable logic block (CLB) for C2000™ microcontrollers (MCUs).
What is the CLB? The CLB integrates an optimized piece of high-speed programmable logic into a real-time microcontroller like a C2000 MCU. It provides intelligent input/output (I/O) routing to key peripherals such as enhanced pulse-width modulators (PWMs), enhanced capture, enhanced quadrature encoder pulse and general-purpose I/O. The result is an intellectual property enhancement offering system-level differentiation.
As shown in Figure 1, the CLB tool comprises either two, four or eight tiles. Within each tile is an optimized group of programmable logic cell blocks that contains:
Figure 1: Example of CLB tool tile cell blocks
By individually configuring and wiring these cell blocks together, you can generate a custom logic scheme, providing novel solutions to difficult system problems like programming application-specific logic for trip zones, enhancing soft-switching PWM schemes or implementing condition-based quadrature encoder position capture.
To make development easy, TI created a graphical CLB configuration tool (shown in Figure 2) that is integrated directly into TI’s Code Composer Studio™ integrated development environment for code development and debugging.
Figure 2: CLB tool graphical configuration view
Once configured, the generation of the CLB tool output logic is automatic. The project build output is a *.h header file describing the CLB tool configuration. During run-time initialization, the header file descriptors configure the tiles using C2000Ware DriverLib application programming interfaces.
Design engineers are making use of the CLB tool and exploring new areas of product differentiation. Matt Parnell Sr., principal hardware engineer for lifestyle audio at Harman International, has been using the CLB to enhance products.
According to Matt, they are always looking to “bend the limits of engineering.”
“For example, we can now offload custom control logic and diagnostics from the main software control loop to the CLB. At 400 kHz, every cycle counts, so this reduction in overhead is extremely welcome. These cycle savings open up bandwidth that can be directly applied to more innovative control features,” Matt said.
He also shared how the signal integration of the enhanced PWM (ePWM) peripheral is “profound.”
“Within the CLB, designers can intercept internal ePWM signals such as action qualifiers and dead band, condition with logic, and basically create their own version of a submodule. This feature has already saved the day here at Harman. The CLB adds an incredible amount of customization to an already extremely capable device.”
The new CLB peripheral is breaking barriers in control-oriented design, offering a novel tool set for crafting differentiated solutions. The latest C2000Ware revision includes 15 CLB examples; encoder examples are in the MotorControl sofware development kit. Check out the training and application notes . See how the CLB can defy conventional logic.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.