Datasheet 搜索 > 微控制器 > ST Microelectronics(意法半导体) > STM32F100V8T6B 数据手册 > STM32F100V8T6B 开发手册 4/34 页


¥ 29.493
STM32F100V8T6B 开发手册 - ST Microelectronics(意法半导体)
制造商:
ST Microelectronics(意法半导体)
分类:
微控制器
封装:
LQFP-100
描述:
STMICROELECTRONICS STM32F100V8T6B 微控制器, 32位, 线路接入, ARM 皮质-M3, 24 MHz, 64 KB, 8 KB, 100 引脚, LQFP
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
页面导航:
应用领域在P34
导航目录
STM32F100V8T6B数据手册
Page:
of 34 Go
若手册格式错乱,请下载阅览PDF原文件

Generic solution AN3174
4/34 Doc ID 17249 Rev 2
2 Generic solution
Each Infrared protocol can be decoded using one of the timer peripherals embedded in the
STM32 microcontroller. This timer can be configured in PWM input mode and used to
sample the Infrared frame bits. The timer input capture function is active on edges with
opposite polarity.
The timer generates three types of interrupt:
● Interrupt at each falling edge: This can be used to measure the whole pulse (duration
between two successive falling edges).
● Interrupt at each rising edge: This can be used to measure the low pulse (duration
between falling and rising edges).
● Update event: This is used to put the Infrared packet into default state (Bit count, Data
and Status) when the Timer counter overflows.
The low pulse and the whole pulse duration are used to determine the bit value. If the
durations are within the tolerance range of the bit time, we identify the bit value (Logic0,
Logic1 or Header).
The flowchart below gives an overview of the Infrared decoding procedure.
Figure 2. Infrared decoding flowchart
)NITIALIZATION4IMER IN
07-)MODE
4IMERINTERRUPT
&ALLINGEDGE 2ISINGEDGE
4EST-ARGIN
TOLERANCE
.
.
7HOLEPULSE
-EASUREMENT
,OWPULSE
-EASUREMENT
5PDATE%VENT
2ESET THE )NFRARED
0ACKET
9ES
"IT)DENTIFICATION
)NCREMENTBITCOUNT
4EST" IT
#OUNT
$ECODE)NFRAREDFRAME
FIELDS
%RROR
2ESET THE )NFRARED
0ACKET
2ESET THE )NFRARED
0ACKET
-36
器件 Datasheet 文档搜索
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件