PDA

View Full Version : Pauseus Doubt



gadelhas
- 1st February 2012, 01:16
Hi All;

I little question concernning the PAUSEUS command.
I know, from the table of the manual, that @8Mhz on a 16Pic series the minimum delay of the PAUSEUS command is 12uS. But since the compiler dosen't give any error if write PAUSEUS 1, what is the value that PBP assumes? It is still 12uS or any other value?

Thank You.

Art
- 1st February 2012, 02:42
It is probably passing the value of 1 to the internal pauseus routine,
but the single cycle will still take the quoted time to execute.
This is all happening in assembler once you've compiled it remember.
The value has to be copied from the command you wrote in basic to an assembler routine that wastes time of an accurate measure.

gadelhas
- 1st February 2012, 18:14
Hi All again;

I took the time to actually measure the time of the PAUSEUS 1, and it took exactly 25ticks of clock->12.1uS (@8Mhz).
I did other tests, and from PAUSEUS 1 to PAUSEUS 12 excluding the PAUSEUS 10, all took 25ticks, however the PAUSEUS 10, took 23ticks->11,1uS, and don't know why!!!