Page 1 of 1

Micropython Pyboard V1.1 SPI Channels

Posted: Tue Feb 13, 2018 12:49 am
by mheruian
Hi Folks,

Total newbie here and been looking forward to learn python on pyboard :) i had this project on school where they ask me if i can use the pyboard's two (2) SPI channels simultaneously?

I had this experience using arduino where everything is working one at a time even on interrupts. Arduino boards does only have one (1) SPI channel (main uC). Does pyboard's SPI works the same also? i mean let's say SPI_1 channel is for the SPI sensors (indeed, sensors will be polled for their value one at a time) and while SPI_1 channel talks to a SPI sensor to get its value, SPI_2 channel will talk a SPI-based relay hub to turn relays on & off. Would that happen or can that happen on the pyboard? I'm not well versed about their clocks if their different or not, etc.

I hope you could help me :D thanks.

Re: Micropython Pyboard V1.1 SPI Channels

Posted: Wed Feb 21, 2018 5:08 am
by mheruian
bump :oops:

Re: Micropython Pyboard V1.1 SPI Channels

Posted: Thu Feb 22, 2018 8:48 am
by pythoncoder
The two SPI ports are independent and can work concurrently.

Re: Micropython Pyboard V1.1 SPI Channels

Posted: Fri Mar 02, 2018 7:23 am
by mheruian
pythoncoder wrote:
Thu Feb 22, 2018 8:48 am
The two SPI ports are independent and can work concurrently.
Ok :D thanks a lot