欢迎访问ic37.com |
会员登录 免费注册
发布采购

HT46R065D 参数 Datasheet PDF下载

HT46R065D图片预览
型号: HT46R065D
PDF下载: 下载PDF文件 查看货源
内容描述: 增强A / D型MCU,具有高电流LED驱动器 [Enhanced A/D Type MCU with High Current LED Driver]
分类和应用: 驱动器
文件页数/大小: 114 页 / 744 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT46R065D的Datasheet PDF文件第48页浏览型号HT46R065D的Datasheet PDF文件第49页浏览型号HT46R065D的Datasheet PDF文件第50页浏览型号HT46R065D的Datasheet PDF文件第51页浏览型号HT46R065D的Datasheet PDF文件第53页浏览型号HT46R065D的Datasheet PDF文件第54页浏览型号HT46R065D的Datasheet PDF文件第55页浏览型号HT46R065D的Datasheet PDF文件第56页  
HT46R064D/065D/066D  
Enhanced A/D Type 8-Bit OTP MCU with LED Driver  
Timer Control Registers - TMR0C, TMR1C  
The flexible features of the Holtek microcontroller Timer/Event Counters enable them to operate in  
three different modes, the options of which are determined by the contents of their respective control  
register.  
The Timer Control Register is known as TMRnC. It is the Timer Control Register together with its  
corresponding timer register that control the full operation of the Timer/Event Counter. Before the  
timer can be used, it is essential that the Timer Control Register is fully programmed with the right data  
to ensure its correct operation, a process that is normally carried out during program initialisation.  
To choose which of the three modes the timer is to operate in, either in the timer mode, the event  
counting mode or the pulse width capture mode, bits 7 and 6 of the Timer Control Register, which are  
known as the bit pair TnM1/TnM0, must be set to the required logic levels. The timer-on bit, which is  
bit 4 of the Timer Control Register and known as TnON, provides the basic on/off control of the  
respective timer. Setting the bit high allows the counter to run, clearing the bit stops the counter. Bits  
0~2 of the Timer Control Register determine the division ratio of the input clock prescaler. The  
prescaler bit settings have no effect if an external clock source is used. If the timer is in the event count  
or pulse width capture mode, the active transition edge level type is selected by the logic level of bit 3  
of the Timer Control Register which is known as TnEG. The TnS bit selects the internal clock source if  
used.  
TMR0C Register  
Bit  
Name  
R/W  
7
T0M1  
R/W  
0
6
T0M0  
R/W  
0
5
4
T0ON  
R/W  
0
3
T0EG  
R/W  
1
2
T0PSC2  
R/W  
0
1
T0PSC1  
R/W  
0
0
T0PSC0  
R/W  
0
T0S  
R/W  
0
POR  
Bit 7,6  
T0M1, T0M0: Timer0 operation mode selection  
00: no mode available  
01: event counter mode  
10: timer mode  
11: pulse width capture mode  
Bit 5  
T0S: timer clock source  
0: fSYS  
1: LXT oscillator  
T0S selects the clock source for fTP which is provided for Timer 0, the Time-Base and  
the PWM. If the PWM is enabled, then fSYS will be selected, overriding the T0S selection.  
Bit 4  
Bit 3  
T0ON: Timer/event counter counting enable  
0: disable  
1: enable  
T0EG:  
Event counter active edge selection  
0: count on raising edge  
1: count on falling edge  
Pulse Width Capture active edge selection  
0: start counting on falling edge, stop on rasing edge  
1: start counting on raising edge, stop on falling edge  
Bit 2~0  
T0PSC2, T0PSC1, T0PSC0: Timer prescaler rate selection  
Timer internal clock=  
000: fTP  
001: fTP/2  
010: fTP/4  
011: fTP/8  
100: fTP/16  
101: fTP/32  
110: fTP/64  
111: fTP/128  
Rev. 1.00  
47  
January 12, 2011  
 复制成功!