spi dc motor firmware