ST92141 STMicroelectronics, ST92141 Datasheet - Page 144
ST92141
Manufacturer Part Number
ST92141
Description
8/16-bit Mcu For 3-phase Ac Motor Control
Manufacturer
STMicroelectronics
Datasheet
1.ST92141.pdf
(179 pages)
- Current page: 144 of 179
- Download datasheet (3Mb)
ST92141 - SERIAL PERIPHERAL INTERFACE (SPI)
SERIAL PERIPHERAL INTERFACE (Cont’d)
7.5.5 Interrupt Management
The interrupt of the Serial Peripheral Interface is
mapped on one of the eight External Interrupt
Channels of the microcontroller (refer to the “Inter-
rupts” chapter).
Each External Interrupt Channel has:
– A trigger control bit in the EITR register (R242 -
– A pending bit in the EIPR register (R243 -
– A mask bit in the EIMR register (R244 - Page 0).
Program the interrupt priority level using the EI-
PLR register (R245 - Page 0). For a description of
these registers refer to the “Interrupts” and “DMA”
chapters.
To use the interrupt feature, perform the following
sequence:
– Set the priority level of the interrupt channel used
– Select the interrupt trigger edge as rising edge
– Set the SPIS bit of the CR register to select the
– Set the SPIE bit of the CR register to enable the
– In the EIPR register, reset the pending bit of the
– Set the mask bit of the interrupt channel used to
144/179
Page 0),
Page0),
for the SPI (EIPRL register)
(set the corresponding bit in the EITR register)
peripheral interrupt source
peripheral to perform interrupt requests
interrupt channel used by the SPI interrupt to
avoid any spurious interrupt requests being per-
formed when the mask bit is set
enable the MCU to acknowledge the interrupt re-
quests of the peripheral.
9
Note: In the interrupt routine, reset the related
pending bit to avoid the interrupt request that was
just acknowledged being proposed again.
Then, after resetting the pending bit and before
the IRET instruction, check if the SPIF and MODF
interrupt flags in the SR register) are reset; other-
wise jump to the beginning of the routine. If, on re-
turn from an interrupt routine, the pending bit is re-
set while one of the interrupt flags is set, no inter-
rupt is performed on that channel until the flags are
set. A new interrupt request is performed only
when a flag is set with the other not set.
7.5.5.1 Register Map
Depending on the device, one or two Serial Pe-
ripheral interfaces can be present. The previous
table summarizes the position of the registers of
the two peripherals in the register map of the mi-
crocontroller.
SPI0
SPI1
R250 (FAh)
R251 (FBh)
R240 (F0h)
R241 (F1h)
R242 (F2h)
R243 (F3h)
R248 (F8h)
R249 (F9h)
Address
Page
7
7
7
7
7
7
7
7
Name
DR0
CR0
SR0
PR0
DR1
CR1
SR1
PR1
Related parts for ST92141
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
HIGH VOLTAGE FAST-SWITCHING NPN POWER TRANSISTOR
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
(ST62T15C / ST62T25C) 8-BIT OTP/EPROM MCUs WITH A/D CONVERTER
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
(ST62E35B / ST62T35B) 8-BIT OTP/EPROM MCUs
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
8-BIT OTP/EPROM MCU WITH LCD DRIVER / EEPROM AND A/D CONVERTER
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
AUdio Amplifier
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
NPN MEDIUM POWER TRANSISTOR
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
(ST90135 / ST90158) Microcontroller
Manufacturer:
ST Microelectronics
Part Number:
Description:
(ST90x27 / ST90x28) 16K EPROM HCMOS MCUS WITH RAM
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
(ST90R28B6) 16K ROM / 256 RAM HCMOS MCUs
Manufacturer:
ST Microelectronics
Part Number:
Description:
(ST90x31) 8K EPROM HCMOS MCU
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
(ST92195C/D) 48-96 Kbyte ROM HCMOS MCU
Manufacturer:
ST Microelectronics
Part Number:
Description:
16-48K ROM HCMOS MCU WITH ON SCREEN DISPLAY AND VOLTAGE TUNINGOUTPUT
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
48K ROM HCMOS MCUs WITH ON SCREEN DISPLAY AND A/D CONVERTER
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
24K ROM HCMOS MCU WITH ON SCREEN DISPLAY AND CLOSED-CAPTION DATA SLICER
Manufacturer:
ST Microelectronics
Datasheet: