I'm transferring code from HC9S12DP512 to MC9S12XEP100. But there are some differences that I don't understand, even reading their datasheets.
Here is a code snippet, it is a configuration of a pin of the microcontroller as output compare:
ECT_TIOS |= 0x10; /* Make channel an output compare */
ECT_TC4 = ECT_TCNT + OSTickCnts; /* Set TC4 to present time + OS_TICK_OC_CNTS */
ECT_TIE |= 0x10; /* Enable OC4 interrupt */
With the above configuration the following lines of code work for HC9S12DP512 but not for MC9S12XEP100.
BSET PTT, #$010
BCLR PTT, #$010
So, I would like to know why on HC9S12DP512 the above lines work even with Output Compare enabled and on MC9S12XEP100 it doesn't.