Electronic Components Datasheet Search
  English  ▼

Delete All
ON OFF
ALLDATASHEET.COM

X  

Preview PDF Download HTML

STC12C2052 Datasheet(PDF) 22 Page - List of Unclassifed Manufacturers

Part No. STC12C2052
Description  STC12C2052AD
Download  71 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ETC1 [List of Unclassifed Manufacturers]
Direct Link  
Logo ETC1 - List of Unclassifed Manufacturers

STC12C2052 Datasheet(HTML) 22 Page - List of Unclassifed Manufacturers

Back Button STC12C2052 Datasheet HTML 18Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 19Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 20Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 21Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 22Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 23Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 24Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 25Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 26Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 22 / 71 page
background image
宏晶科技:www.MCU-Memory.com   Mobile:13922805190(姚永平)   Tel:0755-82948409    Fax: 0755-82944243
宏晶科技:专业单片机 / 存储器供应商   www.MCU-Memory.com   STC12C2052AD 系列 1T 8051 单片机中文指南
22
    CLR   A
    MOV   R7, A                      ;R7 用于检测 A/D 转换是否结束
    MOV   ADC_DATA, A                ;清 A/D 转换结果寄存器
    ORL   ADC_CONTR, #08H            ;0000,1000 令 ADCS = 1, 启动 A/D 转换,
wait_AD_finishe:
    MOV   A, #10H                    ;0001,0000 测试 A/D 转换结束否
    ANL   A, ADC_CONTR
    JZ    wait_AD_finishe
    ANL   ADC_CONTR, #0E7H           ;1110,0111 清 ADC_FLAG 位, 停止 A/D 转换
    MOV   A, AD_channel_temp         ;取回当前通道号
    DEC   A
    ADD   A, #AD_channel_1_result
    MOV   R0, A
    MOV   A, ADC_DATA                ;保存、返回 A/D 转换结果
    MOV   @R0, A
    RET
;---------------------------------------------------------------------
display:
    MOV   R2, display_AD_channel_ID  ;用 P3.2 -- P3.5 显示第几通道
    INC   R2
    SETB  C
    CLR   A
display_loop:
    RLC   A
    CLR   C
    DJNZ  R2, display_loop
    RL    A
    RL    A
    CPL   A
    ORL   P3, #3CH                   ;0011,1100 使 P3.2 -- P3.5 LED 熄灭
    ANL   P3, A
    MOV   A, display_AD_channel_ID   ;取相应通道的转换结果
    ADD   A, #AD_channel_1_result
    MOV   R0, A
    MOV   A, @R0
    CPL   A
    MOV   P1, A                      ;显示转换结果
    RET
;---------------------------------------------------------------------
set_P1_ADC_channels:                 ;将 P1.2 -- P1.5 设置为适宜 A/D 转换的模式


Similar Part No. - STC12C2052

ManufacturerPart No.DatasheetDescription
List of Unclassifed Manufacturers
List of Unclassifed Man...
STC12C5402 ETC1-STC12C5402 Datasheet
1Mb / 149P
   STC12C5410AD
STC12C5402AD ETC1-STC12C5402AD Datasheet
1Mb / 149P
   STC12C5410AD
STC12C5404 ETC1-STC12C5404 Datasheet
1Mb / 149P
   STC12C5410AD
STC12C5404AD ETC1-STC12C5404AD Datasheet
1Mb / 149P
   STC12C5410AD
STC12C5406 ETC1-STC12C5406 Datasheet
1Mb / 149P
   STC12C5410AD
More results


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 


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   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