Everything

Usage example (Pulse output mode)

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

 

[Waveform example]

 

[GUI setting example]

Timer

Used

TMRJ0

Used

Functions

Pulse output mode

Count source setting

Auto

Timer value

100μs (Actual value:100)

Output (TRIJO0)

Starts as “H”

Enable output(TRJO0)

Unused

When the counter underflows, generate an interrupt (INTTRJ0)

Used

Priority

Low

 

 

[API setting example]

r_main.c

void main(void)

{

       R_MAIN_UserInit();

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

       /* Start TMRJ0 counter */

       R_TMR_RJ0_Start();

 

       while (1U)

       {

              ;

       }

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

}