PPS in ILI9341

10 views
Skip to first unread message

Zet Weeh

unread,
Sep 22, 2022, 12:51:59 PM9/22/22
to jallib
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

Rob CJ

unread,
Sep 22, 2022, 1:42:04 PM9/22/22
to jallib
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: jal...@googlegroups.com <jal...@googlegroups.com> namens Zet Weeh <zet....@gmail.com>
Verzonden: donderdag 22 september 2022 18:51
Aan: jallib <jal...@googlegroups.com>
Onderwerp: [jallib] PPS in ILI9341
 
--
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 jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/457ac2ca-d82f-4f84-bfb2-1253f35edd79n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages