changed mspIRSendCode to support 16MHz clock