# With LPC1343 (ARM Cortex M3), how to control the the initial state of the MAT output from the timer?

I know that when the timer match the M1, I can let the mat pin to be up, down or toggle. But how to control the initial state of the MAT pin?

I'm using LPC1343CodeBase on a port1343 experiment board.

It's a for a simple non blocking servo command. Period is 20ms. Output should be HIGH for 1 or 1.5ms then LOW for the rest of the period.

I use prescale to have ms long duration with the 16 bit timer. M3 is triggering the reset.

I have an imperfect solution: using PWD and being LOW for (20-1)ms and up after that.

LPC_TIMER0->EMR &= ~0x02;