Oliver Betz

S08TPMV3 glitch-free initialization?

Discussion created by Oliver Betz on Dec 9, 2009
Latest reply on May 23, 2016 by rick stuart

Hello All,

 

how can I preset the output compare flipflop of the S08TPMV3 to get a glitch-free initialization?

 

IOW if the pin was temporarily used as GPIO and I set  ELSnB:ELSnA from 0:0 to "set" or "clear", the pin has to stay in correct state until the output compare triggers.

 

In my tests, the pin switched immediately to the last state caused by an active OC event when I set ELSnB:ELSnA.

 

If this event had the wrong polarity, the output switches immediately (I can't tolerate this).

 

Is there any workaround?

 

Thanks in advance,

 

Oliver

Outcomes