Page 1 of 1

PIC24FJ256GA406 SPI Channel4 Different

Posted: Tue Sep 08, 2020 2:16 am
by seokgi
Hello everybody!

I designed to use SPI by referring to the PIC24FJ256GA406 manual. The pin definition of SPI channel4 and FC8 are different in the manual. MISO and MOSI have been changed. My PCB is already made.

Is there any way to solve this?

Re: PIC24FJ256GA406 SPI Channel4 Different

Posted: Tue Sep 08, 2020 8:42 am
by stefan.erni
Hi Seokgi

You can use the SPI in softwaremode. In this mode you can change the pin mosi and miso.
Can you post the schema of the hardware (part from the SPI) and maybe your software.

a little tip:

On the hardware, on a free place 4 whole to cross .....

regards

Stefan
spi.PNG
spi.PNG (254.67 KiB) Viewed 1682 times

Re: PIC24FJ256GA406 SPI Channel4 Different

Posted: Tue Sep 08, 2020 12:04 pm
by Benj
Hello,

Looking at the datasheet for the PIC24FJ256GA406 we have these pin connections.
Pin1.jpg
Pin1.jpg (38.8 KiB) Viewed 1672 times
They look to match the settings in Flowcode.
Pin2.jpg
Pin2.jpg (10.72 KiB) Viewed 1672 times

I've looked and the other SPI channels cannot be reconfigured for these same pins so it looks like there aren't any software options for using a hardware SPI channel. One option is to cut the existing traces and manually swap the traces using link wire.

As Stefan says, software mode may be a better option for you.