I'm currently using an external interrupt on the ATmega324P. I have my code working so that it prints out an ADC value and converts it to a PWM and shows the percentage on the screen. It works fine and does what I want it to do when I start the program and if I manually power it down and up again. The issue I'm having is that when I press my button to toggle the ISR(INT0_vector) function it prints out most of the screen fine but leaves some garbage printf data at the end of my reset. I'm using VT100 (ANSI escape codes) to format my terminal output. So I can see that the garbage is from one of those commands; but I can't stop it. It happens on most of the resets but some are clean.
-- Basically my reset works and clears/reprints the screen but it leaves some printf statement garbled at the end. Expected output is that of PWM2... but i get the garbage and it overwrites my %.
-- I didn't want to post code as it's a lot; but if needed i can.