When i send a byte, the radio doesnt respond to it. I thought working at bit level might be easy and helpful in finding the problem. But, it looks like i have to dig into MSP430 details.
If my guess is right, it has got something to do with the pull up resistors. I'd better try solving that. Thanks anyway eric. > On Mon, May 16, 2011 at 1:52 AM, Prasanna Karthik V < > [email protected]> wrote: > >> For example, i would like to input a bit through SI in the rising edge >> of >> the clock and get the output SO in the falling edge of the clock. >> > > It has been a while since I looked at the details of the SPI on the Msp430 > (2618). But if memory serves that is how it works. But you hand it a > byte and that byte gets shifted out as it shifts the input byte in from > the > device. I believe it clocks the outgoing bit on the rising edge and > clocks > the incoming bit on the falling edge. > > Rather than ask the list, you should be studying the h/w technical > documents > provided by TI. Or other appropriate mfg. > > >> Assembly gives more control over the bit level behavior. right? >> > > No. > > And why are you paying attention to this level of detail? > > What problem are you trying to solve? > > >> > On Mon, May 16, 2011 at 12:23 AM, Prasanna Karthik V < >> > [email protected]> wrote: >> > >> >> Is there any mean by which i can include assembly code as a part of >> the >> >> application code? >> >> >> >> I am looking for this option so that i dont have to use the JTAG >> based >> >> approach to download the application code onto the motes. >> >> >> >> Any idea? >> >> >> > >> > why are you thinking that you need assembly to do this? >> > >> > what exactly are you thinking of doing? And why this will replace >> doing >> > code/flash writing from the JTAG. >> > >> > You can program the flash using c code. >> > >> > But what you are expressing sounds funny. >> > >> > eric >> > >> > >> >> > I was thinking of directly writing assembly code to do the same. >> >> > >> >> > I have a basic question. How do i install the hex files generated >> >> after >> >> > compiling the asm code. Can i use `telosb reinstall` for this? So >> that >> >> the >> >> > newly generated hex file is installed on the mote. >> >> > >> >> > Excuse if that sounds stupid. >> >> > >> >> > >> >> >> Could this help? - http://www.sparkfun.com/products/9544 >> >> >> >> >> >> Regards, >> >> >> >> >> >> André >> >> >> >> >> >> ----- Original Message ----- >> >> >> From: Eric Decker >> >> >> To: Prasanna Karthik V >> >> >> Cc: [email protected] >> >> >> Sent: Saturday, May 14, 2011 8:00 PM >> >> >> Subject: Re: [Tinyos-help] Spi Testing >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> In short, probably not. While SPI is a serial bus, most >> >> >> implementations, especially the msp430 implementation enforces >> byte >> >> >> boundaries. The smallest unit of transmission is a byte. >> >> >> >> >> >> >> >> >> On Sat, May 14, 2011 at 11:28 AM, Prasanna Karthik V >> >> >> <[email protected]> wrote: >> >> >> >> >> >> I am testing the SPI functionality of a connected radio. I >> >> could >> >> >> see >> >> >> that there are functions that send/read a byte over the SPI >> >> to/from >> >> >> the radio. >> >> >> >> >> >> Is there any lower level interface that enables us to send a >> >> >> bit(through >> >> >> SI) over the SPI , thereby receiving the same bit on SO pin? >> >> >> >> >> >> In short, i want to do bit-banging and test the SPI device's >> >> working >> >> >> status. >> >> >> >> >> >> _______________________________________________ >> >> >> Tinyos-help mailing list >> >> >> [email protected] >> >> >> >> >> >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> Eric B. Decker >> >> >> Senior (over 50 :-) Researcher >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> >> 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 >> >> >> > >> > >> > >> > -- >> > Eric B. Decker >> > Senior (over 50 :-) Researcher >> > >> >> >> > > > -- > Eric B. Decker > Senior (over 50 :-) Researcher > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
