Hello,
 
I am Jean-Philippe Cauchy, and I am working in a lab of the university politecnica de MADRID on a TinyOs based application.
 
I made a sensorboard with 4 sensors that is bound to send the datas thanks to a micaz. I use a Timer based on the TimerC.nc for the main application that get, package and send the datas from the 4 sensors. This timer is set to REPEAT_TIMER mode at 1000(ms), this way it send datas every seconds.
My problem is that during the main process while I am getting information from the temperature sensor I need a timer which period would be 10 micro seconds to read a I/O port of the Atmega128L every 10us. Its signal being proportional of the temperature.
 
I tried to use TOSH_uwait(9); that allow to wait only 136*8*9=9792ns with Timerstart(TIMER_ONE_SHOT,0).
 
This way I thought it would work but the mC read only 3, 4, 10 period(30, 40, 100us) instead of 300 (3ms).
 
I also tried to configurate the other 8bit Counter of the Atmega128L to fix a period of 4.4 o 5 us but it doesn't work.
 
Is anyone know how to solve this problem?
 
Thank you for any help you could give.
 
JP Cauchy
_______________________________________________
Tinyos-users mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-users

Reply via email to