TMS320F240xDSP assembly and C language multi-function control application