Hello David, Thank you for your reply.
I’m trying to adopt interrupt, but maybe I fail something.
I wrote a simple application that, theoretically, swaps the status of the pin P1_7 every 1 ms.
I simply replicated on timer T3 same data of timer T4 in order to obtain an interrupt at every millisecond. The interrupt service subroutine simply switches the status of the pin P1_7.
With an oscilloscope, I should see the square wave, but I observe two continuous orizontal lines, as if the pin were changing level too much fast. I post my code…
P1_7 = !P1_7;
T3CC0 = 187;
T3IE = 1; // Enable Timer 3 interrupt. (IEN1.T4IE=1)
// DIV=111: 1:128 prescaler
// START=1: Start the timer
// OVFIM=1: Enable the overflow interrupt.
// MODE=10: Modulo
T3CTL = 0b11111010;
EA = 1; // Globally enable interrupts (IEN0.EA=1).