数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

ADE5166 数据表(PDF) 106 Page - Analog Devices

部件名 ADE5166
功能描述  Single-Phase Energy Measurement IC with 8052 MCU, RTC, and LCD Driver
PDF  148 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  AD [Analog Devices]
网页  http://www.analog.com
标志 AD - Analog Devices

ADE5166 数据表(HTML) 106 Page - Analog Devices

Back Button ADE5166 Datasheet HTML 102Page - Analog Devices ADE5166 Datasheet HTML 103Page - Analog Devices ADE5166 Datasheet HTML 104Page - Analog Devices ADE5166 Datasheet HTML 105Page - Analog Devices ADE5166 Datasheet HTML 106Page - Analog Devices ADE5166 Datasheet HTML 107Page - Analog Devices ADE5166 Datasheet HTML 108Page - Analog Devices ADE5166 Datasheet HTML 109Page - Analog Devices ADE5166 Datasheet HTML 110Page - Analog Devices Next Button
Zoom Inzoom in Zoom Outzoom out
 106 / 148 page
background image
ADE5166/ADE5169
Rev. 0 | Page 106 of 148
TIMERS
Each ADE5166/ADE5169 has three 16-bit timers/counters:
Timer/Counter 0, Timer/Counter 1, and Timer/Counter 2. The
timer/counter hardware is included on-chip to relieve the processor
core of overhead inherent in implementing timer/counter func-
tionality in software. Each timer/counter consists of two 8-bit
registers: THx and TLx (x = 0, 1, or 2). All three timers can be
configured to operate as timers or as event counters.
When functioning as a timer, the TLx SFR is incremented every
machine cycle. Thus, it can be thought of as counting machine
cycles. Because a machine cycle on a single cycle core consists of
one core clock period, the maximum count rate is the core clock
frequency.
When functioning as a counter, the TLx register is incremented
by a 1-to-0 transition at its corresponding external input pin:
T0, T1, or T2. When the samples show a high in one cycle and a
low in the next cycle, the count is incremented. Because it takes
two machine cycles (two core clock periods) to recognize a 1-to-0
transition, the maximum count rate is half the core clock frequency.
There are no restrictions on the duty cycle of the external input
signal, but to ensure that a given level is sampled at least once
before it changes, it must be held for a minimum of one full
machine cycle. User configuration and control of all timer
operating modes is achieved via the SFRs listed in Table 111.
Table 111. Timer SFRs
SFR
Address
Bit Addressable
Description
TCON
0x88
Yes
Timer/Counter 0 and Timer/Counter 1 control (see Table 113).
TMOD
0x89
No
Timer/Counter 0 and Timer/Counter 1 mode (see Table 112).
TL0
0x8A
No
Timer 0 low byte (see Table 116).
TL1
0x8B
No
Timer 1 low byte (see Table 118).
TH0
0x8C
No
Timer 0 high byte (see Table 115).
TH1
0x8D
No
Timer 1 high byte (see Table 117).
T2CON
0xC8
Yes
Timer/Counter 2 control (see Table 114).
RCAP2L
0xCA
No
Timer 2 reload/capture low byte (see Table 122).
RCAP2H
0xCB
No
Timer 2 reload/capture high byte (see Table 121).
TL2
0xCC
No
Timer 2 low byte (see Table 120).
TH2
0xCD
No
Timer 2 high byte (see Table 119).
TIMER REGISTERS
Table 112. Timer/Counter 0 and Timer/Counter 1 Mode SFR (TMOD, Address 0x89)
Bit
Mnemonic
Default
Description
7
Gate1
0
Timer 1 gating control. Set by software to enable Timer/Counter 1 only when the INT1 pin is high and the TR1
control bit (Address 0x88[6]) is set. Cleared by software to enable Timer 1 whenever the TR1 control bit is set.
6
C/T1
0
Timer 1 timer or counter select bit. Set by software to select counter operation (input from T1 pin). Cleared
by software to select the timer operation (input from internal system clock).
[5:4]
T1/M1,
T1/M0
00
Timer 1 mode select bits.
T1/M1, T1/M0
Result
00
TH1 (Address 0x8D) operates as an 8-bit timer/counter. TL1 (Address 0x8B) serves as a
5-bit prescaler.
01
16-bit timer/counter. TH1 and TL1 are cascaded; there is no prescaler.
10
8-bit autoreload timer/counter. TH1 holds a value to reload into TL1 each time it overflows.
11
Timer/Counter 1 stopped.
3
Gate0
0
Timer 0 gating control. Set by software to enable Timer/Counter 0 only when the INT0 pin is high and the TR0
control bit (Address 0x88[4]) is set. Cleared by software to enable Timer 0 whenever the TR0 control bit is set
in the Timer/Counter 0 and Timer/Counter 1 control SFR (TCON, Address 0x88).
2
C/T0
0
Timer 0 timer or counter select bit. Set by software to the select counter operation (input from the T0 pin).
Cleared by software to the select timer operation (input from internal system clock).
[1:0]
T0/M1,
T0/M0
00
Timer 0 mode select bits.
T0/M1, T0/M0
Result
00
TH0 operates as an 8-bit timer/counter. TL0 serves as a 5-bit prescaler.
01
16-bit timer/counter. TH0 and TL0 are cascaded; there is no prescaler.
10
8-bit autoreload timer/counter. TH0 holds a value to reload into TL0 each time TL0 overflows.
11
TL0 is an 8-bit timer/counter controlled by the standard Timer 0 control bits. TH0 is an
8-bit timer only, controlled by Timer 1 control bits.



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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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