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.

evm5515 communicates with c2500 via SPI

Other Parts Discussed in Thread: CC2500

 

I set the IOCFG1 register to 0x06 in order to get an interrupt from the c2500 when sync byte is sent or received.

the c2500 GDO0 is connected to GPIO[4] on the evm5515 .

I set GPIO[4] as input gpio & raising interrupt and I was able to get an interrupt by setting a differernt GPIO as output and toggle it .

which means that everything works properly on the DSP side.

Unfortunatly , I don't get interrupt in case of transmitting or receiving a packet .

Is anything else have to be configured accept to the IOCFG1 register?

BR

Talmor

  • If the GDO pin is configured correctly on the CC2500 then you should see it change state when the packet is transmitted/received.  For the transmit state, you will need to send the data to the fifo and strobe the radio into transmit mode via the SPI port.  If you are unsure if you are setting the GDO signal to the proper state, you should be able to read the GDO configuration register and also there are a couple of GDO states which merely output a high or low value.  If you write those values to the GDO configuration register you should be able to toggle the state of the GDO signal under software control and verify it is responding using a voltmeter or scope.  This would be the first test to validate the GDO configuration register is being written.

    Jim Noxon

     

  • Jim,

    I check with the scope and I do see the line assert and deassert during transmittion .

    Unfortunatly my ISR routine is not beeing called.

    I defined the ISR using the DSP BIOS asd a HWI_21 object as following :

     

    bios.HWI.instance("HWI_INT21").fxn = prog.extern("HWI_gpio4");

    bios.HWI.instance("HWI_INT21").useDispatcher = 1;

    and I implemented  HWI_gpio4() in my main.c file

    what's wrong? have I missed anything?

  • Since the signaling appears to be correct I'll assume the radio is operating as expected.

    With regard to setting up bios to properly respond to the interrupt I'm not the correct person to talk to.  Hopefully someone else will chime in or you may want to post in the bios forum as to why a signal seen on an I/O is not generating the expected interrupt.

    Jim Noxon