<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-2089</id>
	<title>Nabble - MSP430 - Discuss</title>
	<updated>2008-09-05T10:35:41Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/MSP430---Discuss-f2089.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/MSP430---Discuss-f2089.html" />
	<subtitle type="html">Exchange information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise. This group will attempt an absolute minimum of moderation. Suggested guiding principle: there is no such thing as a stupid question.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-19336166</id>
	<title>Re: Re: ez430 hardware problem</title>
	<published>2008-09-05T10:35:41Z</published>
	<updated>2008-09-05T10:35:41Z</updated>
	<author>
		<name>Travis Goodspeed</name>
	</author>
	<content type="html">I'd like to take a peak under the hood, seeing what happens after a
&lt;br&gt;failed upgrade. &amp;nbsp;Would any of the rest of you care to send me a bricked
&lt;br&gt;ez430?
&lt;br&gt;&lt;br&gt;--Travis
&lt;br&gt;&lt;br&gt;On Fri, 2008-09-05 at 05:54 +0000, old_cow_yellow wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; If you have another regular JTAG programmer and you do not mind
&lt;br&gt;&amp;gt; soldering a few wires, I can help you to to reprogram the eZ430.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Alternatively if you pay the postage, you can also mail them to me and
&lt;br&gt;&amp;gt; I will reprogram them and mail them back to you.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19336166&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;MAIA&amp;quot; &amp;lt;maiatec@...&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I bought two EZ430 and both had the same problem.
&lt;br&gt;&amp;gt; &amp;gt; How can we revert this situation ? Is there any way to update with 
&lt;br&gt;&amp;gt; &amp;gt; the original firmware ?
&lt;br&gt;&amp;gt; &amp;gt; What Texas says about it ? 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; --- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19336166&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, Ian Lesnet &amp;lt;ianlesnet@&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; That just happened to me. IAR said I needed to update the ez430 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; firmware, did so, and then it never worked again. Tech support 
&lt;br&gt;&amp;gt; &amp;gt; said 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; that it was dead. The exact reply is below:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Unfortunately, it seems as though your EZ430 is no longer 
&lt;br&gt;&amp;gt; &amp;gt; functional. 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The EZ430 should not ever have the firmware upgraded as it is 
&lt;br&gt;&amp;gt; &amp;gt; special to 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; that hardware. For future reference if you are prompted for a 
&lt;br&gt;&amp;gt; &amp;gt; firmware 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; upgrade while using the EZ430 always say &amp;quot;no.&amp;quot; It seems in this 
&lt;br&gt;&amp;gt; &amp;gt; case you 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; will need to purchase a new device.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Cheers,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ian
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; sivan_toledo wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Windows stopped recognizing my ez430 USB dongle, after having 
&lt;br&gt;&amp;gt; &amp;gt; used it
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; without a problem for a while. Is there a way to debug this 
&lt;br&gt;&amp;gt; &amp;gt; (windows
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; just lists it as an &amp;quot;unknown device&amp;quot;), or are they known to fail
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; frequently? If so, is there anything in particular that causes 
&lt;br&gt;&amp;gt; &amp;gt; them to
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; fail?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ez430-hardware-problem-tp10160523p19336166.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19336003</id>
	<title>Re: CC2500 FIFO underflow?</title>
	<published>2008-09-05T10:27:03Z</published>
	<updated>2008-09-05T10:27:03Z</updated>
	<author>
		<name>Onestone-2</name>
	</author>
	<content type="html">You have probably set the packet length at some point to 64. You then 
&lt;br&gt;only send 4 bytes to the buffer before actually transmitting. this means 
&lt;br&gt;that the expected 64 bytes aren't there, hence an underflow occurs. When 
&lt;br&gt;changing the declaration the packet length is shortened hence no underflow.
&lt;br&gt;&lt;br&gt;Al
&lt;br&gt;&lt;br&gt;abufadel wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;Greetings,
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;Can anyone explain the reason I am getting an fifo underflow when I
&lt;br&gt;&amp;gt;transmit data that is less than the array?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;Here is what I have:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;uint8 Data[64];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; while (TRUE)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Send packet
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;halRfSendPacket(Data, 4);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;//halRfStrobe(CC2500_SFTX);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;status = halRfReadStatusReg(CC2500_TXBYTES);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Wait a bit such that the receiver is not saturated
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;halMcuWaitUs(240); // 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;The loop above goes through once and hangs on the 2nd iteration. 
&lt;br&gt;&amp;gt;Status tells me that the FIFO is underflowed. &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;However if I change send packet line 6 to be 
&lt;br&gt;&amp;gt;halRfSendPacket(Data, 64); no underflow happens. 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Also, if I change the Data declaration to Data[4] and keep the original:
&lt;br&gt;&amp;gt;halRfSendPacket(Data, 4); no underflow occurs.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Can anyone explain why something like this would happen? &amp;nbsp;Why does it
&lt;br&gt;&amp;gt;seem that the buffer has to be exact size of the packet? &amp;nbsp;Why can't
&lt;br&gt;&amp;gt;the packet be less?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Any insights appreciated.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Thank you,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;A
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;To unsubscribe from the msp430 group, send an email to:
&lt;br&gt;&amp;gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19336003&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Yahoo! Groups Links
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/CC2500-FIFO-underflow--tp19335630p19336003.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19335630</id>
	<title>CC2500 FIFO underflow?</title>
	<published>2008-09-05T10:06:42Z</published>
	<updated>2008-09-05T10:06:42Z</updated>
	<author>
		<name>abufadel</name>
	</author>
	<content type="html">Greetings,
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;Can anyone explain the reason I am getting an fifo underflow when I
&lt;br&gt;transmit data that is less than the array?
&lt;br&gt;&lt;br&gt;&amp;nbsp; Here is what I have:
&lt;br&gt;&lt;br&gt;uint8 Data[64];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;while (TRUE)
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // Send packet
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; halRfSendPacket(Data, 4);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //halRfStrobe(CC2500_SFTX);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; status = halRfReadStatusReg(CC2500_TXBYTES);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //Wait a bit such that the receiver is not saturated
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; halMcuWaitUs(240); // 
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp;
&lt;br&gt;The loop above goes through once and hangs on the 2nd iteration. 
&lt;br&gt;Status tells me that the FIFO is underflowed. &amp;nbsp;
&lt;br&gt;&lt;br&gt;However if I change send packet line 6 to be 
&lt;br&gt;halRfSendPacket(Data, 64); no underflow happens. 
&lt;br&gt;&lt;br&gt;Also, if I change the Data declaration to Data[4] and keep the original:
&lt;br&gt;halRfSendPacket(Data, 4); no underflow occurs.
&lt;br&gt;&lt;br&gt;Can anyone explain why something like this would happen? &amp;nbsp;Why does it
&lt;br&gt;seem that the buffer has to be exact size of the packet? &amp;nbsp;Why can't
&lt;br&gt;the packet be less?
&lt;br&gt;&lt;br&gt;Any insights appreciated.
&lt;br&gt;&lt;br&gt;Thank you,
&lt;br&gt;&lt;br&gt;A
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/CC2500-FIFO-underflow--tp19335630p19335630.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19332068</id>
	<title>Serial to RF bridge with eZ430-RF2500</title>
	<published>2008-09-05T04:04:22Z</published>
	<updated>2008-09-05T04:04:22Z</updated>
	<author>
		<name>compie</name>
	</author>
	<content type="html">I'm creating software for the eZ430-RF2500 usb stick. The software
&lt;br&gt;should act as a 'bridge' between the serial port and the RF chip. It
&lt;br&gt;receives packets from the serial port and sends them via the RF chip.
&lt;br&gt;Conversely, it receives packets from the RF chip and sends them via
&lt;br&gt;the serial port.
&lt;br&gt;&lt;br&gt;I did some research and it appears that there are two ways to control
&lt;br&gt;the CC2500 RF chip:
&lt;br&gt;* MRFI (Minimal RF Interface), as used in the Wireless Sensor Monitor example
&lt;br&gt;&lt;a href=&quot;http://www.ti.com/litv/zip/slac139b&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ti.com/litv/zip/slac139b&lt;/a&gt;&lt;br&gt;&lt;br&gt;* MSP430 Interface to CC1100/2500 Code Library
&lt;br&gt;&lt;a href=&quot;http://focus.ti.com/general/docs/techdocsabstract.tsp?abstractName=slaa325&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://focus.ti.com/general/docs/techdocsabstract.tsp?abstractName=slaa325&lt;/a&gt;&lt;br&gt;&lt;br&gt;Does it matter which interface I use? (I don't think there is a much
&lt;br&gt;difference between MRFI_Transmit() or RFSendPacket()). Am I correct?
&lt;br&gt;&lt;br&gt;Second question: Is it allowed to call RFSendPacket (or MRFI_Transmit)
&lt;br&gt;in the USCI0RX_ISR interrupt handler? (I need to transmit the packet
&lt;br&gt;via RF once the last byte or the packet is received from the serial
&lt;br&gt;port).
&lt;br&gt;&lt;br&gt;Johan.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Serial-to-RF-bridge-with-eZ430-RF2500-tp19332068p19332068.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19325318</id>
	<title>Re: ez430 hardware problem</title>
	<published>2008-09-04T22:54:27Z</published>
	<updated>2008-09-04T22:54:27Z</updated>
	<author>
		<name>old_cow_yellow</name>
	</author>
	<content type="html">If you have another regular JTAG programmer and you do not mind
