datasheetbank_Logo
数据手册搜索引擎和 Datasheet免费下载 PDF

ST72F324K2TATX 查看數據表(PDF) - STMicroelectronics

零件编号
产品描述 (功能)
生产厂家
ST72F324K2TATX Datasheet PDF : 194 Pages
First Prev 81 82 83 84 85 86 87 88 89 90 Next Last
ST72324xx-Auto
On-chip peripherals
If the timer clock is an external clock, the formula is:
Δ OCiR = Δt * fEXT
Where:
Δt
= Output compare period (in seconds)
fEXT = External timer clock frequency (in hertz)
Clearing the output compare interrupt request (that is, clearing the OCFi bit) is done by:
1. Reading the SR register while the OCFi bit is set.
2. An access (read or write) to the OCiLR register.
The following procedure is recommended to prevent the OCFi bit from being set between
) the time it is read and the write to the OCiR register:
t(s Write to the OCiHR register (further compares are inhibited).
uc Read the SR register (first step of the clearance of the OCFi bit, which may be already
d set).
ro Write to the OCiLR register (enables the output compare function and clears the OCFi
P bit).
te Note: 1 After a processor write cycle to the OCiHR register, the output compare function is inhibited
le until the OCiLR register is also written.
o 2 If the OCiE bit is not set, the OCMPi pin is a general I/O port and the OLVLi bit will not
bs appear when a match is found but an interrupt could be generated if the OCIE bit is set.
O 3 In both internal and external clock modes, OCFi and OCMPi are set while the counter value
- equals the OCiR register value (see Figure 42 on page 84 for an example with fCPU/2 and
) Figure 43 on page 84 for an example with fCPU/4). This behavior is the same in OPM or
t(s PWM mode.
c 4 The output compare functions can be used both for generating external events on the
u OCMPi pins even if the input capture mode is also used.
rod 5 The value in the 16-bit OCiR register and the OLVi bit should be changed after each
P successful comparison in order to control an output waveform or establish a new elapsed
timeout.
leteForced output compare capability
o When the FOLVi bit is set by software, the OLVLi bit is copied to the OCMPi pin. The OLVi bit
bs has to be toggled in order to toggle the OCMPi pin when it is enabled (OCiE bit = 1). The
O OCFi bit is then not set by hardware, and thus no interrupt request is generated.
The FOLVLi bits have no effect in both one pulse mode and PWM mode.
Doc ID 13841 Rev 1
83/193

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]