Hi Rafael,
Thanks for the link will look deeper into this first thing in the morning as later here now, but looks like this answer Q1.
To answer your question regarding Q2, I perhaps did not make my question totally clear.
I am using a PWM running at 25kHz, this is also used to trigger 4 ADC channels. I have the debug set to refresh every 100mS. I right clicked on 2 of the variables I am interested in and select graph, then in the a graph option I select mS for the X axis and set it to continuous refresh. Then I hit the play/run button and at the same time I start my phone timer.
After running for 2 minutes on the phone watch, I took a screen grab and then I tried to calculate the mS shown in the X axis. This is where I had a problem as dividing 1000 into the values did not yield anything near the 2 minutes, however when I was watching the data stream hit 9000mS this correlated to 9 seconds roughly on my phone. As I said a crude method but I was trying to make sense of the X axis, and this gives a 'ball park figure'.
I don't have the exact screen grab now, and just wondering if there is a specific setup to get the exact time?
Failing that I can replicate the issue with images of the settings I use and explain it a bit clearer tomorrow if this is not enough information?
Cheers,
Ant