전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AT89LP51 데이터시트(PDF) 46 Page - ATMEL Corporation

부품명 AT89LP51
상세설명  8-bit Microcontroller with 8K Bytes In-System Programmable Flash
PDF  113 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  ATMEL [ATMEL Corporation]
홈페이지  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT89LP51 데이터시트(HTML) 46 Page - ATMEL Corporation

Back Button AT89LP51 Datasheet HTML 42Page - ATMEL Corporation AT89LP51 Datasheet HTML 43Page - ATMEL Corporation AT89LP51 Datasheet HTML 44Page - ATMEL Corporation AT89LP51 Datasheet HTML 45Page - ATMEL Corporation AT89LP51 Datasheet HTML 46Page - ATMEL Corporation AT89LP51 Datasheet HTML 47Page - ATMEL Corporation AT89LP51 Datasheet HTML 48Page - ATMEL Corporation AT89LP51 Datasheet HTML 49Page - ATMEL Corporation AT89LP51 Datasheet HTML 50Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 46 / 113 page
background image
46
3709B–MICRO–12/10
AT89LP51/52 - Preliminary
11.1
Mode 0 – 13-bit Timer/Counter
Both Timers in Mode 0 are 8-bit Counters with a divide-by-32 prescaler. Figure 11-1 shows the
Mode 0 operation as it applies to Timer 1. As the count rolls over from all “1”s to all “0”s, it sets
the Timer interrupt flag TF1. The counter input is enabled to the Timer when TR1 = 1 and either
GATE1 = 0 or INT1 =1. Setting GATE1 = 1 allows the Timer to be controlled by external input
INT1, to facilitate pulse width measurements. TR1 is a control bit in the Special Function Regis-
ter TCON. GATE1 is in TMOD. The 13-bit register consists of all 8 bits of TH1 and the lower 5
bits of TL1. The upper 3 bits of TL1 are indeterminate and should be ignored. Setting the run flag
(TR1) does not clear the registers.
Figure 11-1. Timer/Counter 1 Mode 0: 13-bit Counter
Mode 0 operation is the same for Timer 0 as for Timer 1, except that TR0, TF0, GATE0 and
INT0 replace the corresponding Timer 1 signals in Figure 11-1. There are two different C/T bits,
one for Timer 1 (TMOD.6) and one for Timer 0 (TMOD.2).
11.2
Mode 1 – 16-bit Timer/Counter
In Mode 1 the Timers are configured for 16-bit operation. The Timer register is run with all 16 bits
and the clock is applied to the combined high and low timer registers (TH1/TL1). As clock pulses
are received, the timer counts up: 0000H, 0001H, 0002H, etc. An overflow occurs on the
FFFFH-to-0000H transition, upon which the overflow flag bit in TCON is set. See Figure 11-2.
Mode 1 operation is the same for Timer/Counter 0.
Figure 11-2. Timer/Counter 1 Mode 1: 16-bit Counter
Mode 0:
Time-out Period
8192
System Frequency
--------------------------------------------------
TPS
1
+
()
×
=
OSC
T1 Pin
TR1
GATE1
INT1 Pin
TL1
(5 Bits)
Control
Interrupt
C/T = 0
C/T = 1
TH1
(8 Bits)
TF1
÷CDV
÷TPS
Mode 1:
Time-out Period
65536
System Frequency
--------------------------------------------------
TPS
1
+
()
×
=
OSC
T1 Pin
TR1
GATE1
INT1 Pin
TL1
(8 Bits)
Control
Interrupt
C/T = 0
C/T =1
TH1
(8 Bits)
TF1
÷CDV
÷TPS



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


링크 URL



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