Search found 4 matches

by carl0s
Thu Sep 12, 2019 8:28 am
Forum: MicroPython pyboard
Topic: SPI hardware NSS
Replies: 7
Views: 4629

Re: SPI hardware NSS

jimmo wrote:
Thu Sep 12, 2019 8:26 am
carl0s wrote:
Thu Sep 12, 2019 8:05 am
Is that the STM32 reference manual?
Yup, the F405 ref manual.
Thanks Jimmo!
by carl0s
Thu Sep 12, 2019 8:05 am
Forum: MicroPython pyboard
Topic: SPI hardware NSS
Replies: 7
Views: 4629

Re: SPI hardware NSS

I checked on my pyboard -- setting nss=0x00040000 does "work" in that it does what the reference manual says it will. But this may not be what you were hoping the behaviour was (certainly wasn't what I expected). When you enable hardware NSS, the behavior is that NSS will go high, then low on the f...
by carl0s
Sun Sep 08, 2019 8:08 pm
Forum: MicroPython pyboard
Topic: SPI hardware NSS
Replies: 7
Views: 4629

Re: SPI hardware NSS

[quote=jimmo post_id=39196 time=1567817641 user_id=3071] I just ran into this myself the other day, using machine.SPI though where this isn't supported. However I noticed that pyb.SPI does actually support it, it's just not documented. Looking at pyb_spi.c, I think if you set the nss kwarg to SPI_NS...
by carl0s
Thu Sep 05, 2019 12:27 am
Forum: MicroPython pyboard
Topic: SPI hardware NSS
Replies: 7
Views: 4629

SPI hardware NSS

Hi. I understand the pby.SPI driver doesn't implement chip/slave select at all. I remember that STM32 can take care of it automatically (Hardware NSS). Is there any chance this might be implemented ? I was hoping to use a micropython board for tinkering/experimenting with the SPI initialisation code...