Everything

Usage example (Square wave output)

Perform toggle operation at fixed intervals and output a suquare wave with a duty factor of 50%.

 

[Waveform example]

 

[GUI setting example]

Timer

Used

TAU0

Used

Channel0

channel 0

Square wave output

Square width

100μs (Actual value100)

Generates INTTM00 and inverts timer output when counting is started

Unused

Initial output value

0

End of timer channel0 count, generate an interrupt (INTTM00)

Used

Priority (INTTM00)

Low

 

 

[API setting example]

r_main.c

void main(void)

{

       R_MAIN_UserInit();

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

       /* Start TAU0 channel 0 counter */

       R_TAU0_Channel0_Start();

 

       while (1U)

       {

              ;

       }

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

}