&lt;br&gt;soldering a few wires, I can help you to to reprogram the eZ430.
&lt;br&gt;&lt;br&gt;Alternatively if you pay the postage, you can also mail them to me and
&lt;br&gt;I will reprogram them and mail them back to you.
&lt;br&gt;&lt;br&gt;--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19325318&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;MAIA&amp;quot; &amp;lt;maiatec@...&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I bought two EZ430 and both had the same problem.
&lt;br&gt;&amp;gt; How can we revert this situation ? Is there any way to update with 
&lt;br&gt;&amp;gt; the original firmware ?
&lt;br&gt;&amp;gt; What Texas says about it ? 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19325318&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, Ian Lesnet &amp;lt;ianlesnet@&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; That just happened to me. &amp;nbsp;IAR said I needed to update the ez430 
&lt;br&gt;&amp;gt; &amp;gt; firmware, did so, and then it never worked again. &amp;nbsp;Tech support 
&lt;br&gt;&amp;gt; said 
&lt;br&gt;&amp;gt; &amp;gt; that it was dead. The exact reply is below:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Unfortunately, it seems as though your EZ430 is no longer 
&lt;br&gt;&amp;gt; functional. 
&lt;br&gt;&amp;gt; &amp;gt; The EZ430 should not ever have the firmware upgraded as it is 
&lt;br&gt;&amp;gt; special to 
&lt;br&gt;&amp;gt; &amp;gt; that hardware. For future reference if you are prompted for a 
&lt;br&gt;&amp;gt; firmware 
&lt;br&gt;&amp;gt; &amp;gt; upgrade while using the EZ430 always say &amp;quot;no.&amp;quot; It seems in this 
&lt;br&gt;&amp;gt; case you 
&lt;br&gt;&amp;gt; &amp;gt; will need to purchase a new device.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Cheers,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; ian
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; sivan_toledo wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Windows stopped recognizing my ez430 USB dongle, after having 
&lt;br&gt;&amp;gt; used it
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; without a problem for a while. Is there a way to debug this 
&lt;br&gt;&amp;gt; (windows
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; just lists it as an &amp;quot;unknown device&amp;quot;), or are they known to fail
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; frequently? If so, is there anything in particular that causes 
&lt;br&gt;&amp;gt; them to
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; fail?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ez430-hardware-problem-tp10160523p19325318.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19322189</id>
	<title>Re: Doubts about FFT</title>
	<published>2008-09-04T16:42:14Z</published>
	<updated>2008-09-04T16:42:14Z</updated>
	<author>
		<name>keller.lima</name>
	</author>
	<content type="html">Great!
&lt;br&gt;&lt;br&gt;It is exactly what I wanted! Thank you very much. I think that I am 
&lt;br&gt;ready to start my project. You changed my project and for the better.
&lt;br&gt;&lt;br&gt;Thank you.
&lt;br&gt;&lt;br&gt;Kel
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19322189&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, Onestone &amp;lt;onestone@...&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; OK, this is an EXTREMELY &amp;nbsp;simplified explanation, but probably what 
&lt;br&gt;you 
&lt;br&gt;&amp;gt; are looking for. When you perform an FFT you are basically 
&lt;br&gt;calculating 
&lt;br&gt;&amp;gt; the energy present for a specfic frequency within the composite 
&lt;br&gt;signal 
&lt;br&gt;&amp;gt; over a fixed time period. FFts are said to have a certain number of 
&lt;br&gt;&amp;gt; 'taps', which are sometimes called 'buckets'. a signal sampled at 
&lt;br&gt;8000 
&lt;br&gt;&amp;gt; samples a second will have a useful rage of 0-4000hz,. analysign this 
&lt;br&gt;&amp;gt; signal with a 100 tap signal will split the original signal into 40 
&lt;br&gt;hz 
&lt;br&gt;&amp;gt; intervals. The results you get back are typically amplitude and 
&lt;br&gt;phase....................
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Doubts-about-FFT-tp19302604p19322189.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19325256</id>
	<title>Re: ez430 hardware problem</title>
	<published>2008-09-04T13:31:43Z</published>
	<updated>2008-09-04T13:31:43Z</updated>
	<author>
		<name>MAIA-5</name>
	</author>
	<content type="html">I bought two EZ430 and both had the same problem.
&lt;br&gt;How can we revert this situation ? Is there any way to update with 
&lt;br&gt;the original firmware ?
&lt;br&gt;What Texas says about it ? 
&lt;br&gt;&lt;br&gt;--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19325256&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, Ian Lesnet &amp;lt;ianlesnet@...&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That just happened to me. &amp;nbsp;IAR said I needed to update the ez430 
&lt;br&gt;&amp;gt; firmware, did so, and then it never worked again. &amp;nbsp;Tech support 
&lt;br&gt;said 
&lt;br&gt;&amp;gt; that it was dead. The exact reply is below:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Unfortunately, it seems as though your EZ430 is no longer 
&lt;br&gt;functional. 
&lt;br&gt;&amp;gt; The EZ430 should not ever have the firmware upgraded as it is 
&lt;br&gt;special to 
&lt;br&gt;&amp;gt; that hardware. For future reference if you are prompted for a 
&lt;br&gt;firmware 
&lt;br&gt;&amp;gt; upgrade while using the EZ430 always say &amp;quot;no.&amp;quot; It seems in this 
&lt;br&gt;case you 
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; will need to purchase a new device.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ian
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; sivan_toledo wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Windows stopped recognizing my ez430 USB dongle, after having 
&lt;/div&gt;used it
&lt;br&gt;&amp;gt; &amp;gt; without a problem for a while. Is there a way to debug this 
&lt;br&gt;(windows
&lt;br&gt;&amp;gt; &amp;gt; just lists it as an &amp;quot;unknown device&amp;quot;), or are they known to fail
&lt;br&gt;&amp;gt; &amp;gt; frequently? If so, is there anything in particular that causes 
&lt;br&gt;them to
&lt;br&gt;&amp;gt; &amp;gt; fail?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ez430-hardware-problem-tp10160523p19325256.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19318569</id>
	<title>I2C  EEPROM interface:  SLAA208   question</title>
	<published>2008-09-04T12:45:51Z</published>
	<updated>2008-09-04T12:45:51Z</updated>
	<author>
		<name>jsayavong</name>
	</author>
	<content type="html">I need help on I2C interface to an EEPROM via I2C bus to a
