Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

STC89LE53RC Datasheet(PDF) 120 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) 120 Page - List of Unclassifed Manufacturers

Back Button STC89LE53RC Datasheet HTML 116Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 117Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 118Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 119Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 120Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 121Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 122Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 123Page - List of Unclassifed Manufacturers STC89LE53RC Datasheet HTML 124Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 120 / 149 page
background image
宏晶科技:www.MCU-Memory.com   Mobile:13922805190(姚永平)   Tel:0755-82948409    Fax: 0755-82944243
宏晶科技:专业单片机 / 存储器供应商   www.MCU-Memory.com   STC12C5410AD 系列 1T 8051 单片机中文指南
120
;定义 SPI  特殊功能寄存器,  详细说明见本程序的后部或 STC 12C5410AD 中文指南
SPCTL   EQU 85H
SPSTAT  EQU 84H
SPDAT   EQU 86H
EADC_SPI EQU IE.5
;------------------------------------------------------------------------------
;定义 SPI 脚
SCLK    EQU P1.7
MISO    EQU P1.6
MOSI    EQU P1.5
SS      EQU P1.4
;------------------------------------------------------------------------------
;定义单片机管脚
LED_MCU_START       EQU P3.4
;------------------------------------------------------------------------------
;定义变量
Flags       EQU 20H
SPI_Receive EQU Flags.0             ;SPI 端口收到数据标志位
SPI_buffer  EQU 30H                 ;该变量用于保存 SPI 端口收到的数据
;------------------------------------------------------------------------------
    ORG   0000H
    LJMP  MAIN
;------------------------------------------------------------------------------
    ORG   002BH                     ;ADC_SPI 中断服务程序入口
    LJMP  ADC_SPI_Interrupt_Routine
;------------------------------------------------------------------------------
    ORG   0080H
MAIN:
    CLR   LED_MCU_START             ;点亮 MCU 开始工作指示灯
    MOV   SP, #7FH
    ACALL Init_System               ;系统初始化
if MASTER
Check_RS232:
        JNB   RI, Master_Check_SPI  ;判 RS-232 串口中收到数据否
        ;主单片机 RS-232 串口已收到新的数据
        ACALL Get_Byte_From_RS232   ;主单片机将 RS-232 串口中收到的数据送到累加器 A
        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



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