![]() ![]() Timer3. Unsigned long PreviousTimeVal = 0 //the time offset at the start of the cycle. include testing mills to space the time for a loop cycle timeīool Trigger = true //triger from interupt. Interrupt-priority order would also be very nice. ![]() To be clear I don't really need a perfect time constant for the project I am doing, but I wrote this code expecting to get a very constant output on the Serial.print and I don't! Just looking for an explanation as to why this isn't constant, not trying to save the world. I'm new to using timer interrupts and have done a lot of reading around the subject and tried out some code but I'm fascinated to find out why I'm not getting a constant time period with the code below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |