This section presents the steps for developing a software application that will run on the Renesas Demo Kit for RL78G13 for controlling and monitoring the operation of the ADI part.
Two software applications have to be used: Applilet3 for RL78G13 (a tool that automatically generates device drivers for MCU peripheral functions) and IAR Embedded Workbench for Renesas RL78 (the integrated development environment).
Step 1 - Applilet3 for RL78G13
Now the desired peripherals can be configured and the code can be generated. For example, if the clocked serial interface 10 (CSI10) has to be configured, select the Serial peripheral, choose for the Channel 2 of Serial Array Unit 0 (SAU0) the CSI10 interface, Transmit/receive function option and then go to CSI10 tab.
To configure the CSI10
interface for serial transmissions of 8 bits, with MSB
first, with the data captured on clock's rising edge, with a frequency of the clock of 1 MHz
and the idle state high, the settings from the following image have to be made.
Step 2 - IAR Embedded Workbench for Renesas RL78