ESP12-Q change SPI Frequency with clock_div
Posted: Wed Jun 15, 2016 2:41 pm
I'm playing with the esp modules already several months. Now I like to use the spi module. I'm setting it up with
I analyzed the signals and it is working correctly (CS, SCK and MOSI, see pic.). The measured clock frequency is about 8MHz. I tried to change it by varying the last parameter, which I thought is clock_div, because it is too fast for my SPI slave. But it does not change anything. The clock stays at 8Mhz, what ever I tried.
To send 3 bytes I used
What am I doing wrong?
Code: Select all
spi.setup(1,spi.MASTER,spi.CPOL_LOW,spi.CPHA_LOW,spi.DATABITS_8,4)
I analyzed the signals and it is working correctly (CS, SCK and MOSI, see pic.). The measured clock frequency is about 8MHz. I tried to change it by varying the last parameter, which I thought is clock_div, because it is too fast for my SPI slave. But it does not change anything. The clock stays at 8Mhz, what ever I tried.
To send 3 bytes I used
Code: Select all
spi.send(1,14,192,72)
What am I doing wrong?