| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
SH88F516P/044PR bảng dữ liệu(PDF) 40 Page - SINOWEALTH Electronic Ltd |
|
|
|||||||||||||||||||||||||||||
SH88F516P/044PR bảng dữ liệu(HTML) 40 Page - SINOWEALTH Electronic Ltd |
|
40 / 105 page ![]() SH88F516(SH88F54/SH89F52) 40 8.8 Timer 8.8.1 Feature The SH88F516 has three timers (Timer0, 1, 2) Timer0 is compatible with the standard 8051 Timer1 is compatible with the standard 8051 Timer2 is compatible with the standard 8052 and has up or down counting and programmable clock output function Timer0/1 add 32.768kHz as the clock source function option 8.8.2 Timer0 & Timer1 Each Timer is implemented as a 16-bit register accessed as two cascaded Data Registers: THx & TLx (x = 0, 1). They are controlled by the register TCON and TMOD. The Timer 0 & Timer 1 interrupts can be enabled by setting the ET0 & ET1 bit in the IEN0 register (Refer to Interrupt Section for details). Timer x Mode(x = 0,1) Both Timers operate in one of four primary modes selected by the Mode Select bits Mx1-Mx0 (x = 0, 1) in the Counter/Timer Mode register (TMOD). Mode0: 13-bit Counter/Timer Timer x operate as 13-bit counter/timers in Mode 0. The THx register holds the high eight bits of the 13-bit counter/timer, TLx holds the five low bits(TLx.4 - TLx.0). The three upper bits(TLx.7- TLx.5) of TLx are indeterminate and should be ignored when reading. As the 13-bit timer register increments and overflows, the timer overflow flag TFx is set and an interrupt will occur if Timer interrupts is enabled. The C/ Tx ——— bit selects the counter/timer's clock source. If C/ Tx ——— = 1, high-to-low transitions at the Timer input pin (Tx) will increase the timer/Counter Data register. Else if C/ Tx ——— = 0, selects the system clock to increase the timer/Counter Data register. Setting the TRx bit enables the timer when either GATEx = 0, or GATEx = 1 and the input signal INTx ———— is active. Setting GATEx to ‘1’ allows the timer to be controlled by the external input signal INTx ———— , facilitating positive pulse width in INTx ———— measurements. Setting TRx does not force the timer to reset, This means that if TRx is set, the timer register will count from the old value that was last stopped by clearing TRx. So the timer registers should be loaded with the desired initial value before the timer is enabled. When as Timer, system clock or 32.768kHz can be used as clock source of Timer x (x = 0, 1) by configuring TCLKSx (x = 0, 1) bit in TCON1 register. TCLKSx (x = 0, 1) is valid when selecting 32.768kHz crystal oscillator in code option. TLx (5bits) THx (8bits) TFx Overflow GATEx INTx TRx C/Tx =0 =1 0:Switch Off 1:Switch On Tx The Block Diagram of mode0 of Timerx ( x=0,1 ) Overflow Flag + & System Clock 32.768kHz TCLKSx Interrupt Request |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |