<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Propogation time measurement in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125864#M803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Yeah, you're right, Wings.&amp;nbsp; I should have said 6 meters.&amp;nbsp; Hey - is your moniker in reference to aviation?&amp;nbsp; Isn't the phase difference distance measuring method what they use in aviation for the DME instrument?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Or maybe you're a Paul McCartney fan...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As for&amp;nbsp;stealing cycles in your project, couldn't you do some kind of a clock stretch?&amp;nbsp; :-P&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Aug 2006 04:18:37 GMT</pubDate>
    <dc:creator>rhinoceroshead</dc:creator>
    <dc:date>2006-08-05T04:18:37Z</dc:date>
    <item>
      <title>Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125845#M784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;STRONG style=": ; font-size: 4;"&gt;Hello!&lt;BR /&gt;&lt;BR /&gt; How can I measure a propogation time of the signal sent by zigbee tranciever?&lt;BR /&gt; I mean, if I send a signal from tranciever A to B, I want to measure the time the signal travels in the air from A to B. How can I do it?&lt;BR /&gt;&lt;BR /&gt; Thanks,&lt;BR /&gt; BeNoM&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 21:19:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125845#M784</guid>
      <dc:creator>BeNoM</dc:creator>
      <dc:date>2006-08-03T21:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125846#M785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;You could run the timer on A and record the counter value and then send a frame to B and make B echo it back to A.&amp;nbsp; Then A can&amp;nbsp;record the timer counter again, subtract from the original&amp;nbsp;and then divide the result by 2.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 01:43:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125846#M785</guid>
      <dc:creator>rhinoceroshead</dc:creator>
      <dc:date>2006-08-04T01:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125847#M786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;The problem is that by&amp;nbsp;the method you suggest,&amp;nbsp;I also measure the time it takes to&lt;/P&gt;&lt;P&gt;a transmitter to generate the message so the time I will&amp;nbsp;measure in fact&amp;nbsp;is:&lt;/P&gt;&lt;P&gt;t = T + t1&lt;/P&gt;&lt;P&gt;where T is an actual time the signal travels in the air&lt;/P&gt;&lt;P&gt;and t1 is a time that takes to transmitter to generate the message and to receiver to decode the message,&lt;/P&gt;&lt;P&gt;so, t1 is a prasite time.&lt;/P&gt;&lt;P&gt;Moreover, the mechanism of sending a message (at least&amp;nbsp;in ZigBee) waits until the "channel" is clear&lt;/P&gt;&lt;P&gt;so I should take this time in acount.&lt;/P&gt;&lt;P&gt;Do you have an idea how can I solve the problem of "parasite" time?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 02:16:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125847#M786</guid>
      <dc:creator>BeNoM</dc:creator>
      <dc:date>2006-08-04T02:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125848#M787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Maybe I'm really confused, but isn't that whole equation thing you're using a very crude way of attempting to derive the speed of light? The propogation time through the air will be the speed of light multiplied by the distance of transmission. This will be very very tiny compared to the actual processing time of the signal (processing individual bits after they have gone through the 802.15.4 IEEE protocol, mcu operations, etc). I'd try the method rhino suggested to figure out what sort of time it takes to transmit, recieve, process transmit recieve, and divide it by 2 to figure out a rough idea of how long a transmission and its associated minimal processing (your "parasite time") takes.&lt;BR /&gt;&lt;BR /&gt;Let me know if I'm completely off track. &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;BR /&gt;&lt;BR /&gt;Now that I think about it, you could figure out exactly how long an 802.15.4 packet would take by reading the IEEE spec and finding how long it transmits per byte of information. Is that the sort of thing you're looking for? I can look it up and/or point you to that information if that indeed is what you're interested in.&lt;P&gt;Message Edited by Red Mountain on &lt;SPAN class="date_text"&gt;2006-08-03&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:19 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 03:15:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125848#M787</guid>
      <dc:creator>RedMountain</dc:creator>
      <dc:date>2006-08-04T03:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125849#M788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi, BeNoM:&lt;BR /&gt;&lt;BR /&gt;I'm not sure what you are trying to measure . . . or why?&lt;BR /&gt;&lt;BR /&gt;If you are trying to measure the time the signal actually propagates through the air, the microcontroller's timers are not fast enough. The signal will propagate at the speed of light through air, which is about one foot per nanosecond. No microcontroller that I know about has nanosecond resolution for its timers.&lt;BR /&gt;&lt;BR /&gt;Is this measurement for testing purposes or is it part of the application?&lt;BR /&gt;&lt;BR /&gt;If it is for testing purposes, you could try using a fast oscilloscope. But keep in mind that the signals will need to travel through the scope-probe leads, and that time will be close to the speed through the air. The scope will have it's own internal delay, but that should be called out in the specs. You could simply subtract out the scope and lead delays.&lt;BR /&gt;&lt;BR /&gt;But when all is said and done, the measurement you will get will be the speed of light through air.&lt;P&gt;Message Edited by rocco on &lt;SPAN class="date_text"&gt;2006-08-03&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:28 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 03:27:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125849#M788</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2006-08-04T03:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125850#M789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;First, thanks for help!&lt;/P&gt;&lt;P&gt;You&amp;nbsp;are not confused &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;, but my target is to find&amp;nbsp;an efficient and simple&amp;nbsp;way to measure the distanse between 2 trancievers.&lt;/P&gt;&lt;P&gt;I don't have the ZigBee trancievers so I can't do the tests by myself :smileysad:&lt;/P&gt;&lt;P&gt;I want to derive the distance from the equestion: D = C x T.&lt;/P&gt;&lt;P&gt;Where C is a speed of the signal (because we don't live in vacum it won't equel exactly to&lt;/P&gt;&lt;P&gt;speed of light but aprox. it does).&lt;/P&gt;&lt;P&gt;T - is an exact&amp;nbsp;time the signal travels in&amp;nbsp;the air.&lt;/P&gt;&lt;P&gt;I don't sure, but I think that times&amp;nbsp;stated in IEEE&amp;nbsp; 802.15.4 for frames proccecing are only in theory&lt;/P&gt;&lt;P&gt;but maybe you're right, it's worth to check this out...&lt;/P&gt;&lt;P&gt;It's intersting to know what are&amp;nbsp;aprox. values of "parasite time" we are talking about...&lt;/P&gt;&lt;P&gt;I thought of the next method to calculate the real average "parasite time":&lt;/P&gt;&lt;P&gt;By placing 2 trancievers in 2 different places we get 2 equations:&lt;/P&gt;&lt;P&gt;time1 = T1 + "parasite time"&lt;/P&gt;&lt;P&gt;time2 = T2 + "parasite time"&lt;/P&gt;&lt;P&gt;I assume that&amp;nbsp;average "parasite time" is the same and it's make sense because we&lt;/P&gt;&lt;P&gt;we use the same trancievers, the same firmaware and sending the same frames.&lt;/P&gt;&lt;P&gt;To decrease the error one may perform number of such measurements and calculate the average&lt;/P&gt;&lt;P&gt;of the "parasite time".&lt;/P&gt;&lt;P&gt;And now, when I have the "parasite time" I can derive the exact time T that the signal travels in the air,&lt;/P&gt;&lt;P&gt;and from the equation L = C x T we get the axact distance between 2 trancievers...&lt;/P&gt;&lt;P&gt;Sounds very nice in theory...&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;&lt;P&gt;Unfortunately, I don't have a ZigBee tranciever to test it by myself :smileysad:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 03:55:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125850#M789</guid>
      <dc:creator>BeNoM</dc:creator>
      <dc:date>2006-08-04T03:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125851#M790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thanks for help.&lt;/P&gt;&lt;P&gt;This&amp;nbsp;is&amp;nbsp;the most&amp;nbsp;important part of my application. I don't want involve GPS in my project.&lt;/P&gt;&lt;P&gt;The target is to find the distance between 2 trancievers.&lt;/P&gt;&lt;P&gt;According to my calcultions I get the following:&lt;/P&gt;&lt;P&gt;Max range I'll get from ZigBee is 1km (with low noise aplifier).&lt;/P&gt;&lt;P&gt;C = 300,000 km/s&lt;/P&gt;&lt;P&gt;T = L / C = 1km / 300,000km/s = 3.33 micro seconds&lt;/P&gt;&lt;P&gt;So, we are talking about of microseconds...&lt;/P&gt;&lt;P&gt;So a&amp;nbsp;microcontroller that&amp;nbsp;works&amp;nbsp;on 12MHz does a "tick" every aprox 0.1 micro second.&lt;/P&gt;&lt;P&gt;So, at least in theory I will be able to measure the propogation time...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 04:13:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125851#M790</guid>
      <dc:creator>BeNoM</dc:creator>
      <dc:date>2006-08-04T04:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125852#M791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;This is interesting, and I think it's doable. I'm assuming that the poster is attempting to get some measure of distance from point A to B. If you sent a stable repetitive signal from point A to B and had device B lock its oscillator to that signal, then sent the same signal back to A in phase with the signal it had received, a fast running timer could measure the phase shift of the received signal with enough resolution to get a fairly accurate measure of the distance. It takes 10.8 uS for a radio transmission to travel 1 mile (5280 feet) and back. If your timer was running, say, at 10MHz then your resolution would be just under 50 feet. A stable oscillator at both A and B would be essential, but easily obtainable. Doing a little quick math, if the 2 oscillators were within 10ppm of each other and you completed the measurement within .01 seconds then the error caused by oscillator differences would be under 50 feet (100ns).&lt;BR /&gt;&lt;BR /&gt;I don't know how much control you have over a ZigBee transceiver, but I have used a ChipCon CC1100 for a while, and it (or something like it) could be be made to pull this off. What I would do is to provide the transmitter chip with my own data (of just alternating 1s and 0s), and pump out a short stream long enough for the B transceiver to acquire a good lock on the edge of that signal and set up its timer to match that of the signal. Then transceiver B would do the same back to A, and A measures the difference in its own data clock reference to the incoming data clock edges. Beforehand I would measure the time difference at zero distance and use that measured interval as my zero distance reference, and probably go a little further and determine if there was any appreciable shift in the timing as the signal strength changed and compensate for that too in the final application.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 04:21:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125852#M791</guid>
      <dc:creator>Wings</dc:creator>
      <dc:date>2006-08-04T04:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125853#M792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thank you Wings! You've understood what I'm trying to do...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You gave me some interesting ideas...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What is the price of Evalution Board&amp;nbsp;of the chip from ChipCon?&lt;/DIV&gt;&lt;DIV&gt;How much trancievers it contains?&lt;/DIV&gt;&lt;DIV&gt;Do they have a support with examples and code?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you,&lt;/DIV&gt;&lt;DIV&gt;BeNoM&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 04:50:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125853#M792</guid>
      <dc:creator>BeNoM</dc:creator>
      <dc:date>2006-08-04T04:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125854#M793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Ahh . . . Now I understand.&lt;BR /&gt;&lt;BR /&gt;If you are talking about distances near a kilometer, then you could indeed measure it. I was assuming you were within the 30 meter range.&lt;BR /&gt;&lt;BR /&gt;I don't think the Freescale transceiver gives you enough low-level control to take the approach that Wings suggested, but I think that technique holds your best chance of success. I think the firmware turn-around time is not deterministic enough to extract a time period as small as 3 microseconds. Heck, the interrupt latency alone can be more than that.&lt;BR /&gt;&lt;BR /&gt;The only suggestions I can offer require additional hardware, and aren't very practical:&lt;BR /&gt;1) Add GPS, which has it's own accuracy issues and adds significant costs.&lt;BR /&gt;2) Add additional transceiver hardware that allows you to implement Wings' phase-shift technique.&lt;BR /&gt;3) Ship each system with a long tape measure.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 04:51:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125854#M793</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2006-08-04T04:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125855#M794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hhhhhh... I really don't want to choose the 3 option...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks everybody for help...&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 05:11:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125855#M794</guid>
      <dc:creator>BeNoM</dc:creator>
      <dc:date>2006-08-04T05:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125856#M795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;rocco wrote:&lt;BR /&gt;The only suggestions I can offer require additional hardware, and aren't very practical:&lt;BR /&gt;1) Add GPS, which has it's own accuracy issues and adds significant costs.&lt;BR /&gt;2) Add additional transceiver hardware that allows you to implement Wings' phase-shift technique.&lt;BR /&gt;3) Ship each system with a long tape measure.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;The problem is that I&amp;nbsp;must use&amp;nbsp;a Freescale tranciever and build a star network.&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;rocco wrote:&lt;BR /&gt;&lt;BR /&gt;I don't think the Freescale transceiver gives you enough low-level control to take the approach that Wings suggested, but I think that technique holds your best chance of success. I think the firmware turn-around time is not deterministic enough to extract a time period as small as 3 microseconds. Heck, the interrupt latency alone can be more than that.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;I don't understand why&amp;nbsp;do you say that the firmware is not deterministic enough if I going use&lt;/DIV&gt;&lt;DIV&gt;the same firmware and the same trancievers and same message/frame on A and B spots.&lt;/DIV&gt;&lt;DIV&gt;I will take in acount the&amp;nbsp;interrupt and other&amp;nbsp;effects as "parasite time".&lt;/DIV&gt;&lt;DIV&gt;Moreover, the firmware on A and B won't do nothing except of receiving and trancieving&amp;nbsp;a frame&lt;/DIV&gt;&lt;DIV&gt;with "time information".&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;BeNoM&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 05:36:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125856#M795</guid>
      <dc:creator>BeNoM</dc:creator>
      <dc:date>2006-08-04T05:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125857#M796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;If my memory serves me, you get 2 900MHz transceiver development boards for $500. Their intention is for you to connect one to one PC and the other to a 2nd PC. When I got mine I got one of the first they ever shipped, so I was plagued with many problems, mostly software issues and some chip issues. If I had that to do over again I would just invest my time in going over the data sheet a few extra times and dive right into the chip. Their development system cost me more in time than it should have. The boards are fairly easy to connect directly to your own microcontroller. The design I did uses a QG8 and a 2nd piggy-back board that contains just the transceiver chip and its magical components. If you follow their reference design it should work well - it did for me. I get over 1 mile range using just a 3-inch 1/4 wave whip under ideal conditions (the shoulder of an interstate highway, on a 12 foot pole). The chip's maximum power is 10mw and it has excellent sensitivity.&lt;BR /&gt;&lt;BR /&gt;As far as example code, I don't really know. They didn't have anything I could use at the time I got into it. But now I've got my own frequency hopping spread spectrum mesh network running and I'm pleased with the results.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 06:09:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125857#M796</guid>
      <dc:creator>Wings</dc:creator>
      <dc:date>2006-08-04T06:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125858#M797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;I don't understand why do you say that the firmware is not deterministic enough if I going use the same firmware and the same trancievers and same message/frame on A and B spots.&lt;BR /&gt;I will take in acount the interrupt and other effects as "parasite time".&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;Hi, BeNoM:&lt;BR /&gt;&lt;BR /&gt;My concern, which may be unfounded, is that the latency may not be repeatable. I don't know about the firmware you are using, but the SMAC firmware that I experimented with had interrupts blocked for various amounts of time, typically greater than a few microseconds. I would suspect that your "measurement" packets would arrive asynchronously, and therefore the response could be delayed by an arbitrary amount of time.&lt;BR /&gt;&lt;BR /&gt;It's just a concern, it may not be reality.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 06:14:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125858#M797</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2006-08-04T06:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125859#M798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;rocco wrote:&lt;BR /&gt;&lt;BR /&gt;My concern, which may be unfounded, is that the latency may not be repeatable. I don't know about the firmware you are using, but the SMAC firmware that I experimented with had interrupts blocked for various amounts of time, typically greater than a few microseconds. I would suspect that your "measurement" packets would arrive asynchronously, and therefore the response could be delayed by an arbitrary amount of time.&lt;BR /&gt;&lt;BR /&gt;It's just a concern, it may not be reality.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;I gonna use MC13211 (SiP) with SMAC firmware.&lt;/P&gt;&lt;P&gt;It's not a problem if the interrupts can block for greater than a few microseconds,&lt;/P&gt;&lt;P&gt;but it will be a real&amp;nbsp;problem if there are "unreapetable" procedures.&lt;/P&gt;&lt;P&gt;Could&amp;nbsp;you tell me more about SMAC and what problems you expect?&lt;/P&gt;&lt;P&gt;Moreover, I have to send a "stream" of data and only one frame per data "measurement".&lt;/P&gt;&lt;P&gt;Is it possible with the SMAC?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BeNoM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 06:35:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125859#M798</guid>
      <dc:creator>BeNoM</dc:creator>
      <dc:date>2006-08-04T06:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125860#M799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Also, using a timer severely restricts the granularity of your distance measurements.&amp;nbsp; With a 25 Mhz timer clock, the resolution is already 12 meters.&amp;nbsp;&amp;nbsp;Plus there will be +/- 12 meters of error just from having unsynchronized clocks at the transmitter and receiver.&amp;nbsp; Then there's a potential deal breaker coming from the frame protocol itself, which is bit stuffing.&amp;nbsp; Each transmitted bit has a duration on the order of microseconds - which translates to a speed-of-light distance of something in the range of 300 meters!&amp;nbsp; If your distance measuring packet is exactly the same every time except for recipient address, and your software can calculate the CRC, determine exactly how many stuff bits are there, then you could possibly account for this source of error.&amp;nbsp; But you also need to have a gaurantee that the channel is open before you attempt the measurement.&amp;nbsp; All in all, I believe the measurement will be very crude and perhaps unusable.&amp;nbsp; I think the absolute very best you could accomplish would be a very rough estimate of distance like this:&lt;/P&gt;&lt;P&gt;0-24 meters&lt;BR /&gt;12-36 meters&lt;BR /&gt;24-48 meters&lt;BR /&gt;36-60 meters&lt;BR /&gt;48-72 meters&lt;BR /&gt;60-84 meters&lt;BR /&gt;72-96 meters&lt;BR /&gt;84-108 meters&lt;/P&gt;&lt;P&gt;Does Zigbee even work at a range of 100 meters?&amp;nbsp; I'm guessing that in reality, the results would be twice as bad as this.&amp;nbsp; Anyway, I like Wings's method much better, but you can't do that using Zigbee equipment.&amp;nbsp; You could do it cheaply with a pair of analog transceivers and a PLL:&amp;nbsp; Get a crystal oscillator, modulate that on a frequency of your choice, demodulate at the receiver and remodulate and retransmit on a different frequency.&amp;nbsp; Then at the source you can compare the original crystal oscillator signal with the received signal using the phase discriminator from the PLL.&amp;nbsp; Low pass filter the output, scale, digitize and calibrate, and I believe you will have a much more accurate measurement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Aug 2006 00:33:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125860#M799</guid>
      <dc:creator>rhinoceroshead</dc:creator>
      <dc:date>2006-08-05T00:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125861#M800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Oops, I see that you're using an LNA.&amp;nbsp; Maybe this resolution is acceptable for you then.&lt;/P&gt;&lt;DIV&gt;One more thing - if the channel is open most of the time, you could&amp;nbsp;get around the problem of variable lag times&amp;nbsp;by taking very large numbers of measurements and averaging them.&amp;nbsp; Hopefully the sources of random error will cancel out and you will be left with only the predictable error.&amp;nbsp; In fact, taking&amp;nbsp;a statistical approach, you could forget about all the error sources and lump them all into one random variable.&amp;nbsp; If you make 100 measurements, you can calibrate against a known distance and statistically determine the accuracy of the instrument.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Aug 2006 01:09:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125861#M800</guid>
      <dc:creator>rhinoceroshead</dc:creator>
      <dc:date>2006-08-05T01:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125862#M801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Rhino - wouldn't a 25MHz timer clock give you half that resolution? (6 meters vs 12) He would be measuring the round trip time, correct?&lt;BR /&gt;&lt;BR /&gt;I kinda wish I had an application that needed this. But then again I should have never read BeNom's post - I've got other things to think about and this problem is stealing cycles from my project. &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Aug 2006 02:57:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125862#M801</guid>
      <dc:creator>Wings</dc:creator>
      <dc:date>2006-08-05T02:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125863#M802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I'm afraid of problems like "channel is closed" (tranciever uses&amp;nbsp;CSMA protocol) and&lt;/DIV&gt;&lt;DIV&gt;it waits until the channel is clear... But I don't think the tranciever "informs" when it become clear,&lt;/DIV&gt;&lt;DIV&gt;so in fact I'll get the "wait time"&amp;nbsp;as an error in the general&amp;nbsp;calculations. Moreover, the fact that the channel may clear or not is a random variable.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Unfortunately \ Fortunately, today, I've&amp;nbsp;been informed that a water acts like a "shield"&amp;nbsp;for 2.4MHz frequency&amp;nbsp;that ZigBee tranciever uses. In other words, water "kills" the transmition&amp;nbsp;on 2.4MHz.&lt;/DIV&gt;&lt;DIV&gt;Because my project is itended to&amp;nbsp;be able to&amp;nbsp;transmit signals from the "water surface" and at wet&amp;nbsp;places,&lt;/DIV&gt;&lt;DIV&gt;this will cause significant problems with the&amp;nbsp;lost of&amp;nbsp;"range".&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I like the statistical method of rhino...&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Ben Omelchenko&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Aug 2006 03:43:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125863#M802</guid>
      <dc:creator>BeNoM</dc:creator>
      <dc:date>2006-08-05T03:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Propogation time measurement</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125864#M803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Yeah, you're right, Wings.&amp;nbsp; I should have said 6 meters.&amp;nbsp; Hey - is your moniker in reference to aviation?&amp;nbsp; Isn't the phase difference distance measuring method what they use in aviation for the DME instrument?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Or maybe you're a Paul McCartney fan...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As for&amp;nbsp;stealing cycles in your project, couldn't you do some kind of a clock stretch?&amp;nbsp; :-P&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Aug 2006 04:18:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Propogation-time-measurement/m-p/125864#M803</guid>
      <dc:creator>rhinoceroshead</dc:creator>
      <dc:date>2006-08-05T04:18:37Z</dc:date>
    </item>
  </channel>
</rss>

