Hi All,
I want to connect an SPI display to the PIC18F46K42 but I can't work out which pin is used for the SPI SDO with this Microchip.
I don't know if the datasheet is missing this info or if I just can't see it! Any help would be appreciated.
Datasheet here --> https://ww1.microchip.com/downloads/en/ ... 01919G.pdf
Ian
Help With PIC18F46K42 Datasheet
Re: Help With PIC18F46K42 Datasheet
Any pin on ports B & C may be declared as SDO with Peripheral Pin Select (PPS) - there's simply no default location for it, unlike with SDI and SCK (when it's an input).
Re: Help With PIC18F46K42 Datasheet
Yes, as @janni wrote, look at chapter 17
if f.e. SPI1 SDO, shall be on RB4:
RB4PPS = 0x1f;
gerhard
if f.e. SPI1 SDO, shall be on RB4:
RB4PPS = 0x1f;
gerhard
Re: Help With PIC18F46K42 Datasheet
Ok, Thanks for your replies,
I think I may look for a different chip, the further I look into this the more I think my primitive brain will struggle to change the libraries from IC2 to IC2_remapable etc.
Many Thanks
Ian
I think I may look for a different chip, the further I look into this the more I think my primitive brain will struggle to change the libraries from IC2 to IC2_remapable etc.
Many Thanks
Ian
Re: Help With PIC18F46K42 Datasheet
I dont know your compiler. But you could use Microchip MPLAB X and C-Comiler XC8. Microchip offers a tool to generate the setup. The tool is called MCC. You have to enter the usage of the pins and MCC generates all sufficient code you need.
Gerhard
Gerhard