PIC32MZ2048EFG100 with powerfull SPI @50Mhz
Posted: Thu Aug 08, 2019 9:42 am
PIC32MZ2048EFG100 with powerfull SPI @50Mhz
Hi Ben
A SPI Bus needs 4 Pin:
CS =chip select
CLK =clock
MISO = Master data In, slave data out
MOSI = Master data out, slave data in
With Flowcode you can use a software SPI. This is very comfortable to use because you can choose a lot of pins for it. There is a little limitation, the speed is max. about 3Mhz.
To run at 50Mhz you need the Hardware SPI from the PIC.
There are 6 of them.
Each of this port has the clock on a specific pin:
SPI 1= D1
SPI 2= G6
SPI 3= B14
SPI 4= D10
SPI 5= F13
SPI 6= D15
The data inputs are a bit more flexible,but also with many restrictions.
Here too, Flowcode already offers comfotabel the right choice.
I used the SPI3 for a micro SD-card and it's working fine on 50Mhz!
I used in the same way the SPI 2 for the AD-converter but here makes the pin C4 problems
I can choose it , but it's not working as an input.
So I need a little info how to solve it.
Hi Ben
A SPI Bus needs 4 Pin:
CS =chip select
CLK =clock
MISO = Master data In, slave data out
MOSI = Master data out, slave data in
With Flowcode you can use a software SPI. This is very comfortable to use because you can choose a lot of pins for it. There is a little limitation, the speed is max. about 3Mhz.
To run at 50Mhz you need the Hardware SPI from the PIC.
There are 6 of them.
Each of this port has the clock on a specific pin:
SPI 1= D1
SPI 2= G6
SPI 3= B14
SPI 4= D10
SPI 5= F13
SPI 6= D15
The data inputs are a bit more flexible,but also with many restrictions.
Here too, Flowcode already offers comfotabel the right choice.
I used the SPI3 for a micro SD-card and it's working fine on 50Mhz!
I used in the same way the SPI 2 for the AD-converter but here makes the pin C4 problems
I can choose it , but it's not working as an input.
So I need a little info how to solve it.