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.

Time stamping using MSp430

Other Parts Discussed in Thread: MSP430WARE, MSP430F2274, CC2530

Hi Folks,

I am working on a project where I need to send information from MSP430 micro controller with real-time stamping. There are no header files to display the real time clock. Can you please give me idea regarding how to display time using MSP430?

  • Which specific MSP430 chip are you using?

  • Just find an RTC example in MSP430Ware [...]\ccsv5\ccs_base\msp430\msp430ware_1_25_00_30\examples

  • Shabana Shaik said:
    real-time stamping

    What, exactly, do you mean by "real-time stamping"?

    Could you not just have a timer increment a variable at some suitable rate, and sample that as appropriate...?

  • Andy,

    By doing so, I am able to print the relative time but not the real time. I want to print the real time on the hyper terminal. Pls help me.

  • Robert,

    MSP430F2274 is the MCU used in CC2530 ZNP Mini kit.

    I need to send messages every 4 sec or whenever there is a trigger for an interrupt. 

    I tried to print time in a relative manner whenever the Kit has started/restarted. 

    I am able to print relative time on the hyper terminal but not the real time.

    Can you pls help me out?

  • Shabana Shaik said:
    I am able to print relative time on the hyper terminal but not the real time.

    How your wristwatch is able to display absolute time?

  • Shabana Shaik said:
    MSP430F2274 is the MCU used in CC2530 ZNP Mini kit.

    There is no Real Time Clock in your device. You need to pick other device or add external RTC.

    You should also describe your application in more detail because we are unsure what you really mean.

    Regards,
    Maciej

  • IImars,

    How were you able to print the absolute time?

    Ilmars said:

    I am able to print relative time on the hyper terminal but not the real time.

    How your wristwatch is able to display absolute time?

    [/quote]

  • MaciejKucia said:

    MSP430F2274 is the MCU used in CC2530 ZNP Mini kit.

    There is no Real Time Clock in your device. You need to pick other device or add external RTC.

    You should also describe your application in more detail because we are unsure what you really mean.

    Regards,
    Maciej

    [/quote]

    In a hospital scenario, Vital parameters are monitored continuously for certain patients. Whenever any vital parameter goes beyond its threshold value, it has to trigger an alarm to central nursing station. In order to do this, I am using CC2530 ZNP kit which has MSP430 MCU. In order to this, I am planning to send the room number and bed number of the patient along with time stamp. Is it possible to do without any addition of external device by simple adding some software code?

  • Sorry, I cannot think on any reliable software-only solution. Alternatively your receiver can add timestamp upon receiving alarm packet. 

  • When you talk about print the timestamp,  what format are you referring to?, epoch time, "natural", etc.

    In any case, you could set the time at the start of the program, save it in a variable or timer register, and use a timer with a correct configuration to refresh it (each second for example). Afterwards, the representation of this time is  your task, maybe you can use time.h (C header file to time) or create your custom code to do it.

    In my project, I receive the timestamp by air, and simply, I save it in a custom var and refresh it each second by a timer interrupt. But in my case I do no have to print in natural format, only in hexadecimal epoch time, so I do not work with time.h, I have created a custom function to format it.

    I hope it help you.

**Attention** This is a public forum