Topic: SIMICE-51 simulator
Q : Why does the I2C peripheral for the 552 microcontroller not work with the simulator?
Not all the peripherals of every microcontroller have been (or can be) implemented by the simulator. Their 'views', however, can be seen via the emulator or with a monitor. That is why some of the microcontrollers have a star as a suffix in the 'Options | Debug', window. The star indicates that some peripherals of the microcontroller are not supported. The list below shows which peripherals are not supported on some 8051 devices:
* ADC 505
* ADC 504
* CAN 592
* SSC 515C
* CAN 515C
* ADC 515C
* I2C 552
Q : When I simulate my program some local variables are not displayed correctly: what should I do ?
Some Raisonance projects need an extended OMF51 format, called OE2, to display properly all local variables.
Make sure you select the OE2 format by checking the box 'Extended 1997 version (OE(2))' in Options|Project|RC51|Object.
Q : How can I simulate external interrupts, that is, how can I generate an edge on a pin that will cause an interrupt to occur?
The simplest way is:
- Start the debugger,
- put a breakpoint on the first line of the interrupt routine,
- start the program with the GO button,
- open the window for the Port where the pin you want to toggle is,
- position the mouse on the pin you want to toggle until the world 'link' appears
- left click and choose connect to Vcc or connect to ground according to which level (or edge) will trigger your interrupt.
If you want your interrupt to occur at a given time you can connect the pin to a waveform generator rather then switching it manually.
If your interrupt routine is programmed correctly (right address, right priority, right enable mask and so on), the program execution will stop at the breakpoint.
Here below is an example of how to simulate a basic interrupt on p3.2 for an XA micro.
RAISONANCE - 17, avenue Jean Kuntzmann - F-38330 Montbonnot St Martin - FRANCE
There are 10 types of people in the world: Those who understand binary, and those who don't.