RH850/P1L-C SOMC output behaviour

Hi,

I'm working on using the GTM SOMC to generate a single short pulse. I've got the counting and comparing working as expected but I'm struggling with the output settings. Right now I've got it setup to match the value in CCU0 then the value in CCU1 from TBU_TS0. My understanding is for ACB42 I want those bits set to 0b100.

Whenever I trigger an update of the ATOM registers with the HOST_TRIG bit my output goes high no matter the settings i put in ACB10 with a SL of 1. Why is this? No CCU0 match shows so it doesn't seem like it should be triggered. How can I have this start low, go high on CCU0 match then low again on CCU1 match. I can get the opposite to happen just can't get the output to start low no matter the settings I choose.

Cheers

Parents
  • Hi,

    As I understand User's Manual, every update of the registers brings ATOM in the "enabled state". In this state the level at the output pin is equal to SL bit (in your case it is High, die to SL=1). You can only influence that by changing SL to '0'. Try this, but now you would have to modify the comparing strategy to adapt for SL=0.

    Best Regards,
    Vasanth R S

Reply
  • Hi,

    As I understand User's Manual, every update of the registers brings ATOM in the "enabled state". In this state the level at the output pin is equal to SL bit (in your case it is High, die to SL=1). You can only influence that by changing SL to '0'. Try this, but now you would have to modify the comparing strategy to adapt for SL=0.

    Best Regards,
    Vasanth R S

Children