使用例

チャネル 0, 1 D/A 変換を許可する

 

[GUI設定例]

D/A コンバータ

DA

使用する

D/A コンバータ 動作設定

使用する

DA0を使用

使用する

DA1を使用

使用する

データ形式

右詰め

D/A A/D同期設定

使用しない

 

 

[API設定例]

r_cg_main.c

void main(void)

{

       R_MAIN_UserInit();

       /* Start user code. Do not edit comment generated here */

       /* Set the DA0 converter value */

       R_DA0_Set_ConversionValue(0100U);

 

       /* Set the DA1 converter value */

       R_DA1_Set_ConversionValue(0200U);

 

       /* Enable the DA0 converter */

       R_DA0_Start();

      

       /* Enable the DA1 converter */

       R_DA1_Start();

 

       while (1U)

       {

              ;

       }

       /* End user code. Do not edit comment generated here */

}