I appreciate that you're abbreviating the code to limit how much we have to look at, but your (invisible) "personal code" is in the two places that I would look first. There's no obvious flaw in what you've shown, but a typo in what you haven't shown could be enough to throw things off. How do you know that the period is 200us instead of 100us? I.e., how are you testing this?
↧