Hello all, I'm new to both TinyOS and this forum so please correct me if an email reply is not the proper procedure for asking a question.
Here is my task: We have 3 micaZ motes and two SkyeTek UHF RFID readers (M7 and M10). I am currently working to develop code to control the M7 RFID reader from one of the motes. I have TinyOS-2.1.1 installed on Ubuntu linux 10.10, and have written some code to send a SelectTags command to the reader, and have written a test script in Python. Also, I have placed debugging output code inside 3 of the events in my TinyOS code: boot, SplitControl.startDone, and Timer_Fired. I see the output from the boot and SplitControl.startDone events but not the Timer_Fired. I've done the proper addChannel() for each of these within the python test script. Any ideas would be appreciated. Thanks, Steve Satterfield (770) 815-8061 cell On Wed, Jan 26, 2011 at 2:51 AM, sofia aparicio <[email protected]>wrote: > Hi Miklos, > > Thank you very much for your answer. The problem is that I need to use 3 > output compare for my aplication. One output compare (for example 1) should > have a frequency of 40kHz in CTC mode, a second compare (for example 2) > should have a frequency of 2.4 MHz in Fast PWM mode and a third compare > should count the number of cycles of compare 2 and to stops this compare > when this number is reached. If I understood well, I can access from the > MDA100 sensor board, OC1A (PB5),OC2A(PB4), OC3A(PE3), OC3B(INT0) and > OC3C(INT1). > 1) I tried using OC2A in mode CTC without prescaler but I can not change > the frequency, the frequency is always the same. > 2) I tried with OC1A in mode CTC without prescaler and I could change the > frequency value. But something strange happens, I put I frequency of 40kHz > but I get a frequency of 12.5kHz. > 3) I tried using OC1A in mode CTC without prescaler and OC3B in Fast PWM > mode at the same time. In this case I get the frequency that I wish for OC1A > of 40kHz and the frequency of 2.4MHz for OC3B. > 4) I tried using OC1A in mode CTC without prescaler, OC3B in Fast PWM mode > and OC3A as compare 3 at the same time. In this case, OC1A works > perfectly but OC3B does not work anymore. I do the following: > TCCR3A=0xA2; > TCCR3B=0x1F; > OCR3A=0xFA; > ICR3=2; > OCR3B=1; > SET_BIT(TIMSK3, OCIE3A); > SET_BIT(TIMSK3, OCIE3B); > > The timer TimerMilliC of the main program does work in any case 1), 2), 3) > and 4). > I have also tried using only OC3A and OC3B as in 4) but TimerMilliC does > not work. > Do you what is the problem? I do not understand why Timer1 and Timer3 are > accesible from the MDA100 sensor board if I can not use them. > If have red well, Atmega1281 does not have Timer4 and 5. Am I correct? > > Thanks again! > > Sofia > > > > Date: Tue, 25 Jan 2011 21:11:55 +0100 > > Subject: Re: [Tinyos-help] Question about IRIS mote > > From: [email protected] > > To: [email protected] > > CC: [email protected]; [email protected] > > > > > 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 >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
