The GPIO Example project is a demonstration program that uses the KSDK software to manipulate the general-purpose outputs. The example is supported by the set, clear, and toggle write-only registers for each port output data register. The example take turns to shine the LED.
- IAR embedded Workbench 9.10.2
- Keil MDK 5.34
- Mini/micro USB cable
- FRDM-K32L3A6 board
- Personal Computer
No special settings are required.
- Connect a USB cable between the PC host and the OpenSDA USB port on the board.
- Open a serial terminal with these settings:
- 115200 baud rate
- 8 data bits
- No parity
- One stop bit
- No flow control
- Download the program to the target board.
- Either press the reset button on your board or launch the debugger in your IDE to begin running the example.
These instructions are displayed/shown on the terminal window:
GPIO Driver example
The LED is blinking.
And you will find the LED RED is taking turns to shine.