Hi,
I'm trying to simulate external Interrupts of the infineon XC888CM microcontroller with Micro-Vision 3.31a. The external Interrupt occurs all the time, without changing the input pins. In real hardware it is working well.
Updating Micro-Vision to Rev. 3.60, the simulation is not working any more. Keil crashed completely.
Any ideas?
How could anybody have an idea without seeing how you actually tried to simulate those interrupts?
please elaborate on what you actually did. how did you simulate the interrupts? are you sure it is the same as the target does? maybe your vector is invalid?
I went through the source code, step by step. Since the point the interrupts were enabled (general and spezific) the simulation jumps into the interrupt service routine again and again. Without changing the portpins...
it is hard to tell what is going on with such vague description. however, this might happen is you never actually acknowledged you interrupt.
Just an idea: is your interrupt level or edge triggered? Did you try to change the port pin by hand or by a stimulus (simulator) to the level it normally has in idle state of the hardware?
Isn't it possible to post files? jpgs or code?
I configured the Interrupts in DAvE: Int0 (Pin0.5), Int1(Pin2.0) and Int2(Pin2.1) edge selection on both rising and falling edge. When one level at one pin changes, the Interrupt should occur and I can read the Port state and go on...
My plan was to trigger by hand, toggling the port pins in the simulator. But that has no effect, because the interrupt occurs without changing the pins.
HELLO
I AM NEW TO C PLUS PLUS AND I WANT TO LEARN IT. CAN ANYONE TELL ME SOME BOOK NAMES?
I HAVE BOUGTH A BOOK FROM AMAZON, BUT I COULDNT USE IT. MEAN I NEED A BOOK WHICH STARTS FROM BEGINNERS AND GOS ON.
The whole project is downloadable at: www.mikrocontroller.net/.../Int_Simulation.zip
Some further tests: I installed Version 8.12/3.60 again and simulated the "hello" Programm which is comming together with the new version. I changed the device to Infineon C501 an Simulation is working fine. Changing to an Infineon XC8xx device, compilation is ok, but simulation is not working. Keil crashes.
Is there some problem in implementing infineon xc8xx devices in keil mikrovision?
Should the source code support simulation with a xc8xx device? I haven't looked at them, but are they similar enough that they use the same header file for SFR and configuration bits? And are the interrupt controllers and USB identical enough that the source code for one processor will correctly configure and run the devices on the other processor?
The compiler just translates the source code according to selected device. But if the source code isn't meaningful for the specific device, the generated code will not perform meaningful operations - even if the compiler generated correct processor instructions...
The source code should support all XC8xx devices. Device XC866 is working, using XC886 the simulator crashes. So, I think I should wait for an Keil update which solve that problem... or change to another compiler, which supports XC886 devices complete...