Hi Michael and Sofia, Timer/Counter 1 is used by the RF230 radio. The radio code also uses a compare register via the AlarmOne16C component. Most probably you are trying to use a counter that is used by someone else. You should NEVER use a counter directly, but use the HPL abstractions in chips/atmega1281. Can you use Timer/Counter 4 or 5, that is unused for sure. I am not even sure if the sensorboard pin is connected to Timer1, maybe it is timer 3 on the IRIS, no?
Best, Miklos On Tue, Jan 25, 2011 at 7:21 PM, Michael Schippling <[email protected]> wrote: > Looks like OC1A uses Timer/Counter1 on the controller. Most likely > TimerMilli does as well...or else you have overwritten some control > bits by mistake. Dig into the TimerMilli code or documentation (ha ha > a little joke) and see what hardware facilities it uses. > > My reverse engineering of TOS1.x showed that TimerM used Timer0 > and the micaz TimerJiffy used Timer2, so I was able to use Timer1 > for PWM outputs. My timer code is here if it's any help: > http://www.etantdonnes.com/Motes/AVR128timers.zip > > MS > > sofia aparicio wrote: >> Hello, >> >> I am using IRIS mote and I have a main program where I call a >> TimerMilliC. This timer is fired every 10 seconds. Then I would like to >> use the OC1A using a MDA100 sensor board. >> If I undestood well this pin is available. Then, I configure this OC1A >> in CTC mode using >> TCCR1A=0x40; TCCR1B=0X09; OCR1A=0x5B; CLR_BIT(TIMSK1,OCIE1A); >> I can see the signal working perfectly but the timer TimerMilliC is not >> fired anymore. Do you why is this? >> >> Thank you very much. >> >> Sofia >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
