infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 2 of 2

Thread: MCDS Trace Viewer

  1. #1
    Beginner Beginner jonnyx is on a distinguished road
    Join Date
    Jul 2018

    MCDS Trace Viewer


    I have measured the execution time of my program using:

    1) Software cycle measurement followed by division of clock frequency --> #cycles / f_clk
    2) Counting Ticks in the MCDS trace viewer (column "Ticks" or "TimeR") --> (#ticks*2) / f_clk (ticks*2 as 1 tick = 2 cpu clock cycles)
    3) Direct time measurement in MCDS (column "TimeA" which shows the accumulated time in nanoseconds)

    2) and 3) seem to be approximately the same, but 1) says that my program runs a lot faster.

    Example: 1) measures 20,46059 ms - 2) measures 35,32313 ms and 3) measures 35,51473 ms

    in the software cycle measurement, I read out the clock frequency of the CPU by a given function from Infineon which returns 100MHz in my case (after reset)
    the MCDS Trace Viewer shows me the Message, that it uses 100,8MHz as frequency.
    Click image for larger version

Name:	mcds.PNG
Views:	2
Size:	10.3 KB
ID:	3605

    I have checked twice, if i programmed the same .hex file for the different measurements. The cylces in 1) are read out using the command
    #define CPU_CCNT 0xFC04
    before and after the function call which i like to measure - like they do it in an example.
    Last edited by jonnyx; Sep 8th, 2018 at 12:57 AM.

  2. #2
    New Member New Member pcm910 is on a distinguished road
    Join Date
    Oct 2016
    thanks, i see
    Chuyên nap muc may in tại tphcm, bom muc may in giá 80K, do muc may in loại 1, nap muc may in gia re tận nơi, thay muc may in tại nhà, nap muc in siêu rẻ

+ Reply to Thread

Tags for this Thread


All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.

Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.