ST7263BK4 STMicroelectronics, ST7263BK4 Datasheet - Page 68

no-image

ST7263BK4

Manufacturer Part Number
ST7263BK4
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 ST7263BK4

4, 8, 16 Or 32 Kbytes Program Memory
high density Flash (HDFlash), FastROM or ROM with Read-Out and Write protection

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST7263BK4MG
Manufacturer:
ST
0
On-chip peripherals
68/186
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.
2.
3.
Figure 37. One Pulse mode cycle
Then, on a valid event on the ICAP1 pin, the counter is initialized to FFFCh and 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.
Clearing the input Capture interrupt request (that is, clearing the ICFi bit) is done in two
steps:
1.
2.
Load the OC1R register with the value corresponding to the length of the pulse (see the
formula in the opposite column).
Select the following in the CR1 register:
Select the following in the CR2 register:
Reading the SR register while the ICFi bit is set.
An access (read or write) to the ICiLR register.
Using the OLVL1 bit, select the level to be applied to the OCMP1 pin after the
pulse.
Using the OLVL2 bit, select the level to be applied to the OCMP1 pin during the
pulse.
Select the edge of the active transition on the ICAP1 pin with the IEDG1 bit (the
ICAP1 pin must be configured as floating input).
Set the OC1E bit, the OCMP1 pin is then dedicated to the output Compare 1
function.
Set the OPM bit.
Select the timer clock CC[1:0] (see
event occurs
on ICAP1
Doc ID 7516 Rev 8
When
Counter
= OC1R
When
OCMP1 = OLVL2
Table
OCMP1 = OLVL1
ICR1 = Counter
Counter is reset
ICF1 bit is set
to FFFCh
24).
ST7263Bxx

Related parts for ST7263BK4