Skip to content

Additional ISR calls (from SPI0?) #1

@xsrf

Description

@xsrf

Running the example code, I sometimes do get a lot of additional ISR calls while the first 64 bytes of data are sent via SPI1.

2020-05-11 22_08_29-Saleae Logic Software

I'm not at all sure if I'm handling the Interrupt flags right... Could this cause some issues?
I guess these are ISRs for SPI0. I had to clear these, otherwise the ISR wouldn't be called again...

nbSPI/nbSPI.h

Lines 91 to 94 in d5b51d5

if(SPIIR & (1 << SPII0)) {
// SPI0 Interrupt
SPI0S &= ~(0x1F); // Disable and clear all interrupts on SPI0
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions