1.5 millisecond delay

I need to make an OOPic delay for 1.5 milliseconds for an IR sensor,
but the OOPic can only delay for hundredths of a second. Anyone know a
way around this?
Reply to
RUBiksCUbe
Loading thread data ...
Put two delays in?
Reply to
Himszy
1.5 milliseconds is 1.5/1000 of a second. The OOPics smallest measurement is 1/100 of a second
Reply to
RUBiksCUbe
does the language allow calls to assembly language? If not, you may have to use a standard micro and program it yourself.
see:
formatting link
for a few tips.
Don...
Reply to
Don McKenzie
Use a 555?
Reply to
Mark Haase
I don't know anything about the platform- and what interrupts it might be servicing etc., but it's possible a simple "do-nothing" loop might work. It could certainly generate a minimum 1.5msec delay if you fiddle with the number of iterations, but it might not be repeatable enough.
Best regards, Spehro Pefhany
Reply to
Spehro Pefhany
Well I think I found a much simpler solution. By simply repeating the command, in this case setting a value to 1, for two lines in a row it delays the OOPic for about 1.5 ms. Thanks for the suggestions though.
Reply to
RUBiksCUbe

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.