This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

eZ430-RF2500 with photodiode

hi all

 i porogrammed the ez430-rf2500 (end device)  so it can read inout voltage through  pin 9 (4.4)(adc), i have a photodiode that can give me voltage from 0-2V depending on the light conditions (0=1000 lux)

 

now i need to porogrm the ez430-rf2500 so it can shif the timer states autumatically according to the input voltage in pin 9, for example

0-0.5 V, give me timer state 1 ( transimte the temperature each 5 second)

0.05-1 V give me timer state 2 (transimte the temperature each 10 second)

so please can any one help me how to do it

should i use if statment and how?

and also am not sure is that realy possiple or not? i mean is it possiple to porgram the end device in which it shift the timer state autumatically depending on the voltage input in pin 9?

please some one help as this is my fifth try to get answers from this forum but no one hepl ( exept i think just one)?