Academic Program

Hardware Design

Hardware Design
 

When developing code for a project, using a function pointer can be a useful feature. Within MCC, interrupt drivers are set up to use function pointers. The software developer only needs to modify the main.c file and not the interrupt driver code. This allows for easier-to-follow code development.

This project shows a simple interrupt example of how to use a function pointer for a Timer1 peripheral interrupt. The D3 LED will be programmed to blink every 500 ms using a Timer1 interrupt with a function pointer.

proj1.png