用CPU配置FPGA(用C语言或8051汇编语言)
时间:2019-12-25
大小:8.85KB
阅读数:179
查看他发布的资源
资料介绍
用CPU配置FPGA(用C语言或8051汇编语言)广东省深圳市深南大道创展中心 1007 房间骏龙科技有限公司宋士权
Altera 中国区代理 -----骏龙科技有限公司 Field Application Engineer: sun song 收集整理
TEL: 13823390270 ; E-mail:suns@cytecht.com
8051 汇编语言 :
;How fast is the DCLK can go?
;in the range of 4 ~ 6 MHz
base_address equ 0 ; if define 00000h, this program compile ROM image.
; Internal RAM usage start at 20h
; address 20h-2fh are bit addressable area
; address 30h-7fh are byte addressable area
; P1.0 - DCLK (output)("0")
; P1.1 - CONF_DONE (input) ("1")
; P1.2 - nCONFIG (output) ("0")
; P1.3 - nSTATUS (input) ("1")
; P1.4 - DATA0 (output) ("0")
; P1.5 - Done (output) ("0")
; PROGRAM SEGMENT DEFINE
org 0h
power_up: ljmp start
org 30h
; INITIALIZE THE 82c31 INTERNAL REGISTER
start: clr psw.4 ; select bank 0 (00-07h)
clr psw.3
clr ea ; disable the global interrupt
mov sp,#50h ; set……
版权说明:本资料由用户提供并上传,仅用于学习交流;若内容存在侵权,请进行举报,或
联系我们 删除。