Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

During the execution of the function "delay()" Can the Arduino read from Analog/Digital pins or read/write through Serial ?

user-image
Question added by Ghayth Mkhinini , Internship , IT Grapes
Date Posted: 2013/12/21
Bilal Ahmed
by Bilal Ahmed , Trainee Instrumentation and Process Control , Pakistan Industrial Technical Assistance Centre (PITAC)

No arduino cannot read or wtite during delay. But if you are using internal internal functions then arduino can read and write any time

tamer amer
by tamer amer , Maintenance Manager , lagoon company for care and medical service - louran hospital

No you can't

While delay() function you can't do any thing except reading interrupt function

You can use millis() with various methods to make delay without halt processing

Homoud Alsohaibi
by Homoud Alsohaibi , Part time Mechatronic Systems Programmer , ERICSON SDN. BHD

As far as I know , Arduino Can't do that, and if you want to do something similar but it will still consider the full delay period, it is done by using interrupt

 

u can use such a thing only in FPGA where parallel computing is involved,,, that's as far as I know

 

Regards

Paras Fulamaliya
by Paras Fulamaliya , Installation & Service Engineer , Welco System( (P) LTD

No arduino can not read or do other thing while execution od delay(). But you ca nset dealy with calculaton of the thing you want to doo and add other delay by the delay() and in total you got total delay plus your work also done.

Mohammed KMAIL
by Mohammed KMAIL , Electrical Engineer , Cappy/CocaCola

No, the delay is causing the arduino to wait until the specified time is finished, if you need to do something while waiting it better to create your own interrupt for the delay.

No, the delay function is used to give some time for the actuators or devices to give the required output, during the delay funtion the whole program pauses and nothing can be read unless there is an interrupt function in the program.

No, the Arduino microcontroller executes the code line by line ( step by step ) when the Arduino at step delay(), will execute the delay only.

there are some microcontroller boards that have the ability to perform the parallel execution for the programming code that let you execute all the code at once like FPGA. 

Muaaz Sarfaraz
by Muaaz Sarfaraz , MSc Intern Data Science , Green Tomato Cars UK

Yes , sometimes its a must to have some delay in order to read or write something via serial or analogue accurately

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.