add PPM generation support and new spi protocol