ST62T35B ST Microelectronics, ST62T35B Datasheet - Page 26
![no-image](/images/no-image-200.jpg)
ST62T35B
Manufacturer Part Number
ST62T35B
Description
(ST62E35B / ST62T35B) 8-BIT OTP/EPROM MCUs
Manufacturer
ST Microelectronics
Datasheet
1.ST62T35B.pdf
(82 pages)
- Current page: 26 of 82
- Download datasheet (560Kb)
25
ST62T35B/E35B
IINTERRUPTS (Cont’d)
3.3.2 Interrupt Procedure
The interrupt procedure is very similar to a call
procedure, indeed the user can consider the inter-
rupt as an asynchronous call procedure. As this is
an asynchronous event, the user cannot know the
context and the time at which it occurred. As a re-
sult, the user should save all Data space registers
which may be used within the interrupt routines.
There are separate sets of processor flags for nor-
mal, interrupt and non-maskable interrupt modes,
which are automatically switched and so do not
need to be saved.
The following list summarizes the interrupt proce-
dure:
MCU
– The interrupt is detected.
– The C and Z flags are replaced by the interrupt
– The PC contents are stored in the first level of
– The normal interrupt lines are inhibited (NMI still
– The first internal latch is cleared.
– The associated interrupt vector is loaded in thePC.
WARNING: In some circumstances, when a
maskable interrupt occurs while the ST6 core is in
NORMAL mode and especially during the execu-
tion of an ”ldi IOR, 00h” instruction (disabling all
maskable interrupts): if the interrupt arrives during
the first 3 cycles of the ”ldi” instruction (which is a
4-cycle instruction) the core will switch to interrupt
mode BUT the flags CN and ZN will NOT switch to
the interrupt pair CI and ZI.
User
– User selected registers are saved within the in-
– The source of the interrupt is found by polling the
– The interrupt is serviced.
– Return from interrupt (RETI)
26/82
flags (or by the NMI flags).
the stack.
active).
terrupt service routine (normally on a software
stack).
interrupt flags (if more than one source is asso-
ciated with the same vector).
MCU
– Automatically the MCU switches back to the nor-
The interrupt routine usually begins by the identi-
fying the device which generated the interrupt re-
quest (by polling). The user should save the regis-
ters which are used within the interrupt routine in a
software stack. After the RETI instruction is exe-
cuted, the MCU returns to the main routine.
Figure 16. Interrupt Processing Flow Chart
mal flag set (or the interrupt flag set) and pops
the previous PC value from the stack.
YES
NO
PROGRAM FLAGS
THE IN STRU CTION
INTER RU PT MASK
THE STAC KED PC
INS TRUCT ION
INS TRUC TION
IN STRU CTION
EXEC UTE
A RE TI
SELECT
W AS
FETCH
C LEAR
”POP”
?
?
YES
N O
YES
?
NO
NOR MAL MOD E?
AN IN TERRU PT RE QUEST
AN D INT ER RU PT MASK
IS THE COR E
ALREADY IN
C HEC K IF THER E IS
INTE RN AL MODE FLAG
PC INTO THE STAC K
IN TERR UPT VEC TOR
INTERR UP T MASK
LOAD PC FROM
PUSH THE
(FFC/ FFD)
SELECT
SET
VA000014
Related parts for ST62T35B
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ST6-EMU2](/images/no-image3.png)
Part Number:
Description:
ST6-EMU2 emulator
Manufacturer:
STMICROELECTRONICS [STMicroelectronics]
Datasheet:
![st6-12](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st6-120](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st6-10](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st6-16](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st6-20](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st6-24](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st6-28](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st6-36](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st6-34](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st6-30](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st6-48](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st6-40](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st6-56](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st6-88](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet: