电子工程世界电子工程世界电子工程世界

关键词

搜索

型号

搜索

AN1602

产品描述16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B MCUs
文件大小148KB,共21页
制造商ST(意法半导体)
官网地址http://www.st.com/
下载文档 全文预览

AN1602概述

16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B MCUs

文档预览

下载PDF文档
AN1602
APPLICATION NOTE
16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B
MCUs
Microcontroller Division Applications
INTRODUCTION
This Application Note describes how to use the ST7262 or ST7263B for 16-bit timing opera-
tions. The intention of this document is to show how to perform pulse measurement and PWM
generation using the different timers available on each microcontroller type.
1 16-BIT TIMING MEASUREMENTS
1.1 USING ST7262
The aim of this section is to describe how to use the ST7262 8-bit timer to perform pulse and
frequency measurements with 16-bit accuracy.
1.1.1 16-Bit Capture
1.1.1.1 Principle
The ST7262 architecture allows you to cascade the 8-bit Auto Reload Timer (ART) with the 8-
bit Time Base Unit (TBU) to obtain a 16-bit counter (The carry bit of the ART acts as the clock
for the TBU). Using this configuration, the ARTCAR register represents the Least Significant
Byte and the TBUCV register represents the Most Significant Byte (see Figure 1).
Figure 1. TBU+ART 16-Bit Counter Value
TBU (MSB)
ART (LSB)
16 Bit Counter Value
On each valid input capture, the 16-bit counter value is obtained by:
– The ARTCAR register which is automatically latched.
– The TBUCV register which is saved by software in the Input Capture Interrupt routine.
This method ensures a “real-time” capture of the low bits, while the software delay needed to
save the TBUCV can be compensated.
AN1602/0503
1/21
1

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

 
机器人开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 大学堂 TI培训 Datasheet 电子工程 索引文件: 679  2857  1516  980  95  29  45  26  9  22 

器件索引   0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2026 EEWORLD.com.cn, Inc. All rights reserved