DIMMER gets called every second. I can fix this, but issue happens each minute, not second.
I tried inserting HPWM 1,200,2000 at random places in main loop - no issues. They only happen when that DIMMER sub is being called.
For the one-liners, they're great way to save yourself from a lot of scrolling, I'm writing code in that way for last 40 years, so I don't think that now is the time to change.
For the hardware issue, ADC reading is done at PORTA.0 and PWM output is at PORTC.1, so I don't think this can be a RMW issue.

The main loop can be divided into the following sections:

1. Get current time (read RTC)
2. If oldminute<>currentminute, then go seganime (animate all segments at each 1 minute change)
3. Convert hours into Z2
4. If autodim is enabled, then goto dimmer
5. alarm check and call subroutine
6. 12/24 hour check and conversion subroutine
7. Display current time routine
8. Keyboard handling code (ADC reading and debouncing)
9. middle dot blinking