Content originally posted in LPCWare by Badman on Wed Aug 19 10:47:57 MST 2015
For change frequency, you must change LPC_TMR16B0->MR0. No need to change the state of the pin 27 in the interruption. You can use the block PWM register LPC_TMR32B1-> PWMC