Micropython Pyboard V1.1 SPI Channels

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
mheruian
Posts: 7
Joined: Tue Feb 13, 2018 12:33 am

Micropython Pyboard V1.1 SPI Channels

Post by mheruian » Tue Feb 13, 2018 12:49 am

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.

mheruian
Posts: 7
Joined: Tue Feb 13, 2018 12:33 am

Re: Micropython Pyboard V1.1 SPI Channels

Post by mheruian » Wed Feb 21, 2018 5:08 am

bump :oops:

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Micropython Pyboard V1.1 SPI Channels

Post by pythoncoder » Thu Feb 22, 2018 8:48 am

The two SPI ports are independent and can work concurrently.
Peter Hinch
Index to my micropython libraries.

mheruian
Posts: 7
Joined: Tue Feb 13, 2018 12:33 am

Re: Micropython Pyboard V1.1 SPI Channels

Post by mheruian » Fri Mar 02, 2018 7:23 am

pythoncoder wrote:
Thu Feb 22, 2018 8:48 am
The two SPI ports are independent and can work concurrently.
Ok :D thanks a lot

Post Reply