Generating code
2. Port configuration
In this step, you configure the functions of the Port.
Double-click the [Port] from [Code Generator (Design Tool)] in the Project Tree. This opens the panel for the port. |
Select the [Port6] tab and configure as shown below. |
In this step, you decide which pins to use. Refer to the circuit diagram shown below. Bit 2 and bit 3 of the port 6 are used as outputs. In QB-R5F100LE-TB, these are connected to LED1 and LED2 respectively.