Problems with SPI on PIC18F26K40

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

Moderator: Benj

Post Reply
User avatar
Bruno
Posts: 67
Joined: Thu Jan 18, 2018 2:11 pm
Been thanked: 21 times

Problems with SPI on PIC18F26K40

Post by Bruno »

Hi everyone
I had a problem with configuring the SPI of the micro PIC18F26K40.
I used pins other than defaul's. FC8 gives the possibility to remap the pins
but it probably does not configure the SSPxCLKPPS registry correctly.
I think the problem also exists for I2C
I added a C instruction as reported in the datasheet and everything started to work correctly.
In my case: SSP1CLKPPS = 0x0B;

best regards

Post Reply