How to toggle LED in KDS 2.0 with KSDK 1.1.0 and Processor Expert

Document created by Iva Dorazinova Employee on Mar 23, 2015Last modified by Diana Torres on Feb 28, 2017
Version 3Show Document
  • View in full screen mode

The tutorial shows how to toggle LED with KSDK 1.1.0 in KDS 2.0 and Processor Expert using a Timer Output for FRDM-KL03Z.

Guide is prepared for red LED which is connected to Timer/PWM Module 0 (TPM0), channel 1.


22.png


Create new project

Create new project in KDS 2.0 with KSDK 1.1.0

1.png

Type the project name, choose board. e.g. FRDM-KL03Z, mark off options Kinetis SDK and Processor Expert

2.png3.png4.png

Now, the structure looks like this:

5.png

Set Processor Expert Settings

Now, go to Components Library, find fsl_tpm component and by double click add the component to Component View.

6.png

Rename the component tpmTmr:fsl_tpm to e.g. RedLed.

7.png8.png

Double click on RedLed:fsl_tpm in Components View and see Component Inspector

Follow these steps:

10.png

Set frequency and duty cycle.

12.png

13.png

14.png

16.png

Debug configuration

17.png

18.png

19.png20.png

21.png

DONE!

IMAG0706.jpg


Attachments

    Outcomes