AnsweredAssumed Answered

9S12XEP100 ECT Interrupt not work in first time

Question asked by Pavel Kipnyak on Jul 5, 2012
Latest reply on Jul 5, 2012 by Pavel Kipnyak

 Hello!

 In my system I am work with Input Capture. After reset Interrupt input capture not work. But on next time all work is correctly.

Help me, please.  

 

Timer.tc[1].word = 0xFFFF;
Timer.tc[2].word = 0xFFFA;
Timer.tcnt.word = 0;

 

Timer.tios.byte = 0xFE;
Timer.tscr2.byte = 0x82;  
Timer.tscr1.byte |= TEN;
Timer.tctl4.byte |= EDG0A;
Timer.ocpdstr.byte = 0xFE;
Timer.tie.byte = 0x05;

 

 It's setting timer on start command...

Outcomes