RL78/G23 Latching Comparator output (with ELCL?) with software reset

On the RL78/G23 is it possible to configure an output pin to function as a latching output of Comparator 1, with the ability to reset the output in software on demand?.. for example using a latch component in the ELCL

Thanks

Parents
  • Hello,

    I am not sure I fully understand the functionality of what you suggest.

    Under which conditions should the reset be issued ?

    The reset sources are specific but you can issue a software reset (by forcing Internal reset due to illegal-memory access) with code if you need.


  • Something like the above, with a 'clear' signal (shown as reset in the figure) being issued in software.
    Ideally I wouldn't prefer any 1->0->1 transition when a clear signal is issued it the signal is above the reference voltage.
    Just to clarify, I do not want to reset the MCU, just reset the latched output of the comparator signal.

  • The ELCL cannot issue a software reset directly.

    The screenshot above is quite similar to the Low-Voltage Detector functionality. An internal reset can be issued if the supply voltage goes beyond a specified level ( VLVD0 or VLVD1 ). But this does not involve detecting voltage from a pin.  Can this work for you ?

    Alternatively you can monitor the IVCMP1 and issue the Comparator detection 1 interrupt where you can force a software reset with assembly code: 

    // Set illegal instruction to force an internal reset (CC-RL)
    .DB 255

Reply
  • The ELCL cannot issue a software reset directly.

    The screenshot above is quite similar to the Low-Voltage Detector functionality. An internal reset can be issued if the supply voltage goes beyond a specified level ( VLVD0 or VLVD1 ). But this does not involve detecting voltage from a pin.  Can this work for you ?

    Alternatively you can monitor the IVCMP1 and issue the Comparator detection 1 interrupt where you can force a software reset with assembly code: 

    // Set illegal instruction to force an internal reset (CC-RL)
    .DB 255

Children