This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Get CPU's machine cicles from the C Scripting interface

Hi all,

Is it possible to get the CPU's machine cicles from a C script? I'm using the C Scripting feature of the uVision3, and I need to syncronise the scripts with the simulation. For example, i need to have a C script that will togle a pn after a specific number of machine cicles.... Is it possible?

Best regards,
Marius

Parents
  • i need to have a C script that will togle a pn after a specific number of machine cicles.... Is it possible?
    I have no idea what a "C script" is, but can tell you that anything "after a specific number of machine cycles" require coding in assembler.

    Erik

Reply
  • i need to have a C script that will togle a pn after a specific number of machine cicles.... Is it possible?
    I have no idea what a "C script" is, but can tell you that anything "after a specific number of machine cycles" require coding in assembler.

    Erik

Children
  • The µVision3 Debugger incorporates a C script language you can use to create signal functions that simulate analog and digital input to the microcontroller. Signal functions run in the background while µVision3 simulates your target program.

    This is from the uVision3 brochure. I need to use this feature in order to have some regression tests on my code. I tryed it, and it works nice.
    The issue is that i need to have the C scripts syncronized with the simulation... and for this, i need a methode to read the simul. machine cycles from my signal functions.