CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
User’s Manual U16898EJ6V0UD
98
6.4
Operation of 16-bit Timer/Event Counter 00
6.4.1
Interval timer operation
Setting 16-bit timer mode control register 00 (TMC00) and capture/compare control register 00 (CRC00) as shown
in Figure 6-10 allows operation as an interval timer.
Setting
The basic operation setting procedure is as follows.
<1>
Set the CRC00 register (see Figure 6-10 for the set value).
<2>
Set any value to the CR000 register.
<3>
Set the count clock by using the PRM00 register.
<4>
Set the TMC00 register to start the operation (see Figure 6-10 for the set value).
Caution
Changing the CR000 setting during TM00 operation may cause a malfunction. To change the
setting, refer to 6.5 Cautions Related to 16-bit Timer/Event Counter 00 (17) Changing compare
register during timer operation.
Remark
For how to enable the INTTM000 interrupt, see CHAPTER 12 INTERRUPT FUNCTIONS.
Interrupt requests are generated repeatedly using the count value set in 16-bit timer capture/compare register 000
(CR000) beforehand as the interval.
When the count value of 16-bit timer counter 00 (TM00) matches the value set to CR000, counting continues with
the TM00 value cleared to 0 and the interrupt request signal (INTTM000) is generated.
The count clock of the 16-bit timer/event counter can be selected using bits 0 and 1 (PRM000, PRM001) of
prescaler mode register 00 (PRM00).
相关PDF资料
UPD78F9234CS-CAA-A MCU 8BIT 8KB FLASH 30PIN
UPD78F9418AGC-8BT-A IC MCU 8BIT 32K FLASH 80QFP
USB-232-DIL IC USB ASYNC SRL UART 28-DIL
USB-DAQ-DIL IC SYSTEM DATA LOGGER 28-DIL
USB-FILESYS-DIL IC SYSTEM USB FAT FILE 28-DIL
USB-I2C-DIL IC USB SYNC SRL I2C 28-DIL
USB-SPI-DIL IC USB SYNC SRL SPI 28-DIL
USB2SERA10CFK USB TO SERIAL BRIDGE
相关代理商/技术参数
UPD78F9222MC 制造商:Renesas Electronics Corporation 功能描述:UPD78F9222MC
UPD78F9222MC(A)-5A4-A 制造商:Renesas Electronics Corporation 功能描述:
UPD78F9222MC(T)-5A4 制造商:Renesas Electronics Corporation 功能描述:
UPD78F9222MC(T)-5A4-A 制造商:NEC Electronics Corporation 功能描述:8BIT MCU 4K FLASH 256B RAM 78F9222 制造商:NEC Electronics Corporation 功能描述:8BIT MCU, 4K FLASH, 256B RAM, 78F9222 制造商:NEC Electronics Corporation 功能描述:8BIT MCU, 4K FLASH, 256B RAM, 78F9222; Controller Family/Series:UPD78; Core Size:8bit; No. of I/O's:17; Supply Voltage Min:2V; Supply Voltage Max:5.5V; Digital IC Case Style:SSOP; No. of Pins:20; Program Memory Size:4KB; RAM Memory ;RoHS Compliant: Yes
UPD78F9222MC-5A4-A 功能描述:MCU 8BIT 4KB FLASH 20PIN RoHS:是 类别:集成电路 (IC) >> 嵌入式 - 微控制器, 系列:78K0S/Kx1+ 标准包装:300 系列:78K0R/Ix3 核心处理器:78K/0R 芯体尺寸:16-位 速度:40MHz 连通性:3 线 SIO,I²C,LIN,UART/USART 外围设备:DMA,LVD,POR,PWM,WDT 输入/输出数:27 程序存储器容量:16KB(16K x 8) 程序存储器类型:闪存 EEPROM 大小:- RAM 容量:1K x 8 电压 - 电源 (Vcc/Vdd):2.7 V ~ 5.5 V 数据转换器:A/D 8x10b 振荡器型:内部 工作温度:-40°C ~ 85°C 封装/外壳:38-SSOP 包装:托盘
UPD78F9224MC-5A4-A 制造商:Renesas Electronics Corporation 功能描述:
UPD78F9232CS-CAA-A 功能描述:MCU 8BIT 4KB FLASH 30PIN RoHS:是 类别:集成电路 (IC) >> 嵌入式 - 微控制器, 系列:78K0S/Kx1+ 标准包装:300 系列:78K0R/Ix3 核心处理器:78K/0R 芯体尺寸:16-位 速度:40MHz 连通性:3 线 SIO,I²C,LIN,UART/USART 外围设备:DMA,LVD,POR,PWM,WDT 输入/输出数:27 程序存储器容量:16KB(16K x 8) 程序存储器类型:闪存 EEPROM 大小:- RAM 容量:1K x 8 电压 - 电源 (Vcc/Vdd):2.7 V ~ 5.5 V 数据转换器:A/D 8x10b 振荡器型:内部 工作温度:-40°C ~ 85°C 封装/外壳:38-SSOP 包装:托盘
UPD78F9232MC(T)-5A4-A 制造商:Renesas Electronics Corporation 功能描述: