Electronic Components Datasheet Search
  English  ▼

X  

STC89LE53RC Datasheet(PDF) 128 Page - List of Unclassifed Manufacturers

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

STC89LE53RC Datasheet(HTML) 128 Page - List of Unclassifed Manufacturers

Back Button STC89LE53RC Datasheet HTML 124Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 125Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 126Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 127Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 128Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 129Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 130Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 131Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 132Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 128 / 149 page
background image
宏晶科技:www.MCU-Memory.com   Mobile:13922805190(姚永平)   Tel:0755-82948409    Fax: 0755-82944243
宏晶科技:专业单片机 / 存储器供应商   www.MCU-Memory.com   STC12C5410AD 系列 1T 8051 单片机中文指南
128
    ORG   000BH                     ;定时器 0 中断服务程序入口
    AJMP  timer0_Routine
;------------------------------------------------------------------------------
    ORG   002BH                     ;ADC_SPI 中断服务程序入口
    AJMP  ADC_SPI_Interrupt_Routine
;------------------------------------------------------------------------------
    ORG   0080H
MAIN:
    CLR   LED_MCU_START             ;点亮 MCU 开始工作指示灯
    MOV   SP, #7FH
    ACALL Initial_System            ;系统初始化
if MASTER_SLAVE == 0
        CLR   Slave1_SS             ;选择从单片机 #1 为当前的从单片机
Check_RS232:
        JNB   RI, Master_Check_SPI  ;判 RS-232 串口中收到数据否
        ;主单片机 RS-232 串口已收到新的数据
        ACALL Get_Byte_From_RS232   ;主单片机将 RS-232 串口中收到的数据送到累加器 A
;        ACALL RS232_Send_Byte      ;调试用, 将累加器 A 中的数据发送到 PC 机
;        SJMP  Check_RS232          ;调试用
        ACALL SPI_Send_Byte         ;主单片机将累加器 A 中的数据发送到从机 SPI
        SJMP  Check_RS232
Master_Check_SPI:
        JNB   SPI_Receive, Check_RS232 ;判收到从 SPI 发回的数据否
        ;主单片机 SPI 端口已收到新的数据
        MOV   A, SPI_buffer         ;将 " 从 SPI 发回的数据 " 送到累加器 A
        CLR   SPI_Receive           ;清 0 主单片机 SPI 端口收到数据标志位
        ACALL RS232_Send_Byte       ;将累加器 A 中的数据发送到 PC 机
        SJMP  Check_RS232
else
Slave_Check_SPI:
        JNB   SPI_Receive, Slave_Check_SPI ;判收到主 SPI 发回的数据否
        ;从单片机 SPI 端口已收到新的数据
        MOV   A, SPI_buffer         ;取 " 主单片机 SPI 端口发的数据 "
        CLR   SPI_Receive           ;清 0 从单片机 SPI 端口收到数据标志位
    if MASTER_SLAVE == 2
        ADD  A, #1                 ;如果是从单片机 #2,就把收到的数据加 1
    endif
        MOV   SPDAT, A              ;将收到数据送 SPDAT, 准备下一次通讯时发回
        SJMP  Slave_Check_SPI
endif
;------------------------------------------------------------------------------
if MASTER_SLAVE == 0
timer0_Routine:
        PUSH  PSW                   ;保存断点现场
        PUSH  ACC



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


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