PDA

View Full Version : PAUSEUS command



AndrewC
- 6th February 2006, 20:39
My last question for the day ! The PBP manual gives minimum times for different oscillator speeds (eg 24us for4MHz). Is this also the increment (24/48/72 etc us) and if not how do I determine what is the smallest increment I can specify ? Can I go 24 / 25 / 26 ?

Thanks, Andrew

picnaut
- 9th February 2006, 15:30
Hi,

I'm not sure I understand the question, but here goes...

Are you asking what the minimum value for PAUSEUS can be for a given crystal?

If so, this is what I understand:

If you load PAUSEUS directly, you can go as low as 1us. For instance, "PAUSEUS 1" gives a 1us delay. However, if you are loading PAUSEUS with a variable, the minimum delay you can accomplish (with a 4MHz crystal) is 24us. This is because of the extra processing time required by the PIC to handle the variable.

Somebody please correct me if I'm wrong.

Regards,

picnaut
- 9th February 2006, 15:38
Hello again,

Sorry, I haven't got my facts straight.
It looks like 24us is the minimum delay for PAUSEUS, whether you're using a variable or not. Please see the attached table for a list of crystal frequencies and their minimum PAUSEUS delay values.

Cheers!

AndrewC
- 10th February 2006, 01:03
Thanks for answering. I'll try and explain further - if say for a 4MHz oscillator the minimum PAUSEUS is 24us (presumably because of the number of clock cycles taken to execute the command), can I only increment in multiples of that minimum (24 / 48 / 72 / etc) or can I increment in smaller amounts and if so how do I determine that increment other than by trial and error ?

Thanks, Andrew

picnaut
- 10th February 2006, 03:00
Hi,

OK, I understand now.
Sorry about that.

Yeah, as far as I know you can use PAUSEUS 24, PAUSEUS 25, PAUSEUS 26, etc... with accuracy.

It's just that you can't go any lower than 24us.

:)

Cheers!