Hello,
I try to use read the CYCLECOUNTER CPU register in my c code for profiling purposes. I manage to read registers such as R4 and R11 with an inline assembly code such as asm("MOV.W SP, &sFlag"); with sFlag being some variable declared in my c code. I want to do the same with CYCLECOUNTER register if possible.
I read that you can use ISR and sepearate assembly file, but I'm not that familiar neither with assembly language nor with the interrupt mechansim on MSP 430.
Please help if you can.
Thanks,
Omer.P.