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.

Port2 Interrupt conflict in ez430-rf2500 kit

Other Parts Discussed in Thread: CC2500

Hi guys

I'm having another trouble while using the ez430-rf2500 kit. I've proved parts of my code separately, using the port 2 (PINS 5 and 6) as inputs for a software UART, and then I established a wireless communication using the cc2500 module. Now I have to put them together, and then is when i get the problem.

As the interrupts for the two procedures i've said are for PORT2, it seems that them enter in conflict. I've tried to debug it but haven't succeeded. What I'm doing is getting continuous reading of an RFID device through the software uart, but the code must be interrupted when a character comes by the RF communication.

If someone knows how do I separate those signals, or just how I solve that conflict, it would be very helpful.

Thanks in advance. 

  • Well, if your software UART and the CC2500 use the same port pins, then you're hosed.

    But if not (and I don't believe you would start a thread here for somethign so obvious), then it shouldn't be a problem the fuse the two. You can exactly determine, by testing the IFG bits, which port pin caused an interrupt. Also, doesn't the software UART usually use a timer CCR unit and not a port pin interrupt?

    If you have separate ISRs from separate modules and the code compiles and links but won't run, then your ISR design is most likely flawed. TI demo codes are usually only good for demonstrating a single purpose. They are not designed to be compatible with anything else and often use details that may deadlock when you add more code. They give an example to study how things work, but are by no means meant or suited to work as blueprints for a mroe complex project.

**Attention** This is a public forum