Simulation of xc886C-8FF at 24 MHz in µVision 5. Instruction "mov R1,#5" should be completed in 1 cycle according to Instruction Set Manual. The debugger shows in register window 6 states (=cycles) and 320 ns. Both values don't make sense to me. Any explanation? Thanx Richard
For a fully supported chip you only need to tell the simulator the frequency of the crystal. Then the simulator adapts as you configure the processor with your code.
I'm a bit confused. The overview page for this chip doesn't mention the PLL as supported or not supported.
http://www.keil.com/dd/chip/4017.htm
I have looked at the datasheet and it seems like this processor always runs as a two-clocker. So unless there is something wrong with how you have configured the PLL you might need to ask Keil support. Or wait and see if any of their staff spots this thread.
Thanx for your comments! In uVision, the frequency of the crystal is set in "Options for Target"; in my case at 24MHz. For two clocks per machine cycle, that would give about 83 ns minimum per instruction. However, the debugger shows 6 machine cycles with 320 ns. I agree with you that there is something strange with the debugger and hope for advice from Keil.