Menu

Device support

Peer Vagi
2024-09-28
2024-09-28
  • Peer Vagi

    Peer Vagi - 2024-09-28

    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.

     
  • Anobium

    Anobium - 2024-09-28

    Hello Peer,

    Do you have a program that is using SPI on one channel ?

    • there are many demo of the SPI command set.
    • there are GLCD, memory devices etc
    • the command set is the same across all chips.

    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 and FastHWSPI2Transfer.

    Evan

     

    Last edit: Anobium 2024-09-28

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.