CaptainBoing Guru Joined: 07/09/2016 Location: United KingdomPosts: 2171
Posted: 08:35am 04 Feb 2022
Interrupt service routines should really be kept as short as possible, even though you don't seem terribly pushed timing-wise a quick hit would be to define the constants a0 to b2 outside the ISR e.g.