Go Down

Topic: How i make delay .5 microseconds? (Read 1 time) previous topic - next topic

power7net

Hello i want make delay .5 microseconds(500 nanoseconds).I must use NOP() from assembly?I have ATmega328 16MHZ....nop for me is 62.5ns...ok i want 8 nop but i could use assebly code into my sketch?I must use library first?How i doing this?A small example please...
Web / sms / bluetooth / arduino / android remote control. Home Automation projects.
http://www.power7.net

Nick Gammon


power7net

I want make IR pulse with accuracy 95KHz...i think i must use __asm__("nop\n\t"); .....
Web / sms / bluetooth / arduino / android remote control. Home Automation projects.
http://www.power7.net

Nick Gammon

1/95000 is 10.5 uS.

Anyway, you want PWM not NOPs.

power7net

Web / sms / bluetooth / arduino / android remote control. Home Automation projects.
http://www.power7.net

Go Up