参数资料
型号: ST7FSCR1E4U1
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, QCC64
封装: QFN-64
文件页数: 41/101页
文件大小: 4506K
代理商: ST7FSCR1E4U1
ST7SCR1E4 ST7SCR1R4
44/101
12.2 TIME BASE UNIT (TBU)
12.2.1 Introduction
The Timebase unit (TBU) can be used to generate
periodic interrupts.
12.2.2 Main Features
8-bit upcounter
Programmable prescaler
Period between interrupts: max. 8.1ms (at 8
MHz fCPU )
Maskable interrupt
12.2.3 Functional Description
The TBU operates as a free-running upcounter.
When the TCEN bit in the TBUCSR register is set
by software, counting starts at the current value of
the TBUCV register. The TBUCV register is incre-
mented at the clock rate output from the prescaler
selected by programming the PR[2:0] bits in the
TBUCSR register.
When the counter rolls over from FFh to 00h, the
OVF bit is set and an interrupt request is generat-
ed if ITE is set.
The user can write a value at any time in the
TBUCV register.
12.2.4 Programming Example
In this example, timer is required to generate an in-
terrupt after a delay of 1 ms.
Assuming that fCPU is 8 MHz and a prescaler divi-
sion factor of 256 will be programmed using the
PR[2:0] bits in the TBUCSR register, 1 ms = 32
TBU timer ticks.
In this case, the initial value to be loaded in the
TBUCV must be (256-32) = 224 (E0h).
ld A, E0h
ld TBUCV, A
; Initialize counter value
ld A 1Fh
;
ld TBUCSR, A
; Prescaler factor = 256,
; interrupt enable,
; TBU enable
Figure 28. TBU Block Diagram
TBU 8-BIT UPCOUNTER (TBUCV REGISTER)
INTERRUPT REQUEST
TBU PRESCALER
fCPU
TBUCSR REGISTER
PR1 PR0
PR2
TCEN
ITE
OVF
MSB
LSB
0
1
TBU
0
相关PDF资料
PDF描述
ST7SCR1T1/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP64
ST7SCR1E4U1/XXX MICROCONTROLLER, QCC24
ST7SCR1E4M1/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO24
ST7L34F2MCRE/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO20
ST7L35F2MARE/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO20
相关代理商/技术参数
参数描述
ST7FSCR1R4 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT LOW-POWER, FULL-SPEED USB MCU WITH 16K FLASH, 768 RAM, SMARTCARD I/F, TIMER
ST7FSCR1R4T1 功能描述:8位微控制器 -MCU 8-BIT Lw Pwr USB MCU W/ 16K FLASH RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
ST7FUS-PRIMER 功能描述:程序设计器 - 基于处理器 Low-Cost Eval Dev Tool Pack RoHS:否 制造商:Olimex Ltd. 产品:Programmers 工具用于评估:XMEGA, MegaAVR, tinyAVR 核心:AVR 接口类型:USB 工作电源电压:1.8 V to 5.5 V
ST7FUS-SK/RAIS 制造商:STMicroelectronics 功能描述:Evaluation and Application Development with ST7Ultralite
ST7GEME4 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:Full-speed USB MCU with smartcard firmware and EMV/non-EMV interface