Hi,
You should check whether you are in the stop mode.
Of course it affect Stop mode.
S X – I N Z V C
1 1 - 1 / / / / reset status; Only setup function setup bits S,X,I are important in this case
0x7F - CCR = 0B0111XXXX - clears only S bit, enables Stop instruction and all interrupts are globally masked (disabled), none of the interrupt wakes the MCU up from the STOP mode
0x6F - CCR = 0B0110XXXX - enables STOP instruction as well as all I-bit maskable interrupts. These interrupt wakes the MCU up from the STOP mode.
So it looks like you MCU is periodically entered to STOP mode and woken up from it by some of the enabled interrupts.
Best regards,
Ladislav