Hi,
I searched the board an the source for uP ESP2866 edition, but didn't find anything related to this.
According to the documentation of my ESP2866 12E, GPIO15 should be SPI 1 chip select.
However it does not toggle when I transfer data (as verified by my scope). MOSI and CLK work just fine.
The driver source seems to be here:
https://github.com/micropython/micropyt ... spi.c#L100
The comment is a bit cryptic for me to understand. So I guess the bottom line is: can the hardware CS be activated, or do I have to emulate it myself?
HSPI chip select
Re: HSPI chip select
Hi,
maybe you find more answers looking for the Esp8266 instead of the ESP2866
But yes, as far as I can tell (never used SPI with micropython) CS is not implemented by the generic SPI driver. However, as it is a simple io action, one can simply create a Pin instance to do the job and wrap this into a function together with the original SPI read and write.
maybe you find more answers looking for the Esp8266 instead of the ESP2866
But yes, as far as I can tell (never used SPI with micropython) CS is not implemented by the generic SPI driver. However, as it is a simple io action, one can simply create a Pin instance to do the job and wrap this into a function together with the original SPI read and write.
Re: HSPI chip select
I ALWAYS flip the numbers
I'm not sure how the SPI driver works. If I'm synchronous your approach is fine. If it's IRQ driven, the real CS would allow to spawn a transfer while e.g. serving a timer callback.
Is that known?
I'm not sure how the SPI driver works. If I'm synchronous your approach is fine. If it's IRQ driven, the real CS would allow to spawn a transfer while e.g. serving a timer callback.
Is that known?