<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 8/6/2021 12:35 PM, Jean-Pierre
Desrochers wrote:<br>
</div>
<blockquote type="cite"
cite="mid:006c01d78afa$33739970$9a5acc50$@oricom.ca">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style>@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}span.apple-converted-space
{mso-style-name:apple-converted-space;}span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-CA">Here is what I’m trying so far..<o:p></o:p></span></p>
</div>
</blockquote>
<p>(snipped code)</p>
<p>That's a good try. It shows you basically understand the
interface and operational requirements of the devices you are
using. However, your firmware system design skills are not
advanced enough to get the system working. How could you fix that?
A lot of experimentation, research, thoughtful examination of code
and methods, etc.</p>
<p>You can start fixing it by asking yourself why you'd ever want to
intentionally delay in an ISR. (Answer: You never want to.) Your
delays are implemented in your uses of "while" and "__delay_ms" in
the ISR. It's no wonder you're missing edges.</p>
<p>JJS<br>
</p>
</body>
</html>