| Newsgroups |
gmane.comp.hardware.texas-instruments.msp430.discuss |
| Message-ID |
<[email protected]> |
--------------79EF51CBEFCE07270EADC0F0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
I don't know the Scan-IF peripheral. I've never had a cause to use it.
As to the sampling rate, as you note it depends largely on how you write
your code. Personally I've only ever had cause to inhibit interrupts in
my foreground program once, and that was because I was patching somebody
elses bugs to a very limited timeline, and didn't have time to clean it
all up.
As a sort of rule of thumb I add up the total time it would take to
sequentially service all of my active interrupts then double it, and
that is the fastest interrupt rate I allow. Depending on how interrupt
intensive your code is I find this can be as short as 200 clock cycles
and as long (in one very rare case) as 1600, so for a 16MHz processor
that is 400kHz to 10kHz. To my mind 20kHz is very realistic, and should
be easily achievable.
Al
On 2/06/2017 5:38 PM, Matthias Weingart [email protected] [msp430]
wrote:
> Just a questions to the Scan-IF interface of e.g. msp430fr6989 or
> msp430fw428. I am just in the beginning phase of a new project and have not
> used this interface before.
>
> How many rotary encoders (quadrature enoding) can I connect to them? It is
> not really clear. It has 3 channels and only channel 2 can count up and
> downwards? So I can use it with just one encoder?
>
> A alternative would be software samling of the quadrature encoder channels
> within a time interrupt. How fast can that be? Is 20kHz realistic?
> (I think it mainly depends on how long interrupts are blocked in the main
> code).
>
> Matthias
>
>
>
> ------------------------------------
> Posted by: Matthias Weingart <[email protected]>
> ------------------------------------
>
> To unsubscribe from the msp430 group, send an email to:
> [email protected]
>
>
> ------------------------------------
>
> Yahoo Groups Links
>
>
>
>
--------------79EF51CBEFCE07270EADC0F0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<head>
<style type="text/css">
<!--
/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}
div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}
div.attach-table div.attach-row {
clear: both;
}
div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}
p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}
div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}
div.attach-table div.attach-row div div span {
font-weight: normal;
}
div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<!-- |**|begin egp html banner|**| -->
<br><br>
<!-- |**|end egp html banner|**| -->
<font size="-1">I don't know the Scan-IF peripheral. I've never had
a cause to use it. As to the sampling rate, as you note it depends
largely on how you write your code. Personally I've only ever had
cause to inhibit interrupts in my foreground program once, and
that was because I was patching somebody elses bugs to a very
limited timeline, and didn't have time to clean it all up.<br>
<br>
As a sort of rule of thumb I add up the total time it would take
to sequentially service all of my active interrupts then double
it, and that is the fastest interrupt rate I allow. Depending on
how interrupt intensive your code is I find this can be as short
as 200 clock cycles and as long (in one very rare case) as 1600,
so for a 16MHz processor that is 400kHz to 10kHz. To my mind 20kHz
is very realistic, and should be easily achievable.<br>
<br>
Al<br>
</font><br>
<div class="moz-cite-prefix">On 2/06/2017 5:38 PM, Matthias Weingart
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> [msp430] wrote:<br>
</div>
<blockquote type="cite"
cite="mid:[email protected]">
<pre wrap="">Just a questions to the Scan-IF interface of e.g. msp430fr6989 or
msp430fw428. I am just in the beginning phase of a new project and have not
used this interface before.
How many rotary encoders (quadrature enoding) can I connect to them? It is
not really clear. It has 3 channels and only channel 2 can count up and
downwards? So I can use it with just one encoder?
A alternative would be software samling of the quadrature encoder channels
within a time interrupt. How fast can that be? Is 20kHz realistic?
(I think it mainly depends on how long interrupts are blocked in the main
code).
Matthias
------------------------------------
Posted by: Matthias Weingart <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a>
------------------------------------
To unsubscribe from the msp430 group, send an email to:
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
------------------------------------
Yahoo Groups Links
<*> To visit your group on the web, go to:
<a class="moz-txt-link-freetext" href="http://groups.yahoo.com/group/msp430/">http://groups.yahoo.com/group/msp430/</a>
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
<a class="moz-txt-link-freetext" href="http://groups.yahoo.com/group/msp430/join">http://groups.yahoo.com/group/msp430/join</a>
(Yahoo! ID required)
<*> To change settings via email:
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<*> To unsubscribe from this group, send an email to:
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<*> Your use of Yahoo Groups is subject to:
<a class="moz-txt-link-freetext" href="https://info.yahoo.com/legal/us/yahoo/utos/terms/">https://info.yahoo.com/legal/us/yahoo/utos/terms/</a>
</pre>
</blockquote>
<br>
<!-- |**|begin egp html banner|**| -->
<br>
<br>
<!-- |**|end egp html banner|**| -->
<div width="1" style="color: white; clear: both;"/>__._,_.___</div>
<div id="fromDMARC" style="clear:both; margin-top: 10px;">
<hr style="height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3;">
Posted by: Onestone <[email protected]> <hr style="height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3;">
</div>
<!-- Start Recommendations -->
<!-- End Recommendations -->
<!-- |**|begin egp html banner|**| -->
<br><br>
<tt>
To unsubscribe from the msp430 group, send an email to:<BR>
[email protected]<BR>
<BR>
</tt>
<br><br>
<!-- |**|end egp html banner|**| -->
<!-- |**|begin egp html banner|**| -->
<img src="http://geo.yahoo.com/serv?s=97476590/grpId=2342629/grpspId=1705005378/msgId=52551/stime=1496401682" width="1" height="1"> <br>
<!-- |**|end egp html banner|**| -->
<!-- |**|begin egp html banner|**| -->
<br>
<!-- |**|begin egp html banner|**| -->
<div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">
<span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/msp430/info;_ylc=X3oDMTJlcTFyN3NpBF9TAzk3MzU5NzE0BGdycElkAzIzNDI2MjkEZ3Jwc3BJZAMxNzA1MDA1Mzc4BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTQ5NjQwMTY4Mg--" style="text-decoration: none;">Visit Your Group</a></span>
<ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
</ul>
</div>
<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJkbXN2MGlzBF9TAzk3NDc2NTkwBGdycElkAzIzNDI2MjkEZ3Jwc3BJZAMxNzA1MDA1Mzc4BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxNDk2NDAxNjgy" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="137" alt="Yahoo! Groups" style="border: 0;"/></a>
<div style="color: #747575; float: right;"> • <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> • <a href="mailto:[email protected]?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> • <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>
<!-- |**|end egp html banner|**| -->
</div> <!-- ygrp-msg -->
<br>
<!-- |**|end egp html banner|**| -->
<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>
--------------79EF51CBEFCE07270EADC0F0--