Pi PICO SPI / CAN component pins in FC

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jay_dee
Posts: 132
http://meble-kuchenne.info.pl
Joined: Sun Dec 20, 2020 6:06 pm
Has thanked: 47 times
Been thanked: 31 times

Pi PICO SPI / CAN component pins in FC

Post by jay_dee »

Hi Guys,
Started a FC Pi PICO project, added a CAN component.
Component Channel options are Software/ Channel 1 SPI0 / Channel 2 SPI1

Unfortuantly the CAN device we have on the bench (Waveshare CAN Module) has a fixed pinout.
MISO - GP4
CS - GP5 or GP19
CLK - GP6
MOSI - GP7
INT - GP21 or GP22

FC Pinout options for Channel1 SPI0 are,
MISO - GP4, GP16
CS - Anypin
CLK - GP2, GP18
MOSI - GP3 GP19
This seems to be a partial combination of SPI pins allowed by the possible PICO SPI pins ( unless as is usual I miss understand!)

PICO Pinouts from the Web give the following options.
MISO - GP0, GP4, GP16
CS - GP1, GP5, GP17
CLK - GP2, GP6, GP18
MOSI - GP3, GP7, GP19

Is there a technical reason why not all options are availibe? :)
Thanks, J.

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 217 times

Re: Pi PICO SPI / CAN component pins in FC

Post by LeighM »

Try the attached, into
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PICO
(seems to work ok, one for the repo)
Attachments
Raspberry_Pi_Pico.fcdx
(40.96 KiB) Downloaded 267 times

jay_dee
Posts: 132
Joined: Sun Dec 20, 2020 6:06 pm
Has thanked: 47 times
Been thanked: 31 times

Re: Pi PICO SPI / CAN component pins in FC

Post by jay_dee »

Thanks Leigh. That looks great in my FC10. I have yet to test on hardware but I'll have a play this weekend. Thanks Again. J.

OK Fantastic, just checked on some smashed together hardware. Getting CAN out. Thanks. Needs a bit of fudging on the Controller Oscillator value but thats a different post. :)

Post Reply