| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
SH89F52P/044PR bảng dữ liệu(PDF) 42 Page - SINOWEALTH Electronic Ltd |
|
|
|||||||||||||||||||||||||||||
SH89F52P/044PR bảng dữ liệu(HTML) 42 Page - SINOWEALTH Electronic Ltd |
|
42 / 105 page ![]() SH88F516(SH88F54/SH89F52) 42 Mode3: Two 8-bit Counter/Timers (Timer0 Only) In Mode3, Timer0 is configured as two separate 8-bit counter/timers: TH0 and TL0. TL0 is controlled by using the Timer0 control/status bits in TCON and TMOD: TR0, C/T0 ——— , GATE0 and TF0. TL0 can use either the system clock or 32.768kHz or an external input signal as its clock source. The TH0 is restricted as timer function, system clock is clock source. TH0 is enabled by using the Timer control bit TRx. The overflow flag TF1 will be set to control Timer interrupt when Timer overflows. When Timer0 works in Mode3, Timer1 can work in Mode0/1/2, but it can not set the TF1 flag and generate an interrupt.The overflow of Timer1 can be used to generatr Baud-Rate of serial ports for EUART.TH1 and TL1 can be used as Timer function only.System clock provides clock source.GATE1 bit is unvalid. And the pull high resistor of T1 input pin is also disabled. Timer1 run control is handled through its mode settings, because TR1 is used by Timer0. When the Timer1 is in Mode0, 1, or 2, Timer1 is enable. When the Timer1 is in Mode3, Timer1 is disable. When as Timer, system clock or 32.768kHz can be used as clock source of Timer 0 by configuring TCLKS0 bit in TCON1 register. TCLKS0 is valid when selecting 32.768kHz crystal oscillator in code option. TL0 (8bits) TF0 Overflow + & C/T0 The Block Diagram of mode3 of Timer0 TH0 (8bits) TF1 Overflow Overflow Flag Overflow Flag Interrupt Request Interrupt Request 0:Switch Off 1:Switch On 0:Switch Off 1:Switch On T0 GATE0 TR0 TR1 =0 =1 System Clock 32.768kHz TCLKS0 System Clock 32.768kHz TCLKS1 INT0 Register Table 8.22 Timer/Counter x Control Register (x = 0, 1) 88H Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 TCON TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0 R/W R/W R/W R/W R/W R/W R/W R/W R/W Reset Value (POR/WDT/LVR/PIN) 0 0 0 0 0 0 0 0 Bit Number Bit Mnemonic Description 7, 5 TFx x = 0, 1 Timer x overflow flag 0: Timer x no overflow, can be cleared by software 1: Timer x overflow, set by hardware; set by software will cause a timer interrupt 6, 4 TRx x = 0, 1 Timer x start, stop control bits 0: Stop timer x 1: Start timer x 3, 1 IEx x = 0, 1 External interrupt x request flag 2, 0 ITx x = 0, 1 External interrupt x trigger mode select bits |
|
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 |