Hello
I use a PIC18F16Q40 because it has 2 SPI hardware interfaces
I don't know how to address these in GCBasic. Now I'm no expert but is there something missing in the device profile (PIC18F16Q40) or am I the one who doesn't understand how to do it. I would be very grateful for a solution because I am using 2 spi clients that do not have chip enable input which means that then I have to design external logic to manage where the data and clock go.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I use a PIC18F16Q40 because it has 2 SPI hardware interfaces
I don't know how to address these in GCBasic. Now I'm no expert but is there something missing in the device profile (PIC18F16Q40) or am I the one who doesn't understand how to do it. I would be very grateful for a solution because I am using 2 spi clients that do not have chip enable input which means that then I have to design external logic to manage where the data and clock go.
Hello Peer,
Do you have a program that is using SPI on one channel ?
You are sort of correct regarding the SPI2. However nothing to do with the device profile. We have not implemented SPI2 for PIC.
It is a simple task to add SPI2 support. The command would be similar
SPI2Mode
,HWSPI2Transfer
andFastHWSPI2Transfer
.Evan
Last edit: Anobium 2024-09-28