Hello,
I have the CC1101 sending and receiving great with the polling code I got from the Examples Library. However, I instead want to trigger an interrupt when GDO0 goes high on a received sync word, and then read.
I have tried setting the chip into receive mode before going into an infinite loop to see if GDO0 will toggle when I send the chip a packet. However, even when I am not sending, the GDO0 pin will continually toggle on its own for a while and then stop completely.
I then tried reading out the MARCSTATE register in the loop and it outputs that it is indeed in RX mode (0x0D) for a while, but then goes into RXFIFO_OVERFLOW (0x11). When it starts to output 0x11 is when GDO0 stops toggling completely. Below is the code I used to check this:
Is there an example of reading when an interrupt from a GDO pin is triggered? If not, do you know what may be causing my issue?
For reference, below is the code that is working with the polling method and my registers:
Receive loop in Main:
Receive Packet function:
Registers