This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Event interrupts pin problem



I have been trying to include the interrupt event signaling into my application but with no success so far. To test it I use the following code:

  EHC_EVT_MASK(EVT_NWK_CHG);
  clear_flags();   // clears all event flags

The SPI looks like that (from top SCLK, MOSI, MISO, CSN):



I mapped GIO1 to External Host Interface Interrupt and checked with a multimeter that my probe is connected to this pin.

The EHC_EVT_MASK has "1" as first parameter so expected that after clear_flags the level on the interrupt pin should be low but it stays high all the time.
Any hints ?

Regards,

Pawel

 

  • I would appreciate any hints what I may be missing or have misunderstood ?

  • Hi Pawel,

    Have you read out the status word after you clear the flags, just to check that bit 1 is not set?

    -Kristoffer

  • Hi Kristoffer,
    I am attaching screenshots of the MISO line


    That's the reponse for EHC_EVT_MASK - slave responds 0x8A, 0x44, 0x8A, 0x8A
    Then I clear all flags and a subsequent GET_STATUS returns:

     0x8A, 0x40

    Pawel

  • Pawel,

    You seem to do everything correct. I just performed it on my CC85XXDK and it works as it should. This is what I do:

    -I configure my master to be host-controlled and with interrupt on GIO1.

    -I configure a slave to be autonomous, and it should connect to the master when powered (fixed network ID).

    -I run the following comands on the master:

    // Mask that NWK_CHG should trigger interrupt, polarity: active high
    Ehif_EHC_EVT_MASK(0x01, 0x02);

    // Clear all the flags in the EHIF SPI status word
    Ehif_EHC_EVT_CLR(0x3F);
     
    // Enable network
    Ehif_NWM_CONTROL_ENABLE(0x01);

    -Before I turn on the slave I see that the master's status LED is blinking the ALONE pattern and D11, which is tied to GIO1, is ON (meaning that GIO1 is low).

    -I turn on the slave, it connects to the master (the master's status LED is constantly lit which means ACTIVE mode) and D11 is now OFF (meaning that GIO1 went high).

    -If I instead perform Ehif_EHC_EVT_MASK(0x00, 0x02); on the master, then D11 behaves the opposite way: OFF when alone, and ON when slave joins...

     

    Do you have the possibility to do the same test on your CC85XXDK if you have one? SPI interface is available on the programming connector P10 on the PPW Audio EB.

    -Kristoffer