Electronic Components Datasheet Search
  English  ▼

X  

STC12C0154 Datasheet(PDF) 23 Page - List of Unclassifed Manufacturers

Part # STC12C0154
Description  STC12C2052AD
PDF  71 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ETC1 [List of Unclassifed Manufacturers]
Direct Link  
Logo ETC1 - List of Unclassifed Manufacturers

STC12C0154 Datasheet(HTML) 23 Page - List of Unclassifed Manufacturers

Back Button STC12C0154 Datasheet HTML 19Page - List of Unclassifed Manufacturers STC12C0154 Datasheet HTML 20Page - List of Unclassifed Manufacturers STC12C0154 Datasheet HTML 21Page - List of Unclassifed Manufacturers STC12C0154 Datasheet HTML 22Page - List of Unclassifed Manufacturers STC12C0154 Datasheet HTML 23Page - List of Unclassifed Manufacturers STC12C0154 Datasheet HTML 24Page - List of Unclassifed Manufacturers STC12C0154 Datasheet HTML 25Page - List of Unclassifed Manufacturers STC12C0154 Datasheet HTML 26Page - List of Unclassifed Manufacturers STC12C0154 Datasheet HTML 27Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 71 page
background image
宏晶科技:www.MCU-Memory.com   Mobile:13922805190(姚永平)   Tel:0755-82948409    Fax: 0755-82944243
宏晶科技:专业单片机 / 存储器供应商   www.MCU-Memory.com   STC12C2052AD 系列 1T 8051 单片机中文指南
23
    MOV   P1, #0FFH                  ;将 P1 口置高, 为 A/D 转换作准备
    ORL   ADC_CONTR, #80H            ;1000,0000 打开 A/D 转换电源
    MOV   P1M0, #1EH                 ;0001,1110, 用作 A/D 转换的 P1.x 口, 先设为开漏
    MOV   P1M0, #1EH                 ;0001,1110, P1.2 -- P1.5 先设为开漏
                                     ;断开内部上拉电阻
    MOV   A, #20H
    ACALL delay
    RET
;---------------------------------------------------------------------
set_P1_IO_port:                      ;P1 口设置为普通 I/O 模式
    MOV   P1M0, #00H
    MOV   P1M0, #00H
    ANL   ADC_CONTR, #7FH            ;0111,1111 关闭 A/D 转换电源
    RET
;---------------------------------------------------------------------
initiate_RS232:                      ;串口初始化
    CLR   ES                         ;禁止串口中断
    MOV   TMOD, #20H                 ;设置 T1 为波特率发生器
    MOV   SCON, #50H                 ;0101,0000 8 位数据位, 无奇偶校验
    MOV   TH1, #0FBH                 ;18.432MHz 晶振, 波特率 = 9600
    MOV   TL1, #0FBH
    CLR   RI
    SETB  TR1
    SETB  ES                         ;允许串口中断
    RET
;---------------------------------------------------------------------
Send_Byte:                           ;发送一个字节
    CLR   TI                         ;清零串口发送中断标志
    MOV   SBUF, A
Send_Byte_wait:                      ;等待发送完毕
    JNB   TI, Send_Byte_wait
    CLR   TI                         ;清零串口发送中断标志
    RET
;---------------------------------------------------------------------
delay:                               ;延时
    PUSH  02
    PUSH  03
    PUSH  04



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



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