Configuration/Program Method for Altera Device Configure FLEX device byMicro-processor
2008-09-11 10:01
示例使用keil编译完成后, 程序会弹出如下类似信息, 可能有些人不关注此类信息, 其实某些时候还是挺有帮助的, 比如裁剪程序尺寸, 使其大小能装进目标机器运行时;Program Size
2022-02-07 06:59
.def_Reset.ref_c_int00.sect "vectors"_Reset: .ivec _c_int00, USE_RETA.sect "indata"x0: .copy.\dualsine.dat; allocate label definitions and/or references here; allocate uninitialized data sections heresamps_fir .set 200taps_fir.set 16a0:.usect "coeffs" , taps_firy0:.usect "results", (samps_fir-taps_fir + 2) & 0xFFFEsamps_iir .set 200taps_iir.set 8a1:.usect "coeffs" , taps_iiry1:.usect "results", samps_iir & 0xFFFEz1:.usect "results", 2; allocate memory for stack and system stackSTKLEN .set 100BOS: .usect "STK", STKLEN.evenBOSS: .usect "SSTK", STKLEN; allocate initialized data section here;only the first 8 values are used in lab2 and lab3.sect "init"table_fir:.int 7FCh, 7FDh, 7FEh, 7FFh.int 800h, 801h, 802h, 803h.int 803h, 802h, 801h, 800h.int 7FFh, 7FEh, 7FDh, 7FChtable_iir:.int 0001h, 0002h, 0029h,872Eh.int 3978h, 2000h, 4000h,2000h;allocate initialized code section here .def _c_int00 .sect "code"_c_int00:; gv - CPU configuration must match assembler BCLR C54CM.c54cm_off; when off, work in C55 mode , other wise in C54 mode. BCLR CPL.cpl_off; when off, working in assemble mode, other wise in C mode. ; when assemble mode,"move @a, XAR " will get value from XDP+ a; when C mode,"mov @a, XAR" will get value from SP + a. BCLR ARMS ; syntax checking directives.arms_off ; when off, work in the DSP mode,other wise in CPU mode. BSET M40 ; use 40 bits extenion. BSET FRCT; redundant sign bit eliminated automatically. BSET SXMD; sign extension; initialized the pointer to SP and SSP.AMOV #(BOS + STKLEN),XSPAMOV #(BOSS + STKLEN),XSSPCALL copy_fir CALL fir CALL copy_iir CALL iir NOPhere: B herecopy_fir:.asmfunc AMOV #table_fir,XAR2 AMOV #a0, XAR3 RPT #7; repeat 8 times MOV dbl(*AR2+), dbl(*AR3+); indirect addressing .endasmfuncRET ; return for the subrounte _copy callfir:.asmfuncAMOV #x0, XAR2AMOV #a0, XCDPAMOV #(x0+1),XAR3 AMOV #y0, XAR4 MOVmmap(CDP), BSAC MOV#0, CDP MOV#taps_fir,BKC MOV#(taps_fir-3),T0 MOV#(taps_fir-3),CSR BSET CDPLC MOV #((samps_fir-taps_fir)/2), BRC0; 92 RPTBLOCAL e1MPY *AR2+, *CDP+, AC0 :: MPY *AR3+, *CDP+, AC1 || RPT CSRMAC *AR2+, *CDP+, AC0 :: MAC *AR3+, *CDP+, AC1MAC *(AR2-T0), *CDP+, AC0 :: MAC *(AR3-T0), *CDP+, AC1e1: MOV pair(hi(AC0)), dbl(*AR4+).endasmfuncRETcopy_iir:.asmfunc AMOV #table_iir,XAR2 AMOV #a1, XAR3 RPT #3; repeat 4 times MOV dbl(*AR2+), dbl(*AR3+); indirect addressing AMOV #z1, XAR1; initialized the two taps mov #0, *AR1+ mov #0, *AR1+ .endasmfuncRET ; return for the subrounte _copy calliir:.asmfuncAMOV #x0, XAR0AMOV #z1, XAR1AMOV #a1, XAR2 AMOV #y1, XAR3 MOVmmap(AR2), BSA23 MOV#0,AR2 MOV#taps_iir,BK03 BSET AR2LC MOV#(samps_iir-1), BRC0 RPTBLOCAL e2 MOV *AR0+ SARAM16results > CE0init > FLASH ALIGN = 4 code > FLASH vectors > VECS STK> DARAM3 ALIGN = 4 SSTK > DARAM3 ALIGN = 4}
2014-04-04 02:10
在擦除扇区和写入扇区时报FLASH_ERROR_PROGRAM错误。可能原因:flash没有初始化。在操作前初始化即可。void drv_flash_Init(void){FLASH_Unlock
2021-08-05 08:10
文中已有描述。在安装完最新版本的TrueSTUDIO v9.0.0后,有一些用户碰到了这样的问:打开一些以前就已经带有TrueSTUDIO工程的示例代码后,发现会提示Program “gcc” not found in PATH。这种情况怎么办呢,点击此处下载教程,马上解决!
2018-08-02 15:43
675 DIP PROGRAM HEADER
2022-11-04 17:22
680 PROGRAM HEADERS/COVERS
2023-03-23 05:06
680 PROGRAM HEADERS/COVERS
2023-03-23 05:06
680 PROGRAM HEADERS/COVERS
2023-03-23 05:06
675 DIP PROGRAM HEADER
2023-03-23 05:06