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.

CC2530: CC2530 interrupt is unstable

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK,

Hi Guys,

I working with CC2530 Z-Stack Home 1.2.2a.44539 and trying to set external interrupt procedure, but i have an unstable situation, some time works and not!

the interrupt is call from an external circuit, as you can see bellow:

I know that in the 8051 core have two interrupt trigger methods (SFR TCON), 1st edge and 2st level (0v), I thing that maybe my circuit switch above is not good!

I was setting those lines codes on hal_key.c:

/* SW_6 is at P0.4 */
#define HAL_KEY_SW_6_PORT P0
#define HAL_KEY_SW_6_BIT BV(4)
#define HAL_KEY_SW_6_SEL P0SEL
#define HAL_KEY_SW_6_DIR P0DIR

/* SW_6 interrupts */
#define HAL_KEY_SW_6_IEN IEN1 /* CPU interrupt mask register */
#define HAL_KEY_SW_6_IENBIT BV(5) /* Mask bit for all of Port_0 */
#define HAL_KEY_SW_6_ICTL P0IEN /* Port Interrupt Control register */
#define HAL_KEY_SW_6_ICTLBIT BV(4) /* P0IEN - P0.4 enable/disable bit */
#define HAL_KEY_SW_6_PXIFG P0IFG /* Interrupt flag at source */

Br

Alex