Hi Peter, Older PICs do not have PPS so you can remove that code completely.
The issue is that when you do have a PIC with PPS that you must assign the pins even if that is their default. The advantage of PPS is, however, that you can also assign pins to other locations than their default. Kind regards, Rob ________________________________ Van: [email protected] <[email protected]> namens Zet Weeh <[email protected]> Verzonden: donderdag 22 september 2022 18:51 Aan: jallib <[email protected]> Onderwerp: [jallib] PPS in ILI9341 Hi everybody I have a problem. I have an 18F4455 PIC That PIC does not support PPS How can I change this part of code In de ILI9341 sample for using in the 18F4455: include pps pps_control_lock(FALSE) if !defined(ILI9341_SPI_SW) then -- SPI 1 used by ili9341. Do not map when using ILI9341_SPI_SW. RC3PPS = PPS_SCK1 -- SPI clock RC5PPS = PPS_SDA1 -- SPI data in RC4PPS = PPS_SDO1 -- SPI data out end if -- SPI 2 used by sd card. RB1PPS = PPS_SCK2 -- SPI clock RB2PPS = PPS_SDA2 -- SPI data in RB3PPS = PPS_SDO2 -- SPI data out -- Serial pins. RC6PPS = PPS_TX -- TX1 re-assigned to C6 (default) RXPPS = PPS_RC7 -- C7 re-assigned to RX1 (default) pps_control_lock(TRUE) Regards Peter -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/457ac2ca-d82f-4f84-bfb2-1253f35edd79n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/457ac2ca-d82f-4f84-bfb2-1253f35edd79n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/GVXP195MB1637976450B1B62B7D064786E64E9%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM.
