RL78 G23 TAU0 in Interval Timer mode start with ELCL event

Hi, 

I want to check if it is possible to start TAU00 in Interval Timer Mode with an external interrupt routed to TI00 using ELCL (Through). 

Thank you

  • Hello,

    I have taken a good look at the hardware manual and I am afraid that it is not possible to start an interval timer (TAU or ITL) with a hardware trigger from an ELCL event.

    For TAU interval timer the start trigger can only be a write to the Timer channel start register m (TSm)

    Similarly for ITL the start trigger is only writing to the Interval timer control register (ITLCTL0).

  • Thank you AZ, 

    Not sure what I am doing wrong that my timer TAU00 in One Count Mode also doesn't start with an ELCL event. 
    Below are my settings:

    I want TAU00 to start with falling edge of P31, I try to use Through logic gate to divert the pin state to TAU00 Input

    TAU00 is set to Delay Counter Mode with Input Source set to ELCL



    From Smart Config I am not clear if only TI00 can start the TAU00 or ELCL event could also do because of the setting that says : External event edge select (TI00) 
    Would you be able to clarify this please?

    Thank you.

  • I doubt the Delay counter can be started from ELCL even input although the RL78 Smart Configurator has the 'ELCL' option. 

    Please see 7.8.7 chapter from the hardware manual. There are 2 trigger sources: one is by writing the TSmn bit and the other is by edge detection on the TImn input pin. 

    An ELCL input event cannot trigger the counter. I will investigate internally to confirm that the 'ELCL' option of RL78 Smart Configurator is not accurate and I will let you know.

  • Sorry for the delay, it took some time to discuss and test this internally. The Figure 7 - 65 is not very accurate, it  should show ELCL as a possible input to avoid confusion.

    To use an input from an external pin for the ELCL input, you need to configure it as EI137 - not INTP0 - in case of P137.

    Please find the below example project on RL78/G23 ***-pin FPB. To test you can press on the user switch of the board (which is connected to P137) and this triggers the delay counter to start counting down. Once it underflows, an interrupt is triggered.

    FPB_G23_TAU_ELCL.zip

    Please note the following configurations for TAU - Delay counter:

    and ELCL:

    Let me know if you have any question.