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.

CCS/MSP430FR2532: msp430fr2532

Part Number: MSP430FR2532

Tool/software: Code Composer Studio

hi i am implementing  2 capacitive key using msp430fr2532 ,  i want to make a application in which when i touch a key the corresponding led should turn on  . i have used CAP0.2 and CAP0.3 for switches .my LEDs are connected to P1.0 and P1.1 .

problem:-

1  )  initall when the code was generated no any led was glowing when i touched the key but then i changed the bits of LED1 and LED2

by assigning P1.0 as BIT0 and P1.1 as BIT1

#define LED1_PIN                                                         (BIT0)

#define LED2_PIN                                                         (BIT1)

but my led 2 is not working (is it right to assign BIT1 to P1.1 of msp430fr2532).

 2)  when i press any key only LED connected to P1.0 turns on while i want to turn it on only when key one is pressed   .

  • The simplest way to do what you are attempting is to assign the two buttons into a "button group", not individual buttons. Then you create and register a callback for the button group. What this does is each time the buttons are scanned the callback is called and in there you check to see which button is pressed and turn on the corresponding LED.

    Did you create a button group for these two buttons?
    Are you using a callback? If not, how are checking to see when the buttons are pressed?

    To test if LED2 is working, can you turn it on early in your code execution just to see if it will light up?
  • Hello Fluidyne Control,

    I haven’t heard from you for a couple of days now, so I’m assuming you were able to resolve your issue.
    If this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information.
    If this thread locks, please click the "Ask a related question" button and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.

**Attention** This is a public forum