Hi
I just switched to the PIC24F series. After reading the datasheet, I noticed that I need to set up the PPS (Peripheral Pin Select) to make SPI work.
I'm using the PIC24FJ64GA002 in a 28-Pin SPDIP package.
On page 41 of the PIC24FJ64GA002 datasheet, there is a PPS table. I believe that these lines represent registers where I can select what is connected to RPx. For example, does "RPINR20.SDIR0 = 6" connect SDI to RP6? Are the other bits, SDIR1 and SDIR2, for connecting the same SDI to other ports? Does anyone have a functional configuration for the SPI PPS pins? Where exactly in this table can I find all the SPI1 module inputs and outputs? Do I need to set the TRIS register for PPS?
Thanks, David