User manual

Simulator features UM0036
222/385 Doc ID 7705 Rev 11
Create and load a stimuli file on page 206 to trigger a signal on an interrupt request pseudo
pin.
The IRQx pseudo pin corresponds to the interrupt request number x. Refer to the interrupt
mapping table in the datasheet for your simulated microcontroller, to find the interrupt
request number for the interrupt that you want to generate. As an example, Table 70
provides the interrupt mapping for the ST7LITE1xB family.
For example, for ST7LITE1B to generate an auto-reload timer counter 2 overflow interrupt,
you must change the value of pin IRQ13. If the interrupts are globally enabled, the program
will jump to the counter 2 overflow interrupt handler after the value on the interrupt pin has
changed (after execution of the current instruction, if the change is requested without delay).
Table 70. Interrupt mapping
Source
block
Description
Register
label
Priority
order
Exit from
HALT or
AWUFH
Address vector
RESET Reset
N/A
Highest
priority
Lowest
priority
yes FFFEh-FFFFh
TRAP Software interrupt no FFFCh-FFFDh
0 AWU Auto wake up interrupt AWUCSR yes FFFAh-FFFBh
1 ei0 External interrupt 0
N/A yes
FFF8h-FFF9h
2 ei1 External interrupt 1 FFF6h-FFF7h
3 ei2 External interrupt 2 FFF4h-FFF5h
4 ei3 External Interrupt 3 FFF2h-FFF3h
5 LITE TIMER LITE TIMER RTC2 interrupt LTCSR2 no FFF0h-FFF1h
6 Comparator Comparator interrupt CMPCR no FFEEh-FFEFh
7 SI AVD interrupt SICSR no FFECh-FFEDh
8
AT TIMER
AT TIMER output compare
interrupt or input capture
interrupt
PWMxCSR
or ATCSR
no FFEAh-FFEBh
9 AT TIMER overflow interrupt ATCSR yes FFE8h-FFE9h
10
LITE TIMER
LITE TIMER input capture
interrupt
LTCSR no FFE6h-FFE7h
11 LITE TIMER RTC1 interrupt LTCSR yes FFE4h-FFE5h
12 SPI SPI peripheral interrupts SPICSR yes FFE2h-FFE3h
13 AT TIMER AT TIMER overflow interrupt ATCSR2 no FFE0h-FFE1h