To toggle the port of a microcontroller in Embedded C, perform the following steps:
- We will carry out this recipe using Keil; double-click on the Keil uVision5 icon to activate the IDE.
- Create a new project by clicking on the Project | New uVision Project option.
- When prompted, specify the project name and the folder where you want to create the new project.
- Give the new project the name LedBlinkProject and then click on the Save button.
- The device selection window will open and you will be prompted to select a device.
- From the Device combo box, select the Legacy Device Database [no RTE] option. You will get the list of devices in the lower-left pane (refer to the following screenshot).
- Click on the Microchip node to expand ...