Arduino Forum

Forum 2005-2010 (read only) => Hardware => Interfacing => Topic started by: rouliaan on Oct 14, 2010, 11:58 am

Title: Time of conversion.
Post by: rouliaan on Oct 14, 2010, 11:58 am
Hello,

I start a project in which I need to have input and output conversions totally independent from hardware point of view.
It is obvious that a software perspective conversions are independent since they are made with two different instructions.
My question is: in the following case, are the two conversions physically spaced with 1000 ms?

Thanks

Ex:

while () {

ADC

Sleep (1000)

DAC

}
Title: Re: Time of conversion.
Post by: Grumpy_Mike on Oct 14, 2010, 12:18 pm
Quote
in the following case, are the two conversions physically spaced with 1000 ms


Yes if you use delay(1000); in place of sleep. Sleep means a power down hibernation of the chip and you can only wake it up with a kiss (or interrupt).
Title: Re: Time of conversion.
Post by: rouliaan on Oct 14, 2010, 01:28 pm
Thank you Mike.