Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

SH79F166AP/044PR Datasheet(PDF) 39 Page - SINOWEALTH Electronic Ltd

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

SH79F166AP/044PR Datasheet(HTML) 39 Page - SINOWEALTH Electronic Ltd

Back Button SH79F166AP/044PR Datasheet HTML 35Page - SINOWEALTH Electronic Ltd SH79F166AP/044PR Datasheet HTML 36Page - SINOWEALTH Electronic Ltd SH79F166AP/044PR Datasheet HTML 37Page - SINOWEALTH Electronic Ltd SH79F166AP/044PR Datasheet HTML 38Page - SINOWEALTH Electronic Ltd SH79F166AP/044PR Datasheet HTML 39Page - SINOWEALTH Electronic Ltd SH79F166AP/044PR Datasheet HTML 40Page - SINOWEALTH Electronic Ltd SH79F166AP/044PR Datasheet HTML 41Page - SINOWEALTH Electronic Ltd SH79F166AP/044PR Datasheet HTML 42Page - SINOWEALTH Electronic Ltd SH79F166AP/044PR Datasheet HTML 43Page - SINOWEALTH Electronic Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 39 / 113 page
background image
SH79F166A
39
7.8 Timer
7.8.1 Features
 The SH79F166A has four timers (Timer2, 3, 4, 5)
 Timer2 is compatible with the standard 8052 and has up or down counting and programmable clock output function
 Timer3 is a 16-bit auto-reload timer and can operate even in Power-Down mode
 Timer4 is a 16-bit auto-reload timer and can be selected as a baud-rate generator
 Timer5 is a 16-bit auto-reload timer
7.8.2 Timer2
The Timer 2 is implemented as a 16-bit register accessed as two cascaded data registers: TH2 and TL2. It is controlled by the
register T2CON and T2MOD. The Timer2 interrupt can be enabled by setting the ET2 bit in the IEN0 register. (Refer to Interrupt
Section for details)
C/T2
———
selects system clock (timer operation) or external pin T2 (counter operation) as the timer clock input. Setting TR2 allows
Timer 2/Counter 2 Data Register to increment by the selected input.
Timer2 Modes
Timer2 has 4 operating modes: Capture/Reload, Auto-reload mode with up or down counter, Baud Rate Generator and
Programmable clock-output. These modes are selected by the combination of RCLK, TCLK and CP/RL2.
Table 7.25 Timer2 Mode select
C/T2
———
T2OE
DCEN
TR2
CP/RL2 RCLK
TCLK
Mode
X
0
X
1
1
0
0
0
16 bit capture
X
0
0
1
0
0
0
1
16 bit auto-reload timer
X
0
1
1
0
0
0
X
0
X
1
X
1
X
2
Baud-Rate generator
X
1
0
1
X
1
X
0
0
3
Programmable clock-output only
1
X
3
Programmable clock-output, with Baud-rate
generator
X
1
1
1
X
1
X
X
X
Not recommending
X
X
X
0
X
X
X
X
Timer2 stop, the T2EX path still enable
Mode0: 16 bit Capture
In the capture mode, two options are selected by bit EXEN2 in T2CON.
If EXEN2 = 0, Timer2 is a 16-bit timer or counter which will set TF2 on overflow to generate an interrupt if ET2 is enabled.
If EXEN2 = 1, Timer2 performs the same operation, but a 1-to-0 transition at external input T2EX also causes the current value
in TH2 and TL2 to be captured into RCAP2H and RCAP2L respectively, In addition, a 1-to-0 transition at T2EX causes bit EXF2
in T2CON to be set. The EXF2 bit, like TF2, can also generate an interrupt if ET2 is enabled.
0:Switch Off
1:Switch On
Block Diagram of 16 bit Capcture mode (Mode 0) of Timer2
Overflow flag
RCAP2H
RCAP2L
TL2
TH2
TF2
EXF2
+
&
0:Switch Off
1:Switch On
External falling
edge flag
Increment Mode
C/T2
=0
=1
Interrupt
Request
System Clock
TR2
EXEN2
CP / RL2
T2EX
T2



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