Generating code

3. Timer configuration

In this step, you configure the timer.

Double-click the [Code Generator (Design Tool)] > [Peripheral Functions] > [Compare Match Timer] in the Project Tree. This opens the panel for the compare match timer.

Select the [CMT0] tab, and configure as shown below.