ST7MDT2-EPB2/US STMicroelectronics, ST7MDT2-EPB2/US Datasheet - Page 63
![no-image](/images/manufacturer_photos/0/6/637/stmicroelectronics_sml.jpg)
ST7MDT2-EPB2/US
Manufacturer Part Number
ST7MDT2-EPB2/US
Description
BOARD PROGRAMMING SGL POS ST7
Manufacturer
STMicroelectronics
Type
MCUr
Specifications of ST7MDT2-EPB2/US
Contents
Programmer Board
For Use With/related Products
ST72311, ST72124, ST72314, ST72334
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 63 of 153
- Download datasheet (3Mb)
16-BIT TIMER (Cont’d)
14.3.3.5 One Pulse Mode
One Pulse mode enables the generation of a
pulse when an external event occurs. This mode is
selected via the OPM bit in the CR2 register.
The One Pulse mode uses the Input Capture1
function and the Output Compare1 function.
Procedure:
To use One Pulse mode:
1. Load the OC1R register with the value corre-
2. Select the following in the CR1 register:
3. Select the following in the CR2 register:
Then, on a valid event on the ICAP1 pin, the coun-
ter is initialized to FFFCh and the OLVL2 bit is
loaded on the OCMP1 pin, the ICF1 bit is set and
the value FFFDh is loaded in the IC1R register.
Because the ICF1 bit is set when an active edge
occurs, an interrupt can be generated if the ICIE
bit is set.
sponding to the length of the pulse (see the for-
mula in the opposite column).
– Using the OLVL1 bit, select the level to be ap-
– Using the OLVL2 bit, select the level to be ap-
– Select the edge of the active transition on the
– Set the OC1E bit, the OCMP1 pin is then ded-
– Set the OPM bit.
– Select the timer clock CC[1:0] (see
plied to the OCMP1 pin after the pulse.
plied to the OCMP1 pin during the pulse.
ICAP1 pin with the IEDG1 bit (the ICAP1 pin
must be configured as floating input).
icated to the Output Compare 1 function.
Clock Control
event occurs
on ICAP1
Counter
= OC1R
When
When
Bits).
One Pulse mode cycle
OCMP1 = OLVL2
OCMP1 = OLVL1
Counter is reset
ICF1 bit is set
to FFFCh
Table 14
Clearing the Input Capture interrupt request (i.e.
clearing the ICF i bit) is done in two steps:
1. Reading the SR register while the ICF i bit is set.
2. An access (read or write) to the IC i LR register.
The OC1R register value required for a specific
timing application can be calculated using the fol-
lowing formula:
Where:
t
f
PRESC
If the timer clock is an external clock the formula is:
Where:
t
f
When the value of the counter is equal to the value
of the contents of the OC1R register, the OLVL1
bit is output on the OCMP1 pin (see
Notes:
1. The OCF1 bit cannot be set by hardware in
2. When the Pulse Width Modulation (PWM) and
3. If OLVL1=OLVL2 a continuous signal will be
4. The ICAP1 pin can not be used to perform input
5. When One Pulse mode is used OC1R is dedi-
CPU
EXT
One Pulse mode but the OCF2 bit can generate
an Output Compare interrupt.
One Pulse mode (OPM) bits are both set, the
PWM mode is the only active one.
seen on the OCMP1 pin.
capture. The ICAP2 pin can be used to perform
input capture (ICF2 can be set and IC2R can be
loaded) but the user must take care that the
counter is reset each time a valid edge occurs
on the ICAP1 pin and ICF1 can also generates
interrupt if ICIE is set.
cated to this mode. Nevertheless OC2R and
OCF2 can be used to indicate that a period of
time has elapsed but cannot generate an output
waveform because the OLVL2 level is dedi-
cated to One Pulse mode.
ST72334J/N, ST72314J/N, ST72124J
= Pulse period (in seconds)
= CPU clock frequency (in hertz)
= Timer prescaler factor (2, 4 or 8 depend-
= Pulse period (in seconds)
= External timer clock frequency (in hertz)
OC i R Value =
ing on the CC[1:0] bits, see
Clock Control
OC i R =
t
*
Bits)
f
EXT
PRESC
t
*
f
CPU
-5
Figure
- 5
Table 14
40).
63/153
Related parts for ST7MDT2-EPB2/US
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ST7MDT2-DVP2/US](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
KIT DEVELOPMENT ST7
Manufacturer:
STMicroelectronics
Datasheet:
![ST7MDT2-PB/TQ44](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
MCU, MPU & DSP Development Tools ST7 Developmnt Board
Manufacturer:
STMicroelectronics
![ST7MDT2-DV/TQ44](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
MCU, MPU & DSP Development Tools ST7 Developmnt Board
Manufacturer:
STMicroelectronics
![ST7MDT2-EMU2B](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
MCU, MPU & DSP Development Tools ST7 Emulator Board
Manufacturer:
STMicroelectronics
![ST7MDT2-DBE2B](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
MCU, MPU & DSP Development Tools ST7 Developmnt Board
Manufacturer:
STMicroelectronics
![HCF4040BF](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
STMicroelectronics [RIPPLE-CARRY BINARY COUNTER/DIVIDERS]
Manufacturer:
STMicroelectronics
Datasheet:
![HCF4054BF](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
STMicroelectronics [LIQUID-CRYSTAL DISPLAY DRIVERS]
Manufacturer:
STMicroelectronics
Datasheet:
![STEVAL-MKI062V2](/photos/28/39/283999/steval-mki062v2_tmb.jpg)
Part Number:
Description:
BOARD EVAL FOR MEMS SENSORS
Manufacturer:
STMicroelectronics
Datasheet:
![BUT32V](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
NPN TRANSISTOR POWER MODULE
Manufacturer:
STMicroelectronics
Datasheet:
![STTA12006TV2](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
TURBOSWITCH ULTRA-FAST HIGH VOLTAGE DIODE
Manufacturer:
STMicroelectronics
Datasheet:
![E110NS20FD](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
Manufacturer:
STMicroelectronics
Datasheet:
![MDS50-800](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
DIODE / SCR MODULE
Manufacturer:
STMicroelectronics
Datasheet: