st92f120 STMicroelectronics, st92f120 Datasheet - Page 166

no-image

st92f120

Manufacturer Part Number
st92f120
Description
8/16-bit Flash Mcu Family With Ram, Eeprom And J1850 Blpd
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
st92f120JV9Q7
Manufacturer:
ST
Quantity:
3 478
Part Number:
st92f120JV9Q7
Manufacturer:
ST
0
Part Number:
st92f120V107
Manufacturer:
ST
0
Part Number:
st92f120V10Q
Manufacturer:
ST
0
Part Number:
st92f120V1Q7
Manufacturer:
ST
Quantity:
6 765
Part Number:
st92f120V1Q7
Manufacturer:
ST
0
Part Number:
st92f120V1Q7
Manufacturer:
ST
Quantity:
20 000
Part Number:
st92f120V1Q7C
Manufacturer:
ST
0
Part Number:
st92f120V1Q7C
Manufacturer:
ST
Quantity:
20 000
Part Number:
st92f120V1Q7DTR
Manufacturer:
MAXIM
Quantity:
2 854
Part Number:
st92f120V9Q7
Manufacturer:
TEXAS
Quantity:
2 500
Part Number:
st92f120V9Q7
Manufacturer:
ST
Quantity:
20 000
Part Number:
st92f120V9Q7C
Manufacturer:
ST
Quantity:
101
MULTIFUNCTION TIMER (MFT)
MULTIFUNCTION TIMER (Cont’d)
10.4.5 Interrupt and DMA
10.4.5.1 Timer Interrupt
The timer has 5 different Interrupt sources, be-
longing to 3 independent groups, which are as-
signed to the following Interrupt vectors:
Table 33. Timer Interrupt Structure
The three least significant bits of the vector pointer
address represent the relative priority assigned to
each group, where 000 represents the highest pri-
ority level. These relative priorities are fixed by
hardware, according to the source which gener-
ates the interrupt request. The 5 most significant
bits represent the general priority and are pro-
grammed by the user in the Interrupt Vector Reg-
ister (T_IVR).
Each source can be masked by a dedicated bit in
the Interrupt/DMA Mask Register (IDMR) of each
timer, as well as by a global mask enable bit (ID-
MR.7) which masks all interrupts.
If an interrupt request (CM0 or CP0) is present be-
fore the corresponding pending bit is reset, an
overrun condition occurs. This condition is flagged
in two dedicated overrun bits, relating to the
Comp0 and Capt0 sources, in the Timer Flag Reg-
ister (T_FLAGR).
10.4.5.2 Timer DMA
Two Independent DMA channels, associated with
Comp0 and Capt0 respectively, allow DMA trans-
fers from Register File or Memory to the Comp0
Register, and from the Capt0 Register to Register
File or Memory). If DMA is enabled, the Capt0 and
Comp0 interrupts are generated by the corre-
sponding DMA End of Block event. Their priority is
set by hardware as follows:
– Compare 0 Destination — Lower Priority
– Capture 0 Source — Higher Priority
The two DMA request sources are independently
maskable by the CP0D and CM0D DMA Mask bits
in the IDMR register.
166/324
9
Overflow/Underflow
Interrupt Source
COMP 0
COMP 1
CAPT 0
CAPT 1
Vector Address
xxxx x110
xxxx x100
xxxx x000
The two DMA End of Block interrupts are inde-
pendently enabled by the CP0I and CM0I Interrupt
mask bits in the IDMR register.
10.4.5.3 DMA Pointers
The 6 programmable most significant bits of the
DMA Counter Pointer Register (DCPR) and of the
DMA Address Pointer Register (DAPR) are com-
mon to both channels (Comp0 and Capt0). The
Comp0 and Capt0 Address Pointers are mapped
as a pair in the Register File, as are the Comp0
and Capt0 DMA Counter pair.
In order to specify either the Capt0 or the Comp0
pointers, according to the channel being serviced,
the Timer resets address bit 1 for CAPT0 and sets
it for COMP0, when the D0 bit in the DCPR regis-
ter is equal to zero (Word address in Register
File). In this case (transfers between peripheral
registers and memory), the pointers are split into
two groups of adjacent Address and Counter pairs
respectively.
For peripheral register to register transfers (select-
ed by programming “1” into bit 0 of the DCPR reg-
ister), only one pair of pointers is required, and the
pointers are mapped into one group of adjacent
positions.
The DMA Address Pointer Register (DAPR) is not
used in this case, but must be considered re-
served.
Figure 86. Pointer Mapping for Transfers
between Registers and Memory
Counters
Address
Pointers
DMA
16 bit Counter
16 bit Counter
Comp0 16 bit
Register File
Comp0 DMA
Addr Pointer
Addr Pointer
Capt0 16 bit
Capt0 DMA
YYYYYY11(l)
YYYYYY10(h)
YYYYYY01(l)
YYYYYY00(h)
XXXXXX11(l)
XXXXXX10(h)
XXXXXX01(l)
XXXXXX00(h)

Related parts for st92f120