2011年5月5日

ADS中Image$$RO$$Limit的计算

摘要: 程序的源码如下: AREA RWData, DATA, READWRITEtemp1 DCD 10temp2 DCD 3 AREA ARMex, CODE, READONLY ; name this block of code ENTRY ; mark first instruction ; to execute ... 阅读全文

posted @ 2011-05-05 15:47 yanhc 阅读(1104) 评论(0) 推荐(0)

ADS中Image$$RO$$Limit之类的数是怎么算的?

摘要: 最近在看优龙270的bootloader——boot270,这个bootloader只能既能boot wince也能boot linux,是英特尔自己写的,优龙修改的。boot270里面跟uboot一样也要进行内存搬移,搬移的时候就需要用到Image$$RO$$Limit之类的数据。带$$的变量是ADS的保留变量,在ADS link guide中能够看到,在源文件中是没有的,好像在link的时候产生的。看了网上讲的关于Image$$RO$$Limit怎么算的文章:http://z86k.blog.163.com/blog/static/90796156201002511040829/网上大部分 阅读全文

posted @ 2011-05-05 12:11 yanhc 阅读(615) 评论(1) 推荐(0)

2011年5月3日

arm的bin二进制代码分析

摘要: 在bin文件中,就是一条条的机器指令,每条指令4个字节。在ADS中打开一个.s文件,选择project->disassemble可以看到汇编的机器码汇编代码如下(ADS中的一个例程/ARM/ADSv1_2/Examples/asm/armex.s): AREA ARMex, CODE, READONLY ; name this block of code ENTRY ; mark first instruction ; to executestart MOV r0, #10 ; Set up parameters MOV r1, #3 ADD r0, r0, r1 ; r0 = r0 + 阅读全文

posted @ 2011-05-03 18:39 yanhc 阅读(3623) 评论(0) 推荐(0)

2011年4月29日

优龙boot270 bootloader main.S

摘要: boot270.bin 是英特尔写的一个270的bootloader,优龙在此基础上修改了阶段一的主程序为src/main.s;------------------------------------------------------------------------------;; COPYRIGHT (C) 2000, 2001 Intel Corporation.;; FILENAME: main.s;; PURPOSE: This file contains the platform dependent startup code. This is; the first code t 阅读全文

posted @ 2011-04-29 16:58 yanhc 阅读(313) 评论(0) 推荐(0)

2010年7月7日

郑君里 信号与系统,傅里叶级数,逼近函数仿真,吉布斯验证

摘要: 郑君里,信号与系统,P99-100,傅里叶级数近似方波。clc; clear;E = 1;Amp = E/2;n = 5;T = 1;w = 2*pi/T;t = -1:0.0001:1;% Generate the fourier functionfun = zeros(size(t));for i=1:n fun = fun + (2*E/pi) * (1/i)*sin(i*pi/2)*cos(i*w*t);endfigure(1); plot(t, fun, 'r'); hold on;% Generate the step wavef=@(x)( -Amp*heavis 阅读全文

posted @ 2010-07-07 22:44 yanhc 阅读(519) 评论(0) 推荐(0)

2010年6月12日

PCI规范学习笔记

摘要: 以前看过一段时间Cyclone FPGA控制PEX8111的程序,没看懂,最近又结合PCI规范重新看了一下。PCI Speci rev2.3FRAME# is driven by the master to indicate the beginning and end of atransaction.IRDY# is driven by the master to indicate that it is ready to transfer data.TRDY# is driven by the target to indicate that it is ready to transfer da 阅读全文

posted @ 2010-06-12 19:54 yanhc 阅读(3827) 评论(0) 推荐(0)

2010年5月14日

verilog uart interface IP

摘要: 参考代码:http://www.fpga4fun.com/SerialInterface3.htm下载地址:http://yanhc519.download.csdn.net/ 阅读全文

posted @ 2010-05-14 14:57 yanhc 阅读(307) 评论(0) 推荐(0)

Verilog SPI interface IP

摘要: 参考http://www.fpga4fun.com/SPI2.htmlclk为FPGA的50M晶振需要用到SPI的四线制模式,SSEL信号必须要有。8位数据模式,polarity=0,phase=1。发送数据:把要发送的数据给到byte_data_tosent上,byte_sent_request给出一个上升沿,从而byte_sent_int也给DSP一个上升沿,触发DSP的SPI读。接收数据:当byte_received产生上升沿的时候,表明byte_data_received数据有效,可以读取。仿真波形:发送数据为0xF1,接收数据为0xFA下载地址:http://download.csd 阅读全文

posted @ 2010-05-14 14:17 yanhc 阅读(347) 评论(0) 推荐(0)

2010年3月26日

VC Access violation调试过程记录

摘要: 这几天在调一个摄像头的程序,把摄像头的图像数据读回来,然后用H263压缩(参考codeproject的VideoNet)。后来程序一直出现一个Access violation(AV)的错误,折腾了我整整2天,终于搞出来了。后来调试过程中发现是下面这句的问题//Convert the data from rgb format to YUV format ConvertRGB2YUV(IMAGE_WIDTH,IMAGE_HEIGHT,data,yuv); data为摄像头返回的RGB数据,yuv为转换成的yuv数据,开始一直在找yuv和输出数据的问题,没有发现什么原因,使用了各种调试工具,待会会. 阅读全文

posted @ 2010-03-26 09:15 yanhc 阅读(716) 评论(0) 推荐(0)

2010年3月25日

VC VFWcamera 和 VideoCapH263笔记

摘要: 内容参考:http://www.codeproject.com/KB/IP/videonet.aspxDisplaying the Captured Video FrameThere are various methods and APIs for displaying the captured frame. You can use SetDIBitsToDevice() method to directly display the frame. But this is quite slow as it is based on Graphics Device Interface (GDI) f 阅读全文

posted @ 2010-03-25 21:06 yanhc 阅读(854) 评论(0) 推荐(0)

导航