Page 1 of 1

Problems with SPI on PIC18F26K40

Posted: Tue Feb 08, 2022 1:50 pm
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