SST89C58电子盘电路及代码

[05-23 02:47:29]   来源:http://www.88dzw.com  单片机电路图   阅读:8300

文章摘要: nop xrl a, SFDT ; SFDT contains data in flash, these data come from ADC jz skip setb F0 ; set flag F0 (PSW.5) if any discrepancy.skip: mov a, SFAL ; increase the address of flash add a, #1

SST89C58电子盘电路及代码,标签:电路图讲解,电路图练习,http://www.88dzw.com
        nop
        xrl     a, SFDT         ; SFDT contains data  in flash, these data come from ADC
        jz      skip

        setb  F0                         ; set flag F0 (PSW.5) if any discrepancy.

skip:         mov   a,  SFAL              ; increase the address of flash
        add    a,  #1
        mov   SFAL, a
        mov   a,  SFAH
        addc  a,  #0        
        mov   SFAH, a

        djnz  B,  verify
        djnz  R7, verify
            
        anl   SFCF, #0BFh           ; disable IAP
        ret
            
;========================================================================

message:      DB  "This demo program demonstrates how easy to design "
        DB  "SST ATA-Disk Chip into SST FlashFlex51 embedded microcontroller. "
        DB  "After you understand how to use the basic WriteSector and ReadSector "
        DB  "functions, it's easy to try any others."
        DB  "The hardware connection between ADC and MCU is also very simple,"
        DB  "just like you expand any I/O or data memory in your application system. "
        DB  "After power-on, ADC is default to be 16 bit operation as all EIDE "
        DB  "standards, firmware needs enable 8 bit operation before "
        DB  "further write / read operation."
        
        end

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 


Tag:单片机电路图电路图讲解,电路图练习电子电路图 - 单片机电路图