ST7263BK1 STMicroelectronics, ST7263BK1 Datasheet - Page 66

no-image

ST7263BK1

Manufacturer Part Number
ST7263BK1
Description
LOW SPEED USB 8-BIT MCU FAMILY WITH UP TO 32K FLASH/ROM, DFU CAPABILITY, 8-BIT ADC, WDG, TIMER, SCI and I2C
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST7263BK1

4, 8, 16 Or 32 Kbytes Program Memory
high density Flash (HDFlash), FastROM or ROM with Read-Out and Write protection
On-chip peripherals
Note:
66/186
1
2
3
4
5
PRESC
If the timer clock is an external clock, the formula is:
Where:
Δ
f
Clearing the output compare interrupt request (that is, clearing the OCFi bit) is done by:
1.
2.
The following procedure is recommended to prevent the OCFi bit from being set between
the time it is read and the write to the OC
After a processor write cycle to the OCiHR register, the output compare function is inhibited
until the OCiLR register is also written.
If the OCiE bit is not set, the OCMPi pin is a general I/O port and the OLVLi bit will not
appear when a match is found but an interrupt could be generated if the OCIE bit is set.
In both internal and external clock modes, OCFi and OCMPi are set while the counter value
equals the OCiR register value (see
Figure 36 on page 67
PWM mode.
The output compare functions can be used both for generating external events on the
OCMPi pins even if the input capture mode is also used.
The value in the 16-bit OC
successful comparison in order to control an output waveform or establish a new elapsed
timeout.
Forced Compare output capability
When the FOLVi bit is set by software, the OLVLi bit is copied to the OCMPi pin. The OLVi bit
has to be toggled in order to toggle the OCMPi pin when it is enabled (OCiE bit = 1). The
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.
EXT
t = Output compare period (in seconds)
= External timer clock frequency (in hertz)
Reading the SR register while the OCFi bit is set.
An access (read or write) to the OCiLR register.
Write to the OCiHR register (further compares are inhibited).
Read the SR register (first step of the clearance of the OCFi bit, which may be already
set).
Write to the OCiLR register (enables the output compare function and clears the OCFi
bit).
= Timer prescaler factor (2, 4 or 8 depending on CC[1:0] bits, see
for an example with f
i
R register and the OLVi bit should be changed after each
Doc ID 7516 Rev 8
Δ
Figure 35 on page 67
OCiR =
i
R register:
CPU
Δt
/4). This behavior is the same in OPM or
*
f
EXT
for an example with f
Table
24)
CPU
ST7263Bxx
/2 and

Related parts for ST7263BK1