https://embetronicx.com/tutorials/microcontrollers/lpc2148/arm7-lpc2148-timer-tutorial/
LPC2148 - Timer/Counter Tutorial