I am using SPI Interface mbed pins p5/p6/p7. I configure the SPI interface setting are 1MHz, 8-bit, Mode 0
spi.format(8,0);
spi.frequency(1000000);
When I issue int dataread = spi.write (0x01), I noticed that the SCK only active for the duration of the 8 clock cycles to send out that 8-bit data. I am hoping that as long as I have chip select activated, I want the clock to remain toggling.
How do I keep the clock remain toggling as long as the chip select is high? Is the a limitation of the spi.write API?
I am using SPI Interface mbed pins p5/p6/p7. I configure the SPI interface setting are 1MHz, 8-bit, Mode 0
spi.format(8,0);
spi.frequency(1000000);
When I issue int dataread = spi.write (0x01), I noticed that the SCK only active for the duration of the 8 clock cycles to send out that 8-bit data. I am hoping that as long as I have chip select activated, I want the clock to remain toggling.
How do I keep the clock remain toggling as long as the chip select is high? Is the a limitation of the spi.write API?