Reply 720 of 1056, by LSS10999
Maelgrum wrote on 2023-10-06, 06:24:So i did a execution trace of interrupt handler = its ~94 cycle
execution trace of command 0x14 execution path is ~174 cycle
In total it is 268 cycles - even in most optimistic case - we out of bounds (> 250)
Hmmm... I wonder if it's possible to configure the 8052 to run in faster modes (6T or even fewer clocks per cycle) for the DSP code, if supported.
If the DSP code itself contains nothing requiring complex delays then it might work out okay, allowing the execution path to finish a bit faster to meet the timing requirements.
EDIT: Just read the disassembly... Only a bunch of small delays consisting of 1 or 2 NOPs are present... if these NOPs are not too sensitive, maybe it can be made work with a 8052 MCU capable of faster timings.