reating a us pause.

Bloody-orc

Senior Member
i had an interesting thought. is it possible to create a 10us pause with pulsout command at a cost of one output pin? i think the program " stops" to do that pulse right? and with setfreq m8 enabeled i could get 5us pause also?
 

Technical

Technical Support
Staff member
In theory yes, although the overhead of actually processing the commands will add a bit of error, particularly at very short pulses. The longer the pulsout the less percentage error.

Edited by - Technical on 13/04/2006 18:54:10
 

Dippy

Moderator
That interested me too. So I dug out the old scope and an 18X.

Loop:
Pulsout
Pulsout
Goto Loop

I used Pulsout 1 which gave the predicatble 10 microsecond pulse width.
The time between consecutive Pulsouts was about 400 microseconds. And between Goto and next pulsout was 900 (...I think, actually I've forgotten, memory like a goldfish!).

I guess someone will have measured it to 10 decimal places.
 

Jeremy Leach

Senior Member
A few people on the forum have used this idea quite a lot. I've used it to try to get 'exact' delays in recent experiments (virtual phase-locked loop etc).
 
Top