Electronic Components Datasheet Search
  Indian  ▼
ALLDATASHEET.IN

X  

SH89F52P/044PR Datasheet(PDF) 40 Page - SINOWEALTH Electronic Ltd

Part # SH89F52P/044PR
Description  8051 Microcontroller with 10bit ADC
PDF  105 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SINOWEALTH [SINOWEALTH Electronic Ltd]
Direct Link  https://en.sinowealth.com
Logo SINOWEALTH - SINOWEALTH Electronic Ltd

SH89F52P/044PR Datasheet(HTML) 40 Page - SINOWEALTH Electronic Ltd

Back Button SH89F52P/044PR Datasheet HTML 36Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 37Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 38Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 39Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 40Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 41Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 42Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 43Page - SINOWEALTH Electronic Ltd SH89F52P/044PR Datasheet HTML 44Page - SINOWEALTH Electronic Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 40 / 105 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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