Fixed TICKS_PER_SECOND to match implementation (@8MHz)