Electronic Components Datasheet Search
  English  ▼

Delete All
ON OFF
ALLDATASHEET.COM

X  

Preview PDF Download HTML

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

Back Button STC12C2052 Datasheet HTML 32Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 33Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 34Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 35Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 36Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 37Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 38Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 39Page - List of Unclassifed Manufacturers STC12C2052 Datasheet HTML 40Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 36 / 71 page
background image
宏晶科技:www.MCU-Memory.com   Mobile:13922805190(姚永平)   Tel:0755-82948409    Fax: 0755-82944243
宏晶科技:专业单片机 / 存储器供应商   www.MCU-Memory.com   STC12C2052AD 系列 1T 8051 单片机中文指南
36
DATA_IS_DEBUG_DATA:
    MOV
 P1,  #01111111B  ; (DATA_FLASH_START_ADDRESS) = #5A, 亮 P1.7
    LCALL  Delay
;延时
    MOV
 A, 40H   ;值从 40H 单元送 ACC
    CPL    A
    MOV    P1,A    ;数据是对的,送 P1 显示
WAIT1:
    SJMP    WAIT1   ;数据是对的,送 P1 显示,并在此停止
DATA_NOT_EQU_DEBUG_DATA:
    MOV    P1,  #11110111B ;(DATA_FLASH_START_ADDRESS) != #5A, 亮 P1.3
LCALL Delay
;延时
    MOV
 A,   40H  ;值从 40H 单元送 ACC
    CPL    A
    MOV    P1,  A    ;数据不对,送 P1 显示
    LCALL  Delay
;延时
    MOV    DPTR, #DATA_FLASH_START_ADDRESS
    ACALL  sector_erase  ;擦除扇区, (DATA_FLASH_START_ADDRESS) != #DEBUG_DATA
    MOV    DPTR, #DATA_FLASH_START_ADDRESS
    MOV    A,    #DEBUG_DATA           ;写入 flash 的数据为 DEBUG_DATA
    ACALL  byte_program                ;字节编程
    MOV    P1,   #11011111B            ;先亮 P1.3 ,再亮 P1.5
WAIT2:
    SJMP   WAIT2       ;字节编程后在此停止
;************************************************
;------------------------------------------------
;读一字节
;调用前需打开 IAP 功能
;入口:DPTR = 字节地址
;返回:A = 读出字节
byte_read:
    MOV     ISP_CONTR,  #ENABLE_ISP     ;打开 IAP 功能, 设置 Flash 操作等待时间
    MOV     ISP_CMD,    #01             ;Select Read AP Mode
    MOV     ISP_ADDRH,  DPH             ;Fill page address in ISP_ADDRH & ISP_ADDRL
    MOV     ISP_ADDRL,  DPL
    CLR      EA
    MOV     ISP_TRIG,   #46H            ;Trigger ISP processing
    MOV     ISP_TRIG,   #0B9H           ;Trigger ISP processing
    NOP
    MOV     A,   ISP_DATA               ;数据在 ISP_DATA
    SETB    EA
;Now in processing.(CPU will halt here before completing)


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