英語翻譯以下爲某單片機說明書的一部分,請將其翻譯成中文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.

解答:

定時器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種過渡

添加新評論

暱稱
郵箱
網站