英语翻译以下为某单片机说明书的一部分,请将其翻译成中文Timer 2 is a 16-bit Timer/Counter

英语翻译
以下为某单片机说明书的一部分,请将其翻译成中文
Timer 2 is a 16-bit Timer/Counter that can operate as either a timer or an event counter.The type of operation is selected by bit C/T2 in the SFR T2CON (shown in Table 2).Timer 2 has three operating modes:capture,auto-reload (up or down counting),and baud rate generator.The modes are selected by bits in T2CON,as shown in Table 3.
Timer 2 consists of two 8-bit registers,TH2 and TL2.In the Timer function,the TL2 register is incremented every machine cycle.Since a machine cycle consists of 12 oscillator periods,the count rate is 1/12 of the oscillator frequency.
In the Counter function,the register is incremented in response to a l-to-0 transition at its corresponding external input pin,T2.In this function,the external input is sampled during S5P2 of every machine cycle.When the samples show a high in one cycle and a low in the next cycle,the count is incremented.The new count value appears in the register during S3P1 of the cycle following the one in which the transition was detected.Since two machine cycles (24 oscillator periods) are required to recognize a 1-to-0 transition,the maximum count rate is 1/24 of the oscillator frequency.To ensure that a given level is sampled at least once before it changes,the level should be held for at least one full machine cycle.
城市猎人唐 1年前 已收到1个回答 举报

维K 幼苗

共回答了14个问题采纳率:100% 举报

定时器2一个16-bit定时器/计数器,能经营由于二者之一一个定时器或一个事件计数器.操作方式被选择附近的的点滴c源文件/t2在瑞士法郎t2con(领进表2).定时器2有三操作模式:捕获,自动重载(向上或向下计数),波特率发生器.模式被选择被点滴t2con年,像领进表3
定时器2由二组成8-bit注册,th2,tl2.在计时功能,tl2注册被增量每个机器周期.自从一个机器周期由12组成振荡器期间,计数率1/12的振荡频率
在相反的功能,注册被增量对一个做出反应l-to-0种过渡在它的对应外部输入针,t2.在这个功能,外部输入被抽样中s5p2的每个机器周期.当命令输出一个极大合为一体循环,一个轾在未来周期
伯爵被增量.新的计数值出现在注册中s3p1的周期跟踪一个,过渡被检测.自从二台机周期(24振荡器期间)被要求同意一个发言1-to-0种过渡

1年前

9
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.014 s. - webmaster@yulucn.com