PIC24FJ256GA406 SPI Channel4 Different

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times
Contact:

PIC24FJ256GA406 SPI Channel4 Different

Post 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?

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: PIC24FJ256GA406 SPI Channel4 Different

Post 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 1508 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: PIC24FJ256GA406 SPI Channel4 Different

Post by Benj »

Hello,

Looking at the datasheet for the PIC24FJ256GA406 we have these pin connections.
Pin1.jpg
Pin1.jpg (38.8 KiB) Viewed 1498 times
They look to match the settings in Flowcode.
Pin2.jpg
Pin2.jpg (10.72 KiB) Viewed 1498 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.

Post Reply