&lt;br&gt;small size EEPROM chip using one-byte address mode, as opposed to
&lt;br&gt;the two-byte addressing from which
&lt;br&gt;I downloaded the sample code from SLAA208 on TI website, the sample
&lt;br&gt;code was written for a large EEPROM device &amp;nbsp; which requires
&lt;br&gt;two bytes for addressing. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Here is a section of the code:
&lt;br&gt;&lt;br&gt;void main()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; InitI2C(); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Initialize I2C module
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;_EINT();
&lt;br&gt;&amp;nbsp; &amp;nbsp; .
&lt;br&gt;&amp;nbsp; &amp;nbsp; .
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; EEPROM_ByteWrite(0x0000,0x12); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//write to address 0x0000
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//two byte addressing !!!
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;///=================================//
&lt;br&gt;void EEPROM_ByteWrite(unsigned int Address, unsigned char Data)
&lt;br&gt;&amp;nbsp;{ &amp;nbsp;
&lt;br&gt;&amp;nbsp; unsigned char adr_hi;
&lt;br&gt;&amp;nbsp; unsigned char adr_lo;
&lt;br&gt;&lt;br&gt;&amp;nbsp; while (I2CDCTL&amp;I2CBUSY); // wait until I2C module has finished all operations
&lt;br&gt;&lt;br&gt;&amp;nbsp; adr_hi = Address &amp;gt;&amp;gt; 8; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // calculate high byte
&lt;br&gt;&amp;nbsp; adr_lo = Address &amp; 0xFF; &amp;nbsp; &amp;nbsp; &amp;nbsp; // &amp;nbsp; &amp;nbsp; and low byte of address
&lt;br&gt;&lt;br&gt;&amp;nbsp; I2CBuffer[2] = adr_hi; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // store single bytes that have to be sent
&lt;br&gt;&amp;nbsp; I2CBuffer[1] = adr_lo; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // &amp;nbsp; in the I2CBuffer.
&lt;br&gt;&amp;nbsp; I2CBuffer[0] = Data;
&lt;br&gt;&amp;nbsp; PtrTransmit = 2; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // set I2CBuffer Pointer
&lt;br&gt;&lt;br&gt;&amp;nbsp; I2CWriteInit();
&lt;br&gt;&amp;nbsp; I2CNDAT = 3; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // 1 control byte + 3 bytes should be transmitted
&lt;br&gt;&amp;nbsp; I2CTCTL |= I2CSTT+I2CSTP; &amp;nbsp; // start and stop condition generation
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; I2C communication is started
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;My question is:
&lt;br&gt;&lt;br&gt;How do I modify the above code so that it only uses one-byte addressing for
&lt;br&gt;much smaller EEPROM device &amp;nbsp;(less that 256 byte).
&lt;br&gt;&lt;br&gt;Thanks in advance,
&lt;br&gt;&lt;br&gt;&lt;br&gt;JS
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/I2C--EEPROM-interface%3A--SLAA208---question-tp19318569p19318569.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19315845</id>
	<title>Re:Re: Doubts about FFT</title>
	<published>2008-09-04T10:30:44Z</published>
	<updated>2008-09-04T10:30:44Z</updated>
	<author>
		<name>aee-2</name>
	</author>
	<content type="html">Try this document:
&lt;br&gt;&lt;a href=&quot;http://focus.tij.co.jp/jp/lit/an/spra417a/spra417a.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://focus.tij.co.jp/jp/lit/an/spra417a/spra417a.pdf&lt;/a&gt;&lt;br&gt;It is an implementation example of a spectrum analyser using 128pt FFT in a TI's DSP. It is an assembly program (:P) but can easily be converted to MSP's code (assembly, of course... You may need to make some routines to perform functions that are natural to DSP's architecture). 
&lt;br&gt;Then just summ this paper with all others you have, along with explanations you've got here, and you will be able to implement your project.
&lt;br&gt;In a matter of fact this paper does exactly what you need. Just forget the part where it puts the results in a DAC and stays where it scans the results to find the biggest value...
&lt;br&gt;-Augusto
&lt;br&gt;&lt;br&gt;&lt;br&gt;De:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19315845&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;Para:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19315845&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;Cópia:
&lt;br&gt;&lt;br&gt;Data:Thu, 04 Sep 2008 14:01:26 -0000
&lt;br&gt;&lt;br&gt;Assunto:[msp430] Re: Doubts about FFT
&lt;br&gt;&lt;br&gt;Sorry friend, 
&lt;br&gt;I think that my question was wrong. I know a little about FFT. 
&lt;br&gt;Actually I want to know how I can read the results of the FFT 
&lt;br&gt;according to the frequency. The results is a sequence of bits, 
&lt;br&gt;right? So, how I show the results voltage x frequency? For example, 
&lt;br&gt;if I could measure the output with an oscilloscope, as I see this 
&lt;br&gt;sign?
&lt;br&gt;In my project I need to discovery two predominat frequency in one 
&lt;br&gt;signal, but I don't know what I do after FFT.
&lt;br&gt;&lt;br&gt;Did you understand my questions? Sorry, my english is poor.
&lt;br&gt;&lt;br&gt;Thanks for all, 
&lt;br&gt;&lt;br&gt;--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19315845&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;p_murayama&amp;quot; &amp;lt;pascal@...&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As a student, you might be interested in reading a little bit 
&lt;br&gt;about what
&lt;br&gt;&amp;gt; is an FFT. Google keys: Cooley, Sand, Tuckey (I am not sure of the 
&lt;br&gt;spelling
&lt;br&gt;&amp;gt; of this one).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; That said, the FFT transform a set of time samples (power of 2), 
&lt;br&gt;into
&lt;br&gt;&amp;gt; another set of frequency samples (same power of 2). So if you FFT 
&lt;br&gt;your
&lt;br&gt;&amp;gt; input signal, you will get exactly what you want: the amplitude of 
&lt;br&gt;each
&lt;br&gt;&amp;gt; of the frequency components. Then you look for the strongest 
&lt;br&gt;sample to
&lt;br&gt;&amp;gt; have the predominant frequency.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The result? If you are sampling a voltage (V(t)) you will get the 
&lt;br&gt;same
&lt;br&gt;&amp;gt; voltage as a function of the frequency (V(f)). Basically, you get 
&lt;br&gt;&amp;gt; you input, under another representation.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Suppose that your sampling frequency is 1000 Hz and that you are
&lt;br&gt;&amp;gt; sampling a sinewave of amplitude 1 at exactly 250 Hz, you will get
&lt;br&gt;&amp;gt; 2 spikes only in the output signal, ona at 250 Hz, and one at 750 
&lt;br&gt;Hz.
&lt;br&gt;&amp;gt; Just ignore the second (1) one which is an alias of the first one, 
&lt;br&gt;and that's
&lt;br&gt;&amp;gt; about it, the result tells you that you have only 250 Hz, what you 
&lt;br&gt;already
&lt;br&gt;&amp;gt; knew in this case.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (1) as I assume your signal is purely real (output of an ADC),
&lt;br&gt;&amp;gt; you can just ignore the upper half of the output set (samples from 
&lt;br&gt;N/2
&lt;br&gt;&amp;gt; to N-1). Hint: you don't have to calculate what you will finally 
&lt;br&gt;ignore.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Last thing (that should come first): Before sampling, make sure 
&lt;br&gt;that the
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; max frequency of what you want to measure is less than half of the
&lt;br&gt;&amp;gt; sampling frequency, otherwise you will get unwanted results.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Pascal
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19315845&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;keller.lima&amp;quot; &amp;lt;keller.lima@&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Friends,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I read the application note about The MSP430 Hardware 
&lt;/div&gt;Multiplier: 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.microcontrol.cn/datasheet/MSP430/MSP430AN/slaa042.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microcontrol.cn/datasheet/MSP430/MSP430AN/slaa042.pdf&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I understand many things but I have a question: what is the 
&lt;br&gt;FFT 
&lt;br&gt;&amp;gt; &amp;gt; results format? The data results are in the format Tension x 
&lt;br&gt;Freq?
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I need to know what are the predominant frequencies of the 
&lt;br&gt;signal.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Please help a desperate student, 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;[Non-text portions of this message have been removed]
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3ARe%3A-Doubts-about-FFT-tp19315845p19315845.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19312123</id>
	<title>Re: Re: Doubts about FFT</title>
	<published>2008-09-04T07:47:05Z</published>
	<updated>2008-09-04T07:47:05Z</updated>
	<author>
		<name>Onestone-2</name>
	</author>
	<content type="html">OK, this is an EXTREMELY &amp;nbsp;simplified explanation, but probably what you 
&lt;br&gt;are looking for. When you perform an FFT you are basically calculating 
&lt;br&gt;the energy present for a specfic frequency within the composite signal 
&lt;br&gt;over a fixed time period. FFts are said to have a certain number of 
&lt;br&gt;'taps', which are sometimes called 'buckets'. a signal sampled at 8000 
&lt;br&gt;samples a second will have a useful rage of 0-4000hz,. analysign this 
&lt;br&gt;signal with a 100 tap signal will split the original signal into 40 hz 
&lt;br&gt;intervals. The results you get back are typically amplitude and phase. 
&lt;br&gt;each pair will allow you to create a sinusoial signal at the centre 
&lt;br&gt;frequency of that 'bucket'. Summing these signals will result in the 
&lt;br&gt;reconstruction of the original signal. So, very simply looking for the 
&lt;br&gt;two highest amplitudes will give you the two dominant signals.
&lt;br&gt;&lt;br&gt;remember this is a crude explanation of what is happening. there is much 
&lt;br&gt;more to it, and I suggest that you study this practically, as well as 
&lt;br&gt;from reference books. for example:-
&lt;br&gt;&lt;br&gt;1. create a few waveforms from known sinusoidal signals then run an FFt 
&lt;br&gt;on them with 'buckets' that match the original freqiencies.
&lt;br&gt;2. Now repeat this with a differnet set of 'buckets'
&lt;br&gt;3. analyse a complex waveform and then reconstruct it. see how accurate 
&lt;br&gt;it is. (HINT: beware of the DC component)
&lt;br&gt;4. analyse a complex waveform such as an audio signal, then reconstruct 
&lt;br&gt;it using only every 2nd, 3rd or 4th 'bucket', keep getting 'thinner' wit 
&lt;br&gt;your data and see what happens.
&lt;br&gt;5. recostruct using a fixed value for phase, and see what happens to 
&lt;br&gt;your audio signal.
&lt;br&gt;&lt;br&gt;These are justa few fun things to do with FFT's.
&lt;br&gt;&lt;br&gt;By the way EXcel also can do FFT's. it is interesting to load a table 
&lt;br&gt;with a set of data froma &amp;nbsp;composite waveform and then play aroun din Excel.
&lt;br&gt;&lt;br&gt;Al
&lt;br&gt;&lt;br&gt;keller.lima wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;Sorry friend, 
&lt;br&gt;&amp;gt;I think that my question was wrong. I know a little about FFT. 
&lt;br&gt;&amp;gt;Actually I want to know how I can read the results of the FFT 
&lt;br&gt;&amp;gt;according to the frequency. The results is a sequence of bits, 
&lt;br&gt;&amp;gt;right? So, how I show the results voltage x frequency? For example, 
&lt;br&gt;&amp;gt;if I could measure the output with an oscilloscope, as I see this 
&lt;br&gt;&amp;gt;sign?
&lt;br&gt;&amp;gt;In my project I need to discovery two predominat frequency in one 
&lt;br&gt;&amp;gt;signal, but I don't know what I do after FFT.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Did you understand my questions? Sorry, my english is poor.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Thanks for all, 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19312123&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;p_murayama&amp;quot; &amp;lt;pascal@...&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;Hello.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;As a student, you might be interested in reading a little bit 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;about what
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;is an FFT. Google keys: Cooley, Sand, Tuckey (I am not sure of the 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;spelling
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;of this one).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;That said, the FFT transform a set of time samples (power of 2), 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;into
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;another set of frequency samples (same power of 2). So if you FFT 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;your
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;input signal, you will get exactly what you want: the amplitude of 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;each
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;of the frequency components. Then you look for the strongest 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;sample to
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;have the predominant frequency.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;The result? If you are sampling a voltage (V(t)) you will get the 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;same
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;voltage as a function of the frequency (V(f)). Basically, you get 
&lt;br&gt;&amp;gt;&amp;gt;you input, under another representation.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;Suppose that your sampling frequency is 1000 Hz and that you are
&lt;br&gt;&amp;gt;&amp;gt;sampling a sinewave of amplitude 1 at exactly 250 Hz, you will get
&lt;br&gt;&amp;gt;&amp;gt;2 spikes only in the output signal, ona at 250 Hz, and one at 750 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;Hz.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;Just ignore the second (1) one which is an alias of the first one, 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;and that's
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;about it, the result tells you that you have only 250 Hz, what you 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;already
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;knew in this case.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;(1) as I assume your signal is purely real (output of an ADC),
&lt;br&gt;&amp;gt;&amp;gt;you can just ignore the upper half of the output set (samples from 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;N/2
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;to N-1). &amp;nbsp;Hint: you don't have to calculate what you will finally 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;ignore.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;Last thing (that should come first): Before sampling, make sure 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;that the
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;max frequency of what you want to measure is less than half of the
&lt;br&gt;&amp;gt;&amp;gt;sampling frequency, otherwise you will get unwanted results.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;Pascal
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19312123&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;keller.lima&amp;quot; &amp;lt;keller.lima@&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; Friends,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; I read the application note about The MSP430 Hardware 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;Multiplier: 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&lt;a href=&quot;http://www.microcontrol.cn/datasheet/MSP430/MSP430AN/slaa042.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microcontrol.cn/datasheet/MSP430/MSP430AN/slaa042.pdf&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; I understand many things but I have a question: what is the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;FFT 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;results format? The data results are in the format Tension x 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;Freq?
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; I need to know what are the predominant frequencies of the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;signal.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;Please help a desperate student, 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;To unsubscribe from the msp430 group, send an email to:
&lt;br&gt;&amp;gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19312123&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Yahoo! Groups Links
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;[Non-text portions of this message have been removed]
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Doubts-about-FFT-tp19302604p19312123.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19312077</id>
	<title>Re: Re: MSP430F2417 question</title>
	<published>2008-09-04T07:42:18Z</published>
	<updated>2008-09-04T07:42:18Z</updated>
	<author>
		<name>Anders Lindgren</name>
	</author>
	<content type="html">old_cow_yellow wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I was wondering about this too.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I think you need to write the code in small chunks and use ORG to
&lt;br&gt;&amp;gt; force the linker to skip over the vectors when the next chunk cannot
&lt;br&gt;&amp;gt; fit in the lower 64K address anymore.
&lt;br&gt;&lt;br&gt;Sorry for picking up an old thread...
&lt;br&gt;&lt;br&gt;The linker supports placing segments parts into more than one location. 
&lt;br&gt;For example, you can use the following:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-P(CODE)CODE=3100-FFBD,10000-19FFF
&lt;br&gt;&lt;br&gt;In fact, this is taken from the provided linker command files.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-- Anders Lindgren, IAR Systems
&lt;br&gt;-- 
&lt;br&gt;Disclaimer: Opinions expressed in this posting are strictly my own and
&lt;br&gt;not necessarily those of my employer.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/MSP430F2417-question-tp18582531p19312077.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19311265</id>
	<title>Custom startup routine  Re: Static int declaration and initialization</title>
	<published>2008-09-04T07:04:37Z</published>
	<updated>2008-09-04T07:04:37Z</updated>
	<author>
		<name>Stuart_Rubin</name>
	</author>
	<content type="html">All, I do want to clarify that on the projects which used custom
&lt;br&gt;startup routines were NOT MSP430-based systems. &amp;nbsp;They happen to have
&lt;br&gt;been 68HC12 and ARM9 boards, but I still maintain that the
&lt;br&gt;customizations had questionable utility at best.
&lt;br&gt;&lt;br&gt;Stuart
&lt;br&gt;&lt;br&gt;--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19311265&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;Stuart_Rubin&amp;quot; &amp;lt;stuart_rubin@...&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My experience has been that custom startup code causes more problems
&lt;br&gt;&amp;gt; than it's worth. &amp;nbsp;To the original poster, would you please give us
&lt;br&gt;&amp;gt; some insight as to why you needed to customize it?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; My (limited) experience has been that any optimizations are
&lt;br&gt;&amp;gt; overwhelmed by the complications and potential for problems (as shown
&lt;br&gt;&amp;gt; by the poster). &amp;nbsp;If you need RAM or some hardware initialized in some
&lt;br&gt;&amp;gt; special way, why didn't you just do it at the top of main()? &amp;nbsp;On an
&lt;br&gt;&amp;gt; MSP430, there is so little RAM, and I'm sure very little of it get
&lt;br&gt;&amp;gt; pre-initialized.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The only time I've seen a custom startup routine make sense (and I
&lt;br&gt;&amp;gt; actually don't agree that it was the best way to do it) was in an
&lt;br&gt;&amp;gt; avionics application where a restart was implicitly due to a power
&lt;br&gt;&amp;gt; blip and certain hardware had to be initialized quickly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This is not a criticism, but I really do want to know what drove that
&lt;br&gt;&amp;gt; design decision.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Stuart
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19311265&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;Mirko Viviani&amp;quot; &amp;lt;furetto76@&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; the problem was in the custom cstartup code.
&lt;br&gt;&amp;gt; &amp;gt; By replacing it with the default one, no more problems occurred.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Thanks a lot for the tips!
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 2008/9/3 Anders Lindgren &amp;lt;Anders.lindgren@&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; Hi!
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Just to eliminate the obvious -- did you include the header file
&lt;br&gt;&amp;gt; &amp;quot;stdio.h&amp;quot;?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; If not, then you should have listened to the compiler warnings
&lt;br&gt;&amp;gt; (they are
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; there for a reason). On the other hand, if you did include it you
&lt;br&gt;&amp;gt; should
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; have included it in the example you posted here.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; If we assume that that is not the issue, what is the value of the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; variable &amp;quot;i&amp;quot; if you debug the application?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; What settings do you use? (Optimization levels, data models etc.)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -- Anders Lindgren, IAR Systems
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Mirko Viviani wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Using IAR on a MSP430F1611 (MSP430 family) this piece of code
&lt;br&gt;&amp;gt; does not
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; work
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; (printf will print something else than 23)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I cannot split the inizialization from declaration (source code
&lt;br&gt;&amp;gt; cannot be
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; modified): any idea?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; static int i=23;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; void main()
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; printf(&amp;quot;%d&amp;quot;,i);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Obviously splitting initialization from declaration works.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Disclaimer: Opinions expressed in this posting are strictly my
&lt;/div&gt;own and
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; not necessarily those of my employer.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -- 
&lt;br&gt;&amp;gt; &amp;gt; -- Mirko Viviani --
&lt;br&gt;&amp;gt; &amp;gt; GPG-PGP Public Key: 0xE4E8FAB1
&lt;br&gt;&amp;gt; &amp;gt; Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
&lt;br&gt;&amp;gt; &amp;gt; ***********************************************
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;&amp;quot;Machines take me by surprise with great frequency.&amp;quot; A. Turing
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; [Non-text portions of this message have been removed]
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Static-int-declaration-and-initialization-tp19270094p19311265.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19311194</id>
	<title>Re: Doubts about FFT</title>
	<published>2008-09-04T07:01:26Z</published>
	<updated>2008-09-04T07:01:26Z</updated>
	<author>
		<name>keller.lima</name>
	</author>
	<content type="html">Sorry friend, 
&lt;br&gt;I think that my question was wrong. I know a little about FFT. 
&lt;br&gt;Actually I want to know how I can read the results of the FFT 
&lt;br&gt;according to the frequency. The results is a sequence of bits, 
&lt;br&gt;right? So, how I show the results voltage x frequency? For example, 
&lt;br&gt;if I could measure the output with an oscilloscope, as I see this 
&lt;br&gt;sign?
&lt;br&gt;In my project I need to discovery two predominat frequency in one 
&lt;br&gt;signal, but I don't know what I do after FFT.
&lt;br&gt;&lt;br&gt;Did you understand my questions? Sorry, my english is poor.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks for all, 
&lt;br&gt;&lt;br&gt;&lt;br&gt;--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19311194&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;p_murayama&amp;quot; &amp;lt;pascal@...&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As a student, you might be interested in reading a little bit 
&lt;br&gt;about what
&lt;br&gt;&amp;gt; is an FFT. Google keys: Cooley, Sand, Tuckey (I am not sure of the 
&lt;br&gt;spelling
&lt;br&gt;&amp;gt; of this one).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; That said, the FFT transform a set of time samples (power of 2), 
&lt;br&gt;into
&lt;br&gt;&amp;gt; another set of frequency samples (same power of 2). So if you FFT 
&lt;br&gt;your
&lt;br&gt;&amp;gt; input signal, you will get exactly what you want: the amplitude of 
&lt;br&gt;each
&lt;br&gt;&amp;gt; of the frequency components. Then you look for the strongest 
&lt;br&gt;sample to
&lt;br&gt;&amp;gt; have the predominant frequency.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The result? If you are sampling a voltage (V(t)) you will get the 
&lt;br&gt;same
&lt;br&gt;&amp;gt; voltage as a function of the frequency (V(f)). Basically, you get 
&lt;br&gt;&amp;gt; you input, under another representation.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Suppose that your sampling frequency is 1000 Hz and that you are
&lt;br&gt;&amp;gt; sampling a sinewave of amplitude 1 at exactly 250 Hz, you will get
&lt;br&gt;&amp;gt; 2 spikes only in the output signal, ona at 250 Hz, and one at 750 
&lt;br&gt;Hz.
&lt;br&gt;&amp;gt; Just ignore the second (1) one which is an alias of the first one, 
&lt;br&gt;and that's
&lt;br&gt;&amp;gt; about it, the result tells you that you have only 250 Hz, what you 
&lt;br&gt;already
&lt;br&gt;&amp;gt; knew in this case.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (1) as I assume your signal is purely real (output of an ADC),
&lt;br&gt;&amp;gt; you can just ignore the upper half of the output set (samples from 
&lt;br&gt;N/2
&lt;br&gt;&amp;gt; to N-1). &amp;nbsp;Hint: you don't have to calculate what you will finally 
&lt;br&gt;ignore.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Last thing (that should come first): Before sampling, make sure 
&lt;br&gt;that the
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; max frequency of what you want to measure is less than half of the
&lt;br&gt;&amp;gt; sampling frequency, otherwise you will get unwanted results.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Pascal
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19311194&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;keller.lima&amp;quot; &amp;lt;keller.lima@&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;Friends,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;I read the application note about The MSP430 Hardware 
&lt;/div&gt;Multiplier: 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.microcontrol.cn/datasheet/MSP430/MSP430AN/slaa042.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microcontrol.cn/datasheet/MSP430/MSP430AN/slaa042.pdf&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;I understand many things but I have a question: what is the 
&lt;br&gt;FFT 
&lt;br&gt;&amp;gt; &amp;gt; results format? The data results are in the format Tension x 
&lt;br&gt;Freq?
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;I need to know what are the predominant frequencies of the 
&lt;br&gt;signal.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Please help a desperate student, 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Doubts-about-FFT-tp19302604p19311194.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19309891</id>
	<title>Custom startup routine  Re: Static int declaration and initialization</title>
	<published>2008-09-04T05:56:31Z</published>
	<updated>2008-09-04T05:56:31Z</updated>
	<author>
		<name>Stuart_Rubin</name>
	</author>
	<content type="html">My experience has been that custom startup code causes more problems
&lt;br&gt;than it's worth. &amp;nbsp;To the original poster, would you please give us
&lt;br&gt;some insight as to why you needed to customize it?
&lt;br&gt;&lt;br&gt;My (limited) experience has been that any optimizations are
&lt;br&gt;overwhelmed by the complications and potential for problems (as shown
&lt;br&gt;by the poster). &amp;nbsp;If you need RAM or some hardware initialized in some
&lt;br&gt;special way, why didn't you just do it at the top of main()? &amp;nbsp;On an
&lt;br&gt;MSP430, there is so little RAM, and I'm sure very little of it get
&lt;br&gt;pre-initialized.
&lt;br&gt;&lt;br&gt;The only time I've seen a custom startup routine make sense (and I
&lt;br&gt;actually don't agree that it was the best way to do it) was in an
&lt;br&gt;avionics application where a restart was implicitly due to a power
&lt;br&gt;blip and certain hardware had to be initialized quickly.
&lt;br&gt;&lt;br&gt;This is not a criticism, but I really do want to know what drove that
&lt;br&gt;design decision.
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;Stuart
&lt;br&gt;&lt;br&gt;&lt;br&gt;--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19309891&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;Mirko Viviani&amp;quot; &amp;lt;furetto76@...&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; the problem was in the custom cstartup code.
&lt;br&gt;&amp;gt; By replacing it with the default one, no more problems occurred.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks a lot for the tips!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2008/9/3 Anders Lindgren &amp;lt;Anders.lindgren@...&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; Hi!
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Just to eliminate the obvious -- did you include the header file
&lt;/div&gt;&amp;quot;stdio.h&amp;quot;?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; If not, then you should have listened to the compiler warnings
&lt;br&gt;(they are
&lt;br&gt;&amp;gt; &amp;gt; there for a reason). On the other hand, if you did include it you
&lt;br&gt;should
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; have included it in the example you posted here.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; If we assume that that is not the issue, what is the value of the
&lt;br&gt;&amp;gt; &amp;gt; variable &amp;quot;i&amp;quot; if you debug the application?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; What settings do you use? (Optimization levels, data models etc.)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -- Anders Lindgren, IAR Systems
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Mirko Viviani wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Using IAR on a MSP430F1611 (MSP430 family) this piece of code
&lt;/div&gt;does not
&lt;br&gt;&amp;gt; &amp;gt; work
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; (printf will print something else than 23)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I cannot split the inizialization from declaration (source code
&lt;br&gt;cannot be
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; modified): any idea?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; static int i=23;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; void main()
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; printf(&amp;quot;%d&amp;quot;,i);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Obviously splitting initialization from declaration works.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; Disclaimer: Opinions expressed in this posting are strictly my own and
&lt;br&gt;&amp;gt; &amp;gt; not necessarily those of my employer.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; -- Mirko Viviani --
&lt;br&gt;&amp;gt; GPG-PGP Public Key: 0xE4E8FAB1
&lt;br&gt;&amp;gt; Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
&lt;br&gt;&amp;gt; ***********************************************
&lt;br&gt;&amp;gt; &amp;quot;&amp;quot;Machines take me by surprise with great frequency.&amp;quot; A. Turing
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [Non-text portions of this message have been removed]
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Static-int-declaration-and-initialization-tp19270094p19309891.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19309799</id>
	<title>Re: help needed with interfacing 3-axis accelerometer with MSP430F2013</title>
	<published>2008-09-04T05:51:57Z</published>
	<updated>2008-09-04T05:51:57Z</updated>
	<author>
		<name>Chinmay Manohar</name>
	</author>
	<content type="html">Thanks &amp;nbsp;OneStone and Juan,
&lt;br&gt;&lt;br&gt;Currently I am not that concerned with the time gap between the three 
&lt;br&gt;axis, also for design purpose we are stuck with 2013 at the moment but 
&lt;br&gt;I will take your suggestion into consideration when in my next update.
&lt;br&gt;&lt;br&gt;thanks so much for your help
&lt;br&gt;&lt;br&gt;Chinmay
&lt;br&gt;--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19309799&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, Onestone &amp;lt;onestone@...&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For most accelerometer applications the SD16 is not a good choice, 
&lt;br&gt;since 
&lt;br&gt;&amp;gt; the measurements are not even close to being time aligned. This slew 
&lt;br&gt;&amp;gt; means that the motion relationships between axes cannot be relied 
&lt;br&gt;upon. 
&lt;br&gt;&amp;gt; You are better off using either a digital output sensor, such as the 
&lt;br&gt;PWM 
&lt;br&gt;&amp;gt; output, or one with a serial output, since in the first case the 
&lt;br&gt;micro 
&lt;br&gt;&amp;gt; in edge trigger mode will store edges simultaneously, even though 
&lt;br&gt;they 
&lt;br&gt;&amp;gt; are not accessed precisely together, while in the serial systems 
&lt;br&gt;most of 
&lt;br&gt;&amp;gt; them convert sycnhronously so that data is time aligned. The 
&lt;br&gt;downside to 
&lt;br&gt;&amp;gt; most serial systems is that they limit each result to 8 bits. The 
&lt;br&gt;next 
&lt;br&gt;&amp;gt; best option would be to use a device with a SAR converter, such as 
&lt;br&gt;the 
&lt;br&gt;&amp;gt; 2012,. Even though these are not sampled synchronously, so there is 
&lt;br&gt;&amp;gt; still some time skew, the delay between samples can be much shorter 
&lt;br&gt;than 
&lt;br&gt;&amp;gt; with the Sd16 module, for the same resolution.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; if you're stuck wit the 2013 then follow Juans recommendations.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Al
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Chinmay Manohar wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;wondering if anyone has tried using the SD16 on MSP430F2013 
&lt;br&gt;configured
&lt;br&gt;&amp;gt; &amp;gt;to do AtoD conversion on multiple (external) input channels. So far
&lt;br&gt;&amp;gt; &amp;gt;I've been able to read a single axis on the accelerometer, reading 
&lt;br&gt;all
&lt;br&gt;&amp;gt; &amp;gt;3 axes in sequential pattern has not been possible so far. any help 
&lt;br&gt;/
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt;guidance is highly appreciated...
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;thanks
&lt;br&gt;&amp;gt; &amp;gt;C
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;------------------------------------
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;To unsubscribe from the msp430 group, send an email to:
&lt;br&gt;&amp;gt; &amp;gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19309799&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;Yahoo! Groups Links
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/help-needed-with-interfacing-3-axis-accelerometer-with-MSP430F2013-tp19298187p19309799.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19308072</id>
	<title>Re: Static int declaration and initialization</title>
	<published>2008-09-04T04:00:42Z</published>
	<updated>2008-09-04T04:00:42Z</updated>
	<author>
		<name>Mirko Viviani-3</name>
	</author>
	<content type="html">I though at cstartup code only after the old_cow_yellow response.
&lt;br&gt;Anyway, thanks to everybody!
&lt;br&gt;&lt;br&gt;2008/9/4 Richard (UK) &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19308072&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ymsp430@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;gt;&amp;gt;&amp;gt; the problem was in the custom cstartup code. By replacing it with
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; default one, no more problems occurred.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ... but ... but ... but ... you didn't tell us that you had changed the
&lt;br&gt;&amp;gt; startup code!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you change a very major part of the system such as the startup code and
&lt;br&gt;&amp;gt; then basic C code stops working, then maybe just maybe you might have
&lt;br&gt;&amp;gt; broken
&lt;br&gt;&amp;gt; something!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you had provided FULL information then maybe you would have had an
&lt;br&gt;&amp;gt; instant &amp; correct reply.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;-- Mirko Viviani --
&lt;br&gt;GPG-PGP Public Key: 0xE4E8FAB1
&lt;br&gt;Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
&lt;br&gt;***********************************************
&lt;br&gt;&amp;quot;&amp;quot;Machines take me by surprise with great frequency.&amp;quot; A. Turing
&lt;br&gt;&lt;br&gt;&lt;br&gt;[Non-text portions of this message have been removed]
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Static-int-declaration-and-initialization-tp19270094p19308072.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19307622</id>
	<title>Re: Static int declaration and initialization</title>
	<published>2008-09-04T03:28:12Z</published>
	<updated>2008-09-04T03:28:12Z</updated>
	<author>
		<name>Richard (UK).</name>
	</author>
	<content type="html">&amp;gt;&amp;gt;&amp;gt; the problem was in the custom cstartup code. By replacing it with the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; default one, no more problems occurred.
&lt;br&gt;&lt;br&gt;... but ... but ... but ... you didn't tell us that you had changed the 
&lt;br&gt;startup code!
&lt;br&gt;&lt;br&gt;If you change a very major part of the system such as the startup code and 
&lt;br&gt;then basic C code stops working, then maybe just maybe you might have broken 
&lt;br&gt;something!
&lt;br&gt;&lt;br&gt;If you had provided FULL information then maybe you would have had an 
&lt;br&gt;instant &amp; correct reply.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Static-int-declaration-and-initialization-tp19270094p19307622.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19304303</id>
	<title>Re: RS232 with MSP-EXP430FG4618 Experimenter Board</title>
	<published>2008-09-03T23:37:41Z</published>
	<updated>2008-09-03T23:37:41Z</updated>
	<author>
		<name>paddu.koti</name>
	</author>
	<content type="html">--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19304303&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, Raymond Sun &amp;lt;raymond9804@...&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi, 
&lt;br&gt;&amp;gt;  
&lt;br&gt;&amp;gt; Would you please provide more information about how to use the 
&lt;br&gt;RS232 in MSP-EXP430FG4618 Experimenter Board?
&lt;br&gt;&amp;gt; The slau214a.pdf document on www.ti.com did not give enough.
&lt;br&gt;&amp;gt;  
&lt;br&gt;&amp;gt; Can I use example code in slac129a.zip for MSP430FG4618? But how 
&lt;br&gt;can I relate its pins to the RS232 in MSP-EXP430FG4618 Experimenter 
&lt;br&gt;Board?
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;  
&lt;br&gt;&amp;gt; Raymond 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;__________________________________________________________________
&lt;br&gt;&amp;gt; Yahoo! Canada Toolbar: Search from anywhere on the web, and 
&lt;br&gt;bookmark your favourite sites. Download it now at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://ca.toolbar.yahoo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ca.toolbar.yahoo.com&lt;/a&gt;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [Non-text portions of this message have been removed]
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;try the below link(page24 LAB 1)
&lt;br&gt;&lt;a href=&quot;http://focus.ti.com/lit/ml/slap117/slap117.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://focus.ti.com/lit/ml/slap117/slap117.pdf&lt;/a&gt;&lt;br&gt;&lt;br&gt;ATC board is MSP-EXP430FG4618.
&lt;br&gt;&lt;br&gt;And also you can find sample code for UART comm in 
&lt;br&gt;&lt;a href=&quot;http://focus.ti.com/docs/prod/folders/print/msp430fg4618.html#toolsso&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://focus.ti.com/docs/prod/folders/print/msp430fg4618.html#toolsso&lt;/a&gt;&lt;br&gt;ftware
&lt;br&gt;slac118b.zip(msp430xG46x_uscia0_uart....)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/RS232-with-MSP-EXP430FG4618-Experimenter-Board-tp19302927p19304303.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19304270</id>
	<title>Re: Static int declaration and initialization</title>
	<published>2008-09-03T23:35:10Z</published>
	<updated>2008-09-03T23:35:10Z</updated>
	<author>
		<name>Mirko Viviani-3</name>
	</author>
	<content type="html">the problem was in the custom cstartup code.
&lt;br&gt;By replacing it with the default one, no more problems occurred.
&lt;br&gt;&lt;br&gt;Thanks a lot for the tips!
&lt;br&gt;&lt;br&gt;2008/9/3 Anders Lindgren &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19304270&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Anders.lindgren@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp; Hi!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Just to eliminate the obvious -- did you include the header file &amp;quot;stdio.h&amp;quot;?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If not, then you should have listened to the compiler warnings (they are
&lt;br&gt;&amp;gt; there for a reason). On the other hand, if you did include it you should
&lt;br&gt;&amp;gt; have included it in the example you posted here.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If we assume that that is not the issue, what is the value of the
&lt;br&gt;&amp;gt; variable &amp;quot;i&amp;quot; if you debug the application?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What settings do you use? (Optimization levels, data models etc.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- Anders Lindgren, IAR Systems
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mirko Viviani wrote:
&lt;br&gt;&amp;gt; &amp;gt; Using IAR on a MSP430F1611 (MSP430 family) this piece of code does not
&lt;br&gt;&amp;gt; work
&lt;br&gt;&amp;gt; &amp;gt; (printf will print something else than 23)
&lt;br&gt;&amp;gt; &amp;gt; I cannot split the inizialization from declaration (source code cannot be
&lt;br&gt;&amp;gt; &amp;gt; modified): any idea?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; static int i=23;
&lt;br&gt;&amp;gt; &amp;gt; void main()
&lt;br&gt;&amp;gt; &amp;gt; {
&lt;br&gt;&amp;gt; &amp;gt; printf(&amp;quot;%d&amp;quot;,i);
&lt;br&gt;&amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Obviously splitting initialization from declaration works.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Disclaimer: Opinions expressed in this posting are strictly my own and
&lt;br&gt;&amp;gt; not necessarily those of my employer.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;-- Mirko Viviani --
&lt;br&gt;GPG-PGP Public Key: 0xE4E8FAB1
&lt;br&gt;Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
&lt;br&gt;***********************************************
&lt;br&gt;&amp;quot;&amp;quot;Machines take me by surprise with great frequency.&amp;quot; A. Turing
&lt;br&gt;&lt;br&gt;&lt;br&gt;[Non-text portions of this message have been removed]
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Static-int-declaration-and-initialization-tp19270094p19304270.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19303073</id>
	<title>Re: Doubts about FFT</title>
	<published>2008-09-03T21:18:07Z</published>
	<updated>2008-09-03T21:18:07Z</updated>
	<author>
		<name>p_murayama</name>
	</author>
	<content type="html">Hello.
&lt;br&gt;&lt;br&gt;As a student, you might be interested in reading a little bit about what
&lt;br&gt;is an FFT. Google keys: Cooley, Sand, Tuckey (I am not sure of the spelling
&lt;br&gt;of this one).
&lt;br&gt;&lt;br&gt;That said, the FFT transform a set of time samples (power of 2), into
&lt;br&gt;another set of frequency samples (same power of 2). So if you FFT your
&lt;br&gt;input signal, you will get exactly what you want: the amplitude of each
&lt;br&gt;of the frequency components. Then you look for the strongest sample to
&lt;br&gt;have the predominant frequency.
&lt;br&gt;&lt;br&gt;The result? If you are sampling a voltage (V(t)) you will get the same
&lt;br&gt;voltage as a function of the frequency (V(f)). Basically, you get what
&lt;br&gt;you input, under another representation.
&lt;br&gt;&lt;br&gt;Suppose that your sampling frequency is 1000 Hz and that you are
&lt;br&gt;sampling a sinewave of amplitude 1 at exactly 250 Hz, you will get
&lt;br&gt;2 spikes only in the output signal, ona at 250 Hz, and one at 750 Hz.
&lt;br&gt;Just ignore the second (1) one which is an alias of the first one, and that's
&lt;br&gt;about it, the result tells you that you have only 250 Hz, what you already
&lt;br&gt;knew in this case.
&lt;br&gt;&lt;br&gt;(1) as I assume your signal is purely real (output of an ADC),
&lt;br&gt;you can just ignore the upper half of the output set (samples from N/2
&lt;br&gt;to N-1). &amp;nbsp;Hint: you don't have to calculate what you will finally ignore.
&lt;br&gt;&lt;br&gt;Last thing (that should come first): Before sampling, make sure that the
&lt;br&gt;max frequency of what you want to measure is less than half of the
&lt;br&gt;sampling frequency, otherwise you will get unwanted results.
&lt;br&gt;&lt;br&gt;Pascal
&lt;br&gt;&lt;br&gt;--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19303073&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;keller.lima&amp;quot; &amp;lt;keller.lima@...&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Friends,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I read the application note about The MSP430 Hardware Multiplier: 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.microcontrol.cn/datasheet/MSP430/MSP430AN/slaa042.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microcontrol.cn/datasheet/MSP430/MSP430AN/slaa042.pdf&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I understand many things but I have a question: what is the FFT 
&lt;br&gt;&amp;gt; results format? The data results are in the format Tension x Freq?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I need to know what are the predominant frequencies of the signal.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Please help a desperate student, 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Doubts-about-FFT-tp19302604p19303073.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19302967</id>
	<title>Re: Doubts about FFT</title>
	<published>2008-09-03T21:03:08Z</published>
	<updated>2008-09-03T21:03:08Z</updated>
	<author>
		<name>old_cow_yellow</name>
	</author>
	<content type="html">The input to FFT is a discrete quantized waveform in the time domain.
&lt;br&gt;The output from FFT is a discrete quantized frequency spectrum in the
&lt;br&gt;frequency domain. The predominant frequencies are the frequencies of
&lt;br&gt;the predominant peaks in the frequency spectrum.
&lt;br&gt;&lt;br&gt;--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19302967&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;keller.lima&amp;quot; &amp;lt;keller.lima@...&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Friends,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I read the application note about The MSP430 Hardware Multiplier: 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.microcontrol.cn/datasheet/MSP430/MSP430AN/slaa042.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microcontrol.cn/datasheet/MSP430/MSP430AN/slaa042.pdf&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I understand many things but I have a question: what is the FFT 
&lt;br&gt;&amp;gt; results format? The data results are in the format Tension x Freq?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I need to know what are the predominant frequencies of the signal.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Please help a desperate student, 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Doubts-about-FFT-tp19302604p19302967.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19302604</id>
	<title>Doubts about FFT</title>
	<published>2008-09-03T20:18:56Z</published>
	<updated>2008-09-03T20:18:56Z</updated>
	<author>
		<name>keller.lima</name>
	</author>
	<content type="html">&amp;nbsp; &amp;nbsp;Friends,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I read the application note about The MSP430 Hardware Multiplier: 
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.microcontrol.cn/datasheet/MSP430/MSP430AN/slaa042.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microcontrol.cn/datasheet/MSP430/MSP430AN/slaa042.pdf&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I understand many things but I have a question: what is the FFT 
&lt;br&gt;results format? The data results are in the format Tension x Freq?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I need to know what are the predominant frequencies of the signal.
&lt;br&gt;&lt;br&gt;Please help a desperate student, 
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Doubts-about-FFT-tp19302604p19302604.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19302466</id>
	<title>Re: Can any plz explain this</title>
	<published>2008-09-03T20:01:44Z</published>
	<updated>2008-09-03T20:01:44Z</updated>
	<author>
		<name>paddu.koti</name>
	</author>
	<content type="html">--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19302466&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;, &amp;quot;Paul Curtis&amp;quot; &amp;lt;plc@...&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Hiyaa,,,
&lt;br&gt;&amp;gt; &amp;gt; I was going through the example program from TI about use of ADC,
&lt;br&gt;&amp;gt; &amp;gt; In this &amp;nbsp;program, their is one instruction.
&lt;br&gt;&amp;gt; &amp;gt; WDTCTL = WDT_MDLY_32; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // WDT Timer interval
&lt;br&gt;&amp;gt; &amp;gt; I have gone through User guide but didnt get how watchdog 
&lt;br&gt;interval is set,
&lt;br&gt;&amp;gt; &amp;gt; actually what is this WDT_MDLY_32.
&lt;br&gt;&amp;gt; &amp;gt; Plz help me outttttt....
&lt;br&gt;&amp;gt; &amp;gt; Navvvvv !
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You seem to have a stuck-key problem with your keyboard. &amp;nbsp;I 
&lt;br&gt;suggest you get a can of air and give your keyboard a good blow.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Paul Curtis, Rowley Associates Ltd &amp;nbsp; &lt;a href=&quot;http://www.rowley.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.rowley.co.uk&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
&lt;br&gt;&amp;gt;
&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;The WatchDog module can be configured as either a watchdog or a 
&lt;br&gt;interval timer,WDT_MDLY_32 provides 32ms interval.
&lt;br&gt;If you are using IAR embedded system,you can find the watchdog timer 
&lt;br&gt;definition in the .h header files
&lt;br&gt;C:\Program Files\IAR Systems\Embedded Workbench 5.0\430\inc
&lt;br&gt;&lt;br&gt;If need to learn MSP430,go through the online training. 
&lt;br&gt;&lt;a href=&quot;http://training.ti.com/courses/CourseCatalog.asp?iGID=1062&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://training.ti.com/courses/CourseCatalog.asp?iGID=1062&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Can-any-plz-explain-this-tp19292616p19302466.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19301435</id>
	<title>Re: help needed with interfacing 3-axis accelerometer with MSP430F2013</title>
	<published>2008-09-03T18:15:39Z</published>
	<updated>2008-09-03T18:15:39Z</updated>
	<author>
		<name>Onestone-2</name>
	</author>
	<content type="html">For most accelerometer applications the SD16 is not a good choice, since 
&lt;br&gt;the measurements are not even close to being time aligned. This slew 
&lt;br&gt;means that the motion relationships between axes cannot be relied upon. 
&lt;br&gt;You are better off using either a digital output sensor, such as the PWM 
&lt;br&gt;output, or one with a serial output, since in the first case the micro 
&lt;br&gt;in edge trigger mode will store edges simultaneously, even though they 
&lt;br&gt;are not accessed precisely together, while in the serial systems most of 
&lt;br&gt;them convert sycnhronously so that data is time aligned. The downside to 
&lt;br&gt;most serial systems is that they limit each result to 8 bits. The next 
&lt;br&gt;best option would be to use a device with a SAR converter, such as the 
&lt;br&gt;2012,. Even though these are not sampled synchronously, so there is 
&lt;br&gt;still some time skew, the delay between samples can be much shorter than 
&lt;br&gt;with the Sd16 module, for the same resolution.
&lt;br&gt;&lt;br&gt;if you're stuck wit the 2013 then follow Juans recommendations.
&lt;br&gt;&lt;br&gt;Al
&lt;br&gt;&lt;br&gt;Chinmay Manohar wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;wondering if anyone has tried using the SD16 on MSP430F2013 configured
&lt;br&gt;&amp;gt;to do AtoD conversion on multiple (external) input channels. So far
&lt;br&gt;&amp;gt;I've been able to read a single axis on the accelerometer, reading all
&lt;br&gt;&amp;gt;3 axes in sequential pattern has not been possible so far. any help /
&lt;br&gt;&amp;gt;guidance is highly appreciated...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;thanks
&lt;br&gt;&amp;gt;C
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;To unsubscribe from the msp430 group, send an email to:
&lt;br&gt;&amp;gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19301435&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Yahoo! Groups Links
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/help-needed-with-interfacing-3-axis-accelerometer-with-MSP430F2013-tp19298187p19301435.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19300861</id>
	<title>RE: Re: Can any plz explain this</title>
	<published>2008-09-03T17:24:08Z</published>
	<updated>2008-09-03T17:24:08Z</updated>
	<author>
		<name>Paul Curtis</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&amp;gt; Hiyaa,,,
&lt;br&gt;&amp;gt; I was going through the example program from TI about use of ADC,
&lt;br&gt;&amp;gt; In this &amp;nbsp;program, their is one instruction.
&lt;br&gt;&amp;gt; WDTCTL = WDT_MDLY_32; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // WDT Timer interval
&lt;br&gt;&amp;gt; I have gone through User guide but didnt get how watchdog interval is set,
&lt;br&gt;&amp;gt; actually what is this WDT_MDLY_32.
&lt;br&gt;&amp;gt; Plz help me outttttt....
&lt;br&gt;&amp;gt; Navvvvv !
&lt;br&gt;&lt;br&gt;You seem to have a stuck-key problem with your keyboard. &amp;nbsp;I suggest you get a can of air and give your keyboard a good blow.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Paul Curtis, Rowley Associates Ltd &amp;nbsp; &lt;a href=&quot;http://www.rowley.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.rowley.co.uk&lt;/a&gt;&amp;nbsp;
&lt;br&gt;CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Can-any-plz-explain-this-tp19292616p19300861.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19302927</id>
	<title>RS232 with MSP-EXP430FG4618 Experimenter Board</title>
	<published>2008-09-03T17:09:13Z</published>
	<updated>2008-09-03T17:09:13Z</updated>
	<author>
		<name>Raymond Sun</name>
	</author>
	<content type="html">Hi, 
&lt;br&gt; 
&lt;br&gt;Would you please provide more information about how to use the RS232 in MSP-EXP430FG4618 Experimenter Board?
&lt;br&gt;The slau214a.pdf document on www.ti.com did not give enough.
&lt;br&gt; 
&lt;br&gt;Can I use example code in slac129a.zip for MSP430FG4618? But how can I relate its pins to the RS232 in MSP-EXP430FG4618 Experimenter Board?
&lt;br&gt;Thanks,
&lt;br&gt; 
&lt;br&gt;Raymond 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; __________________________________________________________________
&lt;br&gt;Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
&lt;br&gt;&lt;a href=&quot;http://ca.toolbar.yahoo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ca.toolbar.yahoo.com&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;[Non-text portions of this message have been removed]
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/RS232-with-MSP-EXP430FG4618-Experimenter-Board-tp19302927p19302927.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19300719</id>
	<title>Re: Re: Can any plz explain this</title>
	<published>2008-09-03T17:09:07Z</published>
	<updated>2008-09-03T17:09:07Z</updated>
	<author>
		<name>Nav-6</name>
	</author>
	<content type="html">Hiyaa,,,
&lt;br&gt;I was going through the example program from TI about use of ADC,
&lt;br&gt;In this  program, their is one instruction. 
&lt;br&gt;WDTCTL = WDT_MDLY_32;                     // WDT Timer interval
&lt;br&gt;I have gone through User guide but didnt get how watchdog interval is set, actually what is this WDT_MDLY_32. 
&lt;br&gt;Plz help me outttttt....
&lt;br&gt;Navvvvv ! 
&lt;br&gt;&lt;br&gt;-
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;[Non-text portions of this message have been removed]
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Can-any-plz-explain-this-tp19292616p19300719.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19300173</id>
	<title>IAR startup workspace list</title>
	<published>2008-09-03T16:13:30Z</published>
	<updated>2008-09-03T16:13:30Z</updated>
	<author>
		<name>abufadel</name>
	</author>
	<content type="html">How can I clear the workspace list when IAR starts up?
&lt;br&gt;&lt;br&gt;Thank you,
&lt;br&gt;&lt;br&gt;A
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/IAR-startup-workspace-list-tp19300173p19300173.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19299431</id>
	<title>Re: help needed with interfacing 3-axis accelerometer with MSP430F2013</title>
	<published>2008-09-03T15:18:36Z</published>
	<updated>2008-09-03T15:18:36Z</updated>
	<author>
		<name>Juan Franco</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;br&gt;--- On Wed, 9/3/08, Chinmay Manohar &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19299431&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;manohar.chinmay@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: Chinmay Manohar &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19299431&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;manohar.chinmay@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: [msp430] help needed with interfacing 3-axis accelerometer with MSP430F2013
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19299431&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Date: Wednesday, September 3, 2008, 2:06 PM
&lt;br&gt;&amp;gt; wondering if anyone has tried using the SD16 on MSP430F2013
&lt;br&gt;&amp;gt; configured
&lt;br&gt;&amp;gt; to do AtoD conversion on multiple (external) input
&lt;br&gt;&amp;gt; channels. So far
&lt;br&gt;&amp;gt; I've been able to read a single axis on the
&lt;br&gt;&amp;gt; accelerometer, reading all
&lt;br&gt;&amp;gt; 3 axes in sequential pattern has not been possible so far.
&lt;br&gt;&amp;gt; any help /
&lt;br&gt;&amp;gt; guidance is highly appreciated...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; thanks
&lt;br&gt;&amp;gt; C
&lt;/div&gt;&lt;br&gt;Hello C.
&lt;br&gt;I am using an F2013 for converting 3 channels: 2 bipolar differential, 1 unipolar.
&lt;br&gt;First of all, you have to set P1SEL bits to 1 for the input pins of the SD16 channels being used. Then, in order for the SD16 to work correctly, you must only enable the analog input on SD16AE register for the channel being converted. Also, since you are switching channels you must set SD16INTDLY_X to 3 or 4, in order to obtain a valid result. Finally, if you are using the internal refference generator AND channel 1 in differential mode (e.g A1+ - A1-), P1SEL.3 must be set to 0, otherwise, the reference voltage will be buffered on P1.3 pin and might damage whatever you are meassuring. That's all I can think of.
&lt;br&gt;Kind regards,
&lt;br&gt;Juan
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/help-needed-with-interfacing-3-axis-accelerometer-with-MSP430F2013-tp19298187p19299431.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19299427</id>
	<title>RE: Re: Can any plz explain this</title>
	<published>2008-09-03T15:17:34Z</published>
	<updated>2008-09-03T15:17:34Z</updated>
	<author>
		<name>Dan Muzzey-2</name>
	</author>
	<content type="html">Tom
&lt;br&gt;&amp;nbsp;
&lt;br&gt;While I do appreciate the advice that you put forth on the mailing list
&lt;br&gt;and I do value your experience and knowledge, the continuing
&lt;br&gt;self-promotion is starting to wear thin. &amp;nbsp;In the case below, you do not
&lt;br&gt;actually offer advice but instead just ask people to buy your book. &amp;nbsp;It
&lt;br&gt;is one thing to suggest a book once or twice. &amp;nbsp;I think there were three
&lt;br&gt;cases today alone where you recommended buying the book without actually
&lt;br&gt;offering advice.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Respectfully
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Dan
&lt;br&gt;&amp;nbsp;
&lt;br&gt;________________________________
&lt;br&gt;&lt;br&gt;From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19299427&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19299427&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;] On Behalf
&lt;br&gt;Of Tom Baugh
&lt;br&gt;Sent: Wednesday, September 03, 2008 2:33 PM
&lt;br&gt;To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19299427&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;
&lt;br&gt;Subject: [msp430] Re: Can any plz explain this
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Nav,
&lt;br&gt;&lt;br&gt;I think a great place to start to help understanding that sample 
&lt;br&gt;program is to read the new book, MSP430 Microcontroller Basics, by 
&lt;br&gt;John Davies:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%&lt;/a&gt;&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%25&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%25&lt;/a&gt;&amp;gt; 
&lt;br&gt;2Fwww.amazon.com%2FMSP430-Microcontroller-Basics-John-Davies%2Fdp%
&lt;br&gt;2F0750682760%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1220014595%26sr%3D8-
&lt;br&gt;2&amp;tag=softcom-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325
&lt;br&gt;&lt;br&gt;After that book, you will then be ready to use the state-based 
&lt;br&gt;approach that we have used with the MSP430 world for a decade. This 
&lt;br&gt;approach is provided in detail in our book MSP430 State Machine 
&lt;br&gt;Programming:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%&lt;/a&gt;&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%25&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%25&lt;/a&gt;&amp;gt; 
&lt;br&gt;2Fwww.amazon.com%2FMSP430-State-Machine-Programming-ES2274%2Fdp%
&lt;br&gt;2F0975475924%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1214397954%26sr%3D8-
&lt;br&gt;1&amp;tag=softcom-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325
&lt;br&gt;&lt;br&gt;If those links don't work, then search amazon.com for MSP430 as one 
&lt;br&gt;word. John's book and ours will be at the top of the list. The pair 
&lt;br&gt;of these books, studied intently for a few weeks, will fill in a lot 
&lt;br&gt;of the gaps. Also, after working the exercises in our book you will 
&lt;br&gt;have a level of architectural expertise that would otherwise take 
&lt;br&gt;years to learn. This is like taking a MSP430 course in a few weeks 
&lt;br&gt;for less than $100.
&lt;br&gt;&lt;br&gt;You can find reviews of our book elsewhere on this group, but let me 
&lt;br&gt;know if you have any questions.
&lt;br&gt;&lt;br&gt;Tom
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;[Non-text portions of this message have been removed]
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Can-any-plz-explain-this-tp19292616p19299427.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19298187</id>
	<title>help needed with interfacing 3-axis accelerometer with MSP430F2013</title>
	<published>2008-09-03T14:06:49Z</published>
	<updated>2008-09-03T14:06:49Z</updated>
	<author>
		<name>Chinmay Manohar</name>
	</author>
	<content type="html">wondering if anyone has tried using the SD16 on MSP430F2013 configured
&lt;br&gt;to do AtoD conversion on multiple (external) input channels. So far
&lt;br&gt;I've been able to read a single axis on the accelerometer, reading all
&lt;br&gt;3 axes in sequential pattern has not been possible so far. any help /
&lt;br&gt;guidance is highly appreciated...
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;C
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/help-needed-with-interfacing-3-axis-accelerometer-with-MSP430F2013-tp19298187p19298187.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19296399</id>
	<title>Re: Can any plz explain this</title>
	<published>2008-09-03T12:33:16Z</published>
	<updated>2008-09-03T12:33:16Z</updated>
	<author>
		<name>Tom Baugh</name>
	</author>
	<content type="html">Nav,
&lt;br&gt;&lt;br&gt;I think a great place to start to help understanding that sample 
&lt;br&gt;program is to read the new book, MSP430 Microcontroller Basics, by 
&lt;br&gt;John Davies:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%&lt;/a&gt;&lt;br&gt;2Fwww.amazon.com%2FMSP430-Microcontroller-Basics-John-Davies%2Fdp%
&lt;br&gt;2F0750682760%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1220014595%26sr%3D8-
&lt;br&gt;2&amp;tag=softcom-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325
&lt;br&gt;&lt;br&gt;After that book, you will then be ready to use the state-based 
&lt;br&gt;approach that we have used with the MSP430 world for a decade. &amp;nbsp;This 
&lt;br&gt;approach is provided in detail in our book MSP430 State Machine 
&lt;br&gt;Programming:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%&lt;/a&gt;&lt;br&gt;2Fwww.amazon.com%2FMSP430-State-Machine-Programming-ES2274%2Fdp%
&lt;br&gt;2F0975475924%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1214397954%26sr%3D8-
&lt;br&gt;1&amp;tag=softcom-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325
&lt;br&gt;&lt;br&gt;If those links don't work, then search amazon.com for MSP430 as one 
&lt;br&gt;word. &amp;nbsp;John's book and ours will be at the top of the list. &amp;nbsp;The pair 
&lt;br&gt;of these books, studied intently for a few weeks, will fill in a lot 
&lt;br&gt;of the gaps. &amp;nbsp;Also, after working the exercises in our book you will 
&lt;br&gt;have a level of architectural expertise that would otherwise take 
&lt;br&gt;years to learn. &amp;nbsp;This is like taking a MSP430 course in a few weeks 
&lt;br&gt;for less than $100.
&lt;br&gt;&lt;br&gt;You can find reviews of our book elsewhere on this group, but let me 
&lt;br&gt;know if you have any questions.
&lt;br&gt;&lt;br&gt;Tom
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Can-any-plz-explain-this-tp19292616p19296399.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19296288</id>
	<title>Re: interrupt priority &quot;overrride&quot;</title>
	<published>2008-09-03T12:27:55Z</published>
	<updated>2008-09-03T12:27:55Z</updated>
	<author>
		<name>Tom Baugh</name>
	</author>
	<content type="html">Stefan,
&lt;br&gt;&lt;br&gt;I agree with OCY and Dan and their architectural comments about this 
&lt;br&gt;program. &amp;nbsp;I think from what you've said that this is a perfect example 
&lt;br&gt;of a program that needs to be written using an interrupt-driven state 
&lt;br&gt;machine. &amp;nbsp;We discuss this approach in detail in our book MSP430 State 
&lt;br&gt;Machine Programming, available on amazon.com:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%&lt;/a&gt;&lt;br&gt;2Fwww.amazon.com%2FMSP430-State-Machine-Programming-ES2274%2Fdp%
&lt;br&gt;2F0975475924%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1214397954%26sr%3D8-
&lt;br&gt;1&amp;tag=softcom-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325
&lt;br&gt;&lt;br&gt;This book is written for our ES2274 board, but the approach given is 
&lt;br&gt;suitable for any MSP430 board with suitable porting of the examples, of 
&lt;br&gt;course.
&lt;br&gt;&lt;br&gt;Tom
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/interrupt-priority-%22overrride%22-tp19283724p19296288.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19296121</id>
	<title>RE: Re: interrupt priority &quot;overrride&quot;</title>
	<published>2008-09-03T12:18:34Z</published>
	<updated>2008-09-03T12:18:34Z</updated>
	<author>
		<name>Dan Muzzey-2</name>
	</author>
	<content type="html">There is one statement below that worries me. &amp;nbsp;Interrupts are more
&lt;br&gt;difficult to debug and &amp;quot;interrupt&amp;quot; the normal flow of the program. &amp;nbsp;It
&lt;br&gt;has always been my view that interrupts should only do the absolute
&lt;br&gt;minimum needed. &amp;nbsp;Usually this is setting a flag, moving the contents of
&lt;br&gt;a register, or incrementing a pointer. &amp;nbsp;Something simple. &amp;nbsp;No math
&lt;br&gt;allowed, nothing that consumes time. &amp;nbsp;This isn't always possible but if
&lt;br&gt;your code forces you to reenable interrupts while in the ISR then
&lt;br&gt;perhaps you should take a step back and evaluate how you are doing what
&lt;br&gt;you are doing. &amp;nbsp;There is likely a simpler more predictable way to do it.
&lt;br&gt;The line I have trouble with is
&lt;br&gt;&amp;nbsp;
&lt;br&gt;This sequence is relative slow
&lt;br&gt;&amp;nbsp;
&lt;br&gt;This tells me that this does not belong in an interrupt.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Dan
&lt;br&gt;&amp;nbsp;
&lt;br&gt;________________________________
&lt;br&gt;&lt;br&gt;From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19296121&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19296121&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;] On Behalf
&lt;br&gt;Of old_cow_yellow
&lt;br&gt;Sent: Wednesday, September 03, 2008 9:10 AM
&lt;br&gt;To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19296121&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt;
&lt;br&gt;Subject: [msp430] Re: interrupt priority &amp;quot;overrride&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;What you did is correct. But there are simpler ways to do it. For
&lt;br&gt;example, you could have just include the keyboard scaning as part of
&lt;br&gt;the timer isr. This saves execution time to do the pushes, pops and
&lt;br&gt;extra return. (The code is shorter.)
&lt;br&gt;&lt;br&gt;--- In &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19296121&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msp430@...&lt;/a&gt; &amp;lt;mailto:msp430%40yahoogroups.com&amp;gt; ,
&lt;br&gt;&amp;quot;stefandk63&amp;quot; &amp;lt;stefan63@...&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi , people,
&lt;br&gt;&amp;gt; I have keyboard scaning sequence inside TimerB interrupt.
&lt;br&gt;&amp;gt; This sequence is relative slow, so its possible to lose bit/symbol
&lt;br&gt;&amp;gt; in software UART ( tied to TimerA). My intention is to make follow:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; TimerB_ISR:
&lt;br&gt;&amp;gt; push r15
&lt;br&gt;&amp;gt; ;...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; mov #keybard_scanproc,r15
&lt;br&gt;&amp;gt; push r15 
&lt;br&gt;&amp;gt; push SR
&lt;br&gt;&amp;gt; reti
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; keybard_scanproc:
&lt;br&gt;&amp;gt; ;.....
&lt;br&gt;&amp;gt; pop r15
&lt;br&gt;&amp;gt; pop SR
&lt;br&gt;&amp;gt; ret 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is this correct way?
&lt;br&gt;&amp;gt; regards
&lt;br&gt;&amp;gt;
&lt;/div&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;[Non-text portions of this message have been removed]
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/interrupt-priority-%22overrride%22-tp19283724p19296121.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19295652</id>
	<title>Re: Can any plz explain this</title>
	<published>2008-09-03T11:54:09Z</published>
	<updated>2008-09-03T11:54:09Z</updated>
	<author>
		<name>Alexander Espinosa</name>
	</author>
	<content type="html">Hi, you need to read the  datasheet for your microcontroller.
&lt;br&gt;you'll see the meaning for each register there, including use of pins for ADC converter and use of other peripherals....
&lt;br&gt; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;[Non-text portions of this message have been removed]
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Can-any-plz-explain-this-tp19292616p19295652.html" />
</entry>

</feed>
