Hi Maryam, We have written a driver in my group to interface an external counter using SPI communication on a telosb some years ago. I think this may help you with your project. The code is available in the tinyos contrib under http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-2.x-contrib/kth/index.html
Jose Araujo ___________________________ PhD student Department of Automatic Control KTH Royal Institute of Technology http://people.kth.se/~araujo/ https://code.google.com/p/kth-wsn/ https://code.google.com/p/kth-gisoo/ On Thu, Oct 31, 2013 at 10:11 AM, Maryam Jalalitabar <[email protected]>wrote: > Hi everyone, > > > On telosB, I want activate port 3 pin 2,so P3.2 will be connected to > USART 0. > > P3SEL |=0x02; > > Do I have to add this command in my makefile? > > Then, I want to configure USART 0 in its SPI mode and write some data > to P3.2. > > I found a component name: > > HplMsp430Usart0C > > which has an interface: > > Interface HplMsp430Usart > > This interface has a command: > > Command void enableSpi(); > > In its description it says: Enables the USART in Spi mode. > > Is this the correct way to config USART? > > Thanks, > Maryam > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-he > lp _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
