[Tinyos-help] Timer 3 registers and IRIS mote

2011-11-14 Thread hafid oussaadi
Hello everybody, I wrote a small program to generate a 16 KHz PWM signal on OC3A which corresponds to pin 26 on the IRIS 51 pins connector. Assuming that fclk_I/O = 7.3728 MHz , I use CTC mode with OCR3A as TOP value. PRR1 =~(1 3); // enable Timer 3 TCCR3B |= (13)|(10); // prescaler=1

Re: [Tinyos-help] Timer 3 registers and IRIS mote

2011-11-14 Thread Janos Sallai
Hafid, Most probably, the MCU goes to sleep and the timer is not ticking. To prevent the MCU from sleeping, implement the McuPowerOverride interface and wire it to McuSleepC. Janos On Wed, Nov 9, 2011 at 10:05 PM, hafid oussaadi oussaadiha...@live.com wrote: Hello everybody, I wrote a  small