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/RF430FRL152HEVM: RF430FRL152HEVM,MSP-EXP430G2ET: Have problem to make NFC(near field communication) and Supply to port power simultaneously

Part Number: RF430FRL152HEVM
Other Parts Discussed in Thread: MSP-EXP430G2ET

Tool/software: Code Composer Studio


hello,

I am currently trying to use msp-exp430g2et as master and rf430frl152hevm as slave to cross drive two LEDs over NFC communications.

i opened the port in ccs and debugged using a timer for interrupt coding.

debugging succeeded, but there was a problem.

when connecting usb directly to rf430FRL152HEVM two LEDS worked well as i wanted. but when using NFC communication, the LED did not light up.

I checked with the STEP OVER function and found that during the NFC communication, it did not proceed to the interrupt timer i coded.

if there is any solution, or if there is an example of crossing the LED with NFC communication. let me know. Thanks

-SINCERELY-

  • Hello,

    I will try to reproduce that and give you feedback by end of this week.

    Best regards,
    Helfried
  • Hello,

    I your timer interrupt is not working during the RF communication you can use the timer to direct drive the P1.0 port without software interaction.
    Setup the timer that it will toggle the timer OUT1 signal and set P1.0 to output TA0.1.

    Best regards,
    Helfried
  • Hello,

    I received your answer well.
    Could I ask you one more question?
    I don't know exactly how to code and toggle the timer OUT1 signal and set P1.0 to output TA0.1.
    Could you explain more in detail what difference between P1.0 generall-purpose digital I/O and TA0.1.
    In addition when coding TA0.1 in CCS, what should replace the coding instruction in the existing P1OUT toggle?
  • Hello,

    the output P1.0, as all other outputs, can have different functions. These functions can be selected by the PxSEL0 and PxSEL1 registers.

    A detailed description for each output can be found in the datasheet. For P1.0 you can find it in the table 6-8 on page 33.

    On page 7 in the datasheet it shows that TA0.1 is connected to OUT1 of the timer (OUT1 is the output of the TA0CCR1).

    Set the TA0CCR1 register to your desired value and the OUTMODE in the TA0CCTL1 register to 4 (Toggle).

    The different output mode are described in the table 9-2 page 183 in the Technical Reference Manual

    For example:

    P1SEL0 |= BIT0;

    P1SEL1 |= BIT0;

    TA0CCTL1 |= OUTMOD_4;

    TA0CCR1 = 39;

    Best regards,

    Helfried

  • hello,

    i greatful thanks for your detail explaination.

    i understand about Timer_A mechanism, but i have additional several question.

    could you explain the meaning of TA0CCR1=39 specifically?

    and is it possible blink two led intersection by using TA0.x?

    last, It is the most important issue, Is it possible that the power supply be enough to operate the LED with NFC?

    -Best regards,-

    Lee
  • Hello,

    The value in the TA0CCR1 register depends on what frequency you need. Every time the timer counter reaches that value the OUT signal will toggle. With CCR0 you can set a value that resets the timer counter. If CCR0 has the same value you will have a duty cycle of 1:1.
    With the same mechanism you can use output P1.1 as OUT2 which is then controlled from the capture compare register CCR2.

    If the power is sufficient to power you LEDs I can not answer. This depends on many factor. Size of antenna, distance to reader, current needed for the LEDs and so on. So I think you have to do some measurements to decide how much current you can draw from the device in your configuration. From my experience I would expect less then 10mA.

    Best regards,
    Helfried