This question is sort of a follow up to a post I made here recently. Referencing some of the ideas and code examples provided in that thread, I'm working through the suggestion of making the seven segment driver independant of the rest of the code, but I ended up with some weird issues:
(Since I forgot to add verticle cursors for reference, the pk voltage with reference to gnd is ~668mv, also the entire waveform is DC; it never dips negative.)
That signal is appearing at the display enable pins for the seven segment displays that I am using. I have absolutely no Idea where it is coming from. I know that the mcu isn't fried, nor is it something to do with the wiring because I can load other code onto it, and it will work as expected, but something in my rewrite of the previous code from the afformentioned post is causing this to happen.
Here is the code:
atmega328p.c, and atmega328p.h