CHAPTER 7 16-BIT TIMER/EVENT COUNTERS 0 AND 1
User’s Manual U15905EJ2V1UD
215
The conditions when the TMn register becomes 0000H are shown below.
(a) Asynchronous reset
TMCAEn bit of TMCn0 register = 0
After reset
(b) Synchronous reset
TMCEn bit of TMCn0 register = 0
The CCn0 register is used as a compare register, and the TMn and CCn0 registers match when clearing
the TMn register is enabled (CCLRn bit of the TMCn1 register = 1)
(2) Capture/compare registers n0 and n1 (CCn0 and CCn1) (n = 0, 1)
These capture/compare registers (n0 and n1) are 16-bit registers.
They can be used as capture registers or compare registers according to the CMSn0 and CMSn1 bit
specifications of timer mode control register n1 (TMCn1) (n = 0, 1).
These registers can be read or written in 16-bit units. (However, write operations can only be performed in
compare mode.)
These registers are cleared to 0000H after reset.
CC1n
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
CC0n
FFFFF602H,
FFFFF604H
FFFFF612H,
FFFFF614H
0000H
Address
After reset
0
Remark
n = 0, 1
(a) Setting these registers as capture registers (CMSn0 and CMSn1 of TMCn1 = 0)
When these registers are set as capture registers, the valid edges of the corresponding external interrupt
signals INTPn0 and INTPn1 are detected as capture triggers. The timer TMn is synchronized with the
capture trigger, and the value of TMn is latched in the CCn0 and CCn1 registers (capture operation).
The valid edge of the INTPn0 pin is specified (rising, falling, or both rising and falling edges) according to
the IESn01 and IESn00 bits of the SESn register, and the valid edge of the INTPn1 pin is specified
according to the IESn11 and IESn10 bits of the SESn register (n = 0, 1).
The capture operation is performed asynchronously to the count clock. The latched value is held in the
capture register until another capture operation is performed (n = 0, 1).
When the TMCAEn bit of timer mode control register n0 (TMCn0) is 0, 0000H is read (n = 0, 1).
If these registers are specified as capture registers, an interrupt is generated by detecting the valid edge of
signals INTPn0 and INTPn1 (n = 0, 1).
Caution
If the capture operation conflicts with the timing of disabling the TMn register from
counting (when the TMCEn bit of the TMCn0 register = 0), the captured data becomes
undefined. In addition, the INTCCn0 and INTCCn1 interrupts do not occur (n = 0, 1).
相关PDF资料
PIC18LF1220T-I/ML IC MCU FLASH 2KX16 EEPROM 28QFN
PIC18LF1220T-I/SO IC MCU FLASH 2KX16 EEPROM 18SOIC
PIC16F716-I/SS IC PIC MCU FLASH 2KX14 20SSOP
PIC18F1320T-E/ML IC MCU FLASH 4KX16 EEPROM 28QFN
PIC16LF87T-I/ML IC MCU FLASH 4KX14 EEPROM 28QFN
PIC18F25J10-I/SS IC PIC MCU FLASH 16KX16 28SSOP
PIC16F88T-E/SS IC MCU FLASH 4KX14 EEPROM 20SSOP
PIC16C621A-04/SO IC MCU OTP 1KX14 COMP 18SOIC
相关代理商/技术参数
PIC24F08KL301T-I/MQ 功能描述:16位微控制器 - MCU 8KB FLASH 1KB RAM 512B 3V 10-BIT ADC RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT
PIC24F08KL301T-I/SO 功能描述:16位微控制器 - MCU 8KB FLASH 1KB RAM 512B 3V 10-BIT ADC RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT
PIC24F08KL301T-I/SS 功能描述:16位微控制器 - MCU 8KB FLASH 1KB RAM 512B 3V 10-BIT ADC RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT
PIC24F08KL302 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:Low-Power, Low-Cost, General Purpose 16-Bit Flash Microcontrollers with nanoWatt XLP Technology
PIC24F08KL302-I/ML 功能描述:16位微控制器 - MCU 8KB FLASH 1KB RAM 256B 3V RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT
PIC24F08KL302-I/MQ 功能描述:16位微控制器 - MCU 8KB FL 1KB RAM 256B 3V RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT
PIC24F08KL302-I/SO 功能描述:16位微控制器 - MCU 8KB FLASH 1KB RAM 256B 3V RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT
PIC24F08KL302-I/SP 功能描述:16位微控制器 - MCU 8KB FLASH 1KB RAM 256B 3V RoHS:否 制造商:Texas Instruments 核心:RISC 处理器系列:MSP430FR572x 数据总线宽度:16 bit 最大时钟频率:24 MHz 程序存储器大小:8 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:VQFN-40 安装风格:SMD/SMT