updated code:
updated speed
using TIMER0_US_PER_TICK in lpc_sys.h