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.

bit rate

Other Parts Discussed in Thread: CC3100BOOST, MSP430F5529, MSPWARE

hello all,

I am trying to calculate the Throughput of my system (cc3100boost + EXP430F5529LP)
the code it Will Be like that (code composer studio v6):

t1 = the current time_fonction
// transmission of packets
t2 = the current time_fonction
return t2-t1
calculate nbr of bits / (t2-t1)

please what function I use to get the current time
and how I use the Int2Str () or another conversion function to convert the time to the CHAR to use CLI_Write ().

  • please what function I use to get the current time
    and how I use the Int2Str () or another conversion function to convert the time to the CHAR to use CLI_Write ().
  • Hi rachid,

    Moving this to MSP430 forum as this has more to do with functionalities related to the platform/MCU.

    Regards,
    Raghvaendra
  • Use timer in resolution that will not give you overflow. At t1 timer should be cleared and started (t1=0), and at t2 it should be stopped. At the end timer register value need to be transferred to time depending on MCLK and tier resolution.

  • hi zrno,
    I am newbie I do not know what function I use.
    you can tell me what function?
    or where i start my research?
  • Hi rachid,

    You are just trying to figure out how long it takes to send your packets, for your own information right? Not necessarily information that the program itself needs to know?
    In that case by far the easiest solution is simply to use an extra GPIO pin on the MSP430F5529 - Set the pin high right before you start to send the packets and low again right after you are done. Now when you are running (even running stand-alone without a PC or debugger) you can see how long it takes to send your packets by simply connecting an oscilloscope or logic analyzer to measure the period of time that the pin is high. This is literally only a few lines of code to implement.

    Now, is there some reason you would need to know the throughput from inside the code? In that case you'd want to set up one of the MSP430 hardware timers instead to time how long that transaction takes, as zrno soli described above - but that is going to be more work than what I've described above, if you only need this for your own benchmarking purposes. If you really need to use the timer, I'd recommend looking into MSPware driver library - this should include functions to help you set up the timer, and examples of how to use these functions.
     
    Regards,
    Katie

  • for the moment i prefer to use an extra GPIO, its good idea.

    thanks for the answer

**Attention** This is a public forum