最新免费av在线观看,亚洲综合一区成人在线,中文字幕精品无码一区二区三区,中文人妻av高清一区二区,中文字幕乱偷无码av先锋

ST72321AR6 Datasheet

  • ST72321AR6

  • 8-BIT MCU WITH NESTED INTERRUPTS, FLASH,10-BIT ADC, FIVE TIM...

  • STMicroelectronics   STMicroelectronics

掃碼查看芯片數(shù)據(jù)手冊

上傳產品規(guī)格書

PDF預覽

ST72321
16-BIT TIMER
(Cont鈥檇)
10.4.3.4 Output Compare
In this section, the index,
i,
may be 1 or 2 because
there are 2 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 Com-
pare register and the free running counter, the out-
put compare function:
鈥?Assigns pins with a programmable value if the
OCiE bit is set
鈥?Sets a flag in the status register
鈥?Generates an interrupt if enabled
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.
OCiR
MS Byte
OCiHR
LS Byte
OCiLR
鈥?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).
The OC
i
R register value required for a specific tim-
ing application can be calculated using the follow-
ing formula:
鈭?/div>
OCiR =
鈭唗
*
f
CPU
PRESC
Where:
鈭?/div>
t
= Output compare period (in seconds)
= CPU clock frequency (in hertz)
f
CPU
PRESC
= Timer prescaler factor (2, 4 or 8 de-
pending on CC[1:0] bits, see
Table 16
Clock Control Bits)
If the timer clock is an external clock, the formula
is:
These registers are readable and writable and are
not affected by the timer hardware. A reset event
changes the OC
i
R value to 8000h.
Timing resolution is one count of the free running
counter: (
f
CPU/
CC[1:0]
).
Procedure:
To use the output compare function, select the fol-
lowing in the CR2 register:
鈥?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
Table 16
Clock Control Bits).
And select the following in the CR1 register:
鈥?Select the OLVLi bit to applied to the OCMP
i
pins
after the match occurs.
鈥?Set the OCIE bit to generate an interrupt if it is
needed.
When a match is found between OCRi register
and CR register:
鈥?OCFi bit is set.
鈭?/div>
OCiR =
鈭唗
*
f
EXT
Where:
鈭?/div>
t
= Output compare period (in seconds)
= External timer clock frequency (in hertz)
f
EXT
Clearing the output compare interrupt request (i.e.
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 pre-
vent the OCFi bit from being set between the time
it is read and the write to the OC
i
R 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).
75/185

ST72321AR6 PDF文件相關型號

ST72321AR7,ST72321AR9,ST72321M7,ST72321M9,ST72321R6,ST72321R7,ST72321R9,ST72F321AR6,ST72F321AR7,ST72F321AR9,ST72F321M7,ST72F321M9,ST72F321R6,ST72F321R7,ST72F321R9

ST72321AR6相關型號PDF文件下載

  • 型號
    版本
    描述
    廠商
    下載
  • 英文版
    8-BIT MCU FOR CAN WITH 32K ROM, 1K RAM, EEPROM, ADC, WDG, PW...
    STMICROELECTRONICS
  • 英文版
    8-BIT MCU FOR CAN WITH 32K ROM, 1K RAM, EEPROM,ADC, WDG, PWM...
    STMicro
  • 英文版
    LOW SPEED USB 8-BIT MCU FAMILY WITH UP TO 8K FLASH/ROM AND S...
    STMICROELECTRONICS
  • 英文版
    ST7 - LOW SPEED USB 8-BIT MCU WITH 3 ENDPOINTS, FLASH MEMORY...
    STMicroelectronics
  • 英文版
    LOW SPEED USB 8-BIT MCU WITH 3 ENDPOINTS, FLASH OR ROM MEMOR...
    STMicroelectronics
  • 英文版
    LOW SPEED USB 8-BIT MCU FAMILY with up to 16K MEMORY, up to ...
    STMICROELECTRONICS
  • 英文版
    LOW SPEED USB 8-BIT MCU FAMILY with up to 16K MEMORY,
    STMicro
  • 英文版
    ST7 - LOW-POWER. FULL-SPEED USB 8-BIT MCU WITH 32K FLASH. 5K...
    ETC
  • 英文版
    ST7 - LOW-POWER, FULL-SPEED USB 8-BIT MCU WITH 32K FLASH, 5K...
    STMicroelectronics
  • 英文版
    USB 2.0 HIGH SPEED MASS STORAGE MICROCONTROLLER
    ST
  • 英文版
    8-BIT HCMOS MCUs WITH EEPROM AND TV/MONITOR DEDICATED FUNCTI...
    STMICROELECTRONICS
  • 英文版
    8-BIT HCMOS MCUs WITH EEPROM AND TV/MONITOR DEDICATED FUNCTI...
    STMICROELECTRON...
  • 英文版
    8-BIT MCU WITH 24K ROM, EEPROM,ADC,PWM/BRM DACs,SYNC PROCESS...
    STMICROELECTRONICS
  • 英文版
    8-BIT MCU WITH 24K ROM, EEPROM,ADC,PWM/BRM DACs,SYNC PROCESS...
    STMICROELECTRON...
  • 英文版
    8-BIT USB MCU FOR MONITORS WITH UP TO 60K ROM, 2K RAM, ADC, ...
    STMICROELECTRONICS
  • 英文版
    8-BIT USB MCU FOR MONITORS WITH UP TO 60K ROM, 2K RAM, ADC, ...
    STMICROELECTRON...
  • 英文版
    ROM FROM EPROM
    STMICROELECTRONICS
  • 英文版
    8-BIT MCU WITH 4 TO 8K ROM/OTP/EPROM, 256 BYTES RAM, ADC, WD...
    STMICROELECTRONICS
  • 英文版
    8-BIT MCU WITH 4 TO 8K ROM/OTP/EPROM, 256 BYTES RAM, ADC, WD...
    STMICROELECTRON...
  • 英文版
    8-BIT MICROCONTROLLER (MCU) WITH 8 TO 16 K ROM/OTP/EPROM. 38...
    ETC

掃碼下載APP,
一鍵連接廣大的電子世界。

在線人工客服

買家服務:
賣家服務:
技術客服:

0571-85317607

網站技術支持

13606545031

客服在線時間周一至周五
9:00-17:30

關注官方微信號,
第一時間獲取資訊。

建議反饋

聯(lián)系人:

聯(lián)系方式:

按住滑塊,拖拽到最右邊
>>
感謝您向阿庫提出的寶貴意見,您的參與是維庫提升服務的動力!意見一經采納,將有感恩紅包奉上哦!