ST7263BK1 STMicroelectronics, ST7263BK1 Datasheet - Page 65

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
ST7263Bxx
Output Compare
In this section, the index, i, may be 1 or 2 because there are two output compare functions in
the 16-bit timer.
This function can be used to control an output waveform or indicate when a period of time
has elapsed.
When a match is found between the output Compare register and the free running counter,
the output compare function:
Two 16-bit registers output Compare register 1 (OC1R) and output Compare register 2
(OC2R) contain the value to be compared to the counter register each timer clock cycle.
Table 20.
These registers are readable and writable and are not affected by the timer hardware. A
reset event changes the OC
Timing resolution is one count of the free running counter: (
Procedure
To use the output compare function, select the following in the CR2 register:
1.
2.
3.
When a match is found between OCiR register and CR register:
The OC
the following formula:
Where:
Δ
f
CPU
t = Output compare period (in seconds)
Assigns pins with a programmable value if the OCiE bit is set
Sets a flag in the status register
Generates an interrupt if enabled
Set the OCiE bit if an output is needed then the OCMPi pin is dedicated to the output
compare i signal.
Select the timer clock (CC[1:0]) (see
Select the following in the CR1 register:
a)
b)
OCFi bit is set.
The OCMPi pin takes OLVLi bit value (OCMPi pin latch is forced low during reset).
A timer interrupt is generated if the OCIE bit is set in the CR1 register and the I bit is
cleared in the CC register (CC).
= CPU clock frequency (in hertz)
i
R register value required for a specific timing application can be calculated using
Select the OLVLi bit to applied to the OCMPi pins after the match occurs.
Set the OCIE bit to generate an interrupt if it is needed.
OCiR
OC/R register
i
R value to 8000h.
Doc ID 7516 Rev 8
Δ
MS Byte
OCiR =
OCiHR
Table
Δt
PRESC
24).
*
f
CPU
f
CPU/
CC[1:0]
).
On-chip peripherals
LS Byte
OCiLR
65/186

Related parts for ST7263BK1