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

X  

STC89LE52RC 数据表(PDF) 107 Page - STCmicro Technology Co,.Ltd

部件名 STC89LE52RC
功能描述  Enhanced 80C51 Central Processing Unit ,6T or 12T per machine cycle
PDF  165 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STC [STCmicro Technology Co,.Ltd]
网页  http://www.stcmicro.com/
标志 STC - STCmicro Technology Co,.Ltd

STC89LE52RC 数据表(HTML) 107 Page - STCmicro Technology Co,.Ltd

Back Button STC89LE52RC Datasheet HTML 103Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 104Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 105Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 106Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 107Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 108Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 109Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 110Page - STCmicro Technology Co,.Ltd STC89LE52RC Datasheet HTML 111Page - STCmicro Technology Co,.Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 107 / 165 page
background image
The following program is an assembly language code that domestrates Timer 2 programable clock/pulse out
function on P1.0.
;/*------------------------------------------------------------------------------------------------------------*/
;/* --- STC MCU International Limited ----------------------------------------------------------------*/
;/* --- STC 89xx Series MCU Timer 2 in programmable clock/pulse output mode,on P1.0------------*/
;/* If you want to use the program or the program referenced in the */
;/* article, please specify in which data and procedures from STC */
;/*--------------------------------------------------------------------------------------------------------------*/
;Declare STC89xx series MCU SFRs
;SFRs associated with Timer 2 and RS232 port
T2CON
EQU
0C8H
T2MOD
EQU
0C9H
TR2
EQU
T2CON.2
;TR2 is the second bit in SFR—T2CON
RCAP2L
EQU
0CAH
RCAP2H
EQU
0CBH
TH2
EQU
0CDH
TL2
EQU
0CCH
;Timer/Counter 2 control register T2CON
;
B7
B6
B5
B4
B3
B2
B1
B0
Reset Value
;bit-address
CF
CE
CD
CC
CB
CA
C9
C8
;T2CON(C8H)
TF2
EXF2
RCLK
TCLK
EXEN2 TR2
C//T2
CP//RL2
00
;T2MOD Register
;
B7
B6
B5
B4
B3
B2
B1
B0
Reset Value
;T2CON(C9H)
-
-
-
-
-
-
T2OE
DCEN
xxxxxx00B
;---------------------------------------------------------------------------------------------------------------
ORG
0000H
AJMP
MAIN
;---------------------------------------------------------------------------------------------------------------
ORG
0100H
MAIN:
MOV
SP,
#0E0H
MOV
P1,
#0FFH
;turn off P1 port LED
ACALL SET_T2_OUT_MODE
;Set Timer 2 as high-speed pulse output mode
MOV
DPTR,
#0FFF0H
;Set Timer pulse output velocity
ACALL SET_T2_OUT_SPEED
WAIT1:
SJMP
WAIT1
ACALL DELAY
ACALL PAUSE
;Pause in order to observation
MOV
DPTR,
#0FFE0H
;Set Timer pulse output velocity,lower 1/2 than last
ACALL SET_T2_OUT_SPEED
ACALL DELAY
ACALL PAUSE
;Pause in order to observation
MOV
DPTR
#0FFD0H
;Set Timer pulse output velocity,lower 1/3 than last
107



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