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

Reply via email to