Init SPI with PIC18F46K42

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 8-bit PIC MCUs.
Post Reply
Author
Message
Aspi
Posts: 3
Joined: 05 Sep 2015 16:34

Init SPI with PIC18F46K42

#1 Post by Aspi » 28 Aug 2021 18:29

Hallo,
I am a Beginner.
I want to use the port expander library with a PIC 18F46K42 and mikroBasic Pro. Unfortunately, the initialization command SPI1_init does not work with this type. The compiler does not know the command here.
Is the library unusable or what am I doing wrong?

Can someone help me ?
Greetings from Dresden / Germany.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Init SPI with PIC18F46K42

#2 Post by filip » 02 Sep 2021 14:01

Hi,

Please find the SPI example for PIC18F47K42 written in C in the attachment, you will see how to use SPI module.

Regards,
Filip.
Attachments
SRAM K42 .rar
(5.07 KiB) Downloaded 107 times

Post Reply

Return to “PIC PRO Compilers”