Q24 plus doubts in giving delay


#1

hi
i want to know how we can give delay in Q24plus without using timer function.

  1. how much time Q24 plus takes to execute a single instruction?how to calculate?
    2)can i use for loop for the delay? is it advisable?

thanks&regards
ukkarthikeyan


#2

Hiya,

Definately not. You will probably trip the hardware watchdog and reboot your module.

Use a timer.

ciao, Dave


#3

hi
Thanks for your reply.
1)how much time Q24 plus takes to execute a single instruction?how to calculate?

thanks&regards
ukkarthikeyan


#4

Hiya,

No idea - and it’s not that important. All the timers take a time value - either in TICKS or milliseconds.

Check out the docs & examples on using timers.

ciao, Dave


#5

hi,
thanks for your response
ukkarthikeyan