文件名称:ourdev_243923
介绍说明--下载内容均来自于网络,请自行研究使用
u_reg.h"
void Delay_MS(unsigned int ms)
void main()
{
asm(" STM #0000h,CLKMD ")
while(*CLKMD & 0x01 )
asm(" STM #40C7h,CLKMD ") //设置CPU运行频率=100M
/* 40C7h:5*clkin =100M
30c7h:4*clkin =80M
20c7h:3*clkin =60M
10C7h:2*clkin =40M
*/
asm(" stm #4240h, SWWSR ")
//2 wait except for on-chip program 1
asm(" stm #00a0h, PMST ") //MP/MC = 0, IPTR = 001,ovly=0
asm(" stm #0802h, BSCR ")
asm(" STM #0h,IMR ")
while(1)
{
Delay_MS(500)
asm(" RSBX XF ")
Delay_MS(500)
asm(" SSBX XF ")
}
-sdqwd
void Delay_MS(unsigned int ms)
void main()
{
asm(" STM #0000h,CLKMD ")
while(*CLKMD & 0x01 )
asm(" STM #40C7h,CLKMD ") //设置CPU运行频率=100M
/* 40C7h:5*clkin =100M
30c7h:4*clkin =80M
20c7h:3*clkin =60M
10C7h:2*clkin =40M
*/
asm(" stm #4240h, SWWSR ")
//2 wait except for on-chip program 1
asm(" stm #00a0h, PMST ") //MP/MC = 0, IPTR = 001,ovly=0
asm(" stm #0802h, BSCR ")
asm(" STM #0h,IMR ")
while(1)
{
Delay_MS(500)
asm(" RSBX XF ")
Delay_MS(500)
asm(" SSBX XF ")
}
-sdqwd
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验示例
........\CpuTimer
........\........\cc_build_Debug.log
........\........\CpuTimer.paf
........\........\CpuTimer.pjt
........\........\cpu_reg.h
........\........\CVECTORS.ASM
........\........\Debug
........\........\.....\CpuTimer.map
........\........\.....\CpuTimer.out
........\........\.....\CVECTORS.obj
........\........\.....\main.obj
........\........\Debug.lkf
........\........\Debug.lkv
........\........\flash_led.paf
........\........\INRAM.cmd
........\........\main.c
........\........\rts.lib
........\ExInt
........\.....\cc_build_Debug.log
........\.....\cpu_reg.h
........\.....\CVECTORS.ASM
........\.....\Debug
........\.....\.....\CVECTORS.obj
........\.....\.....\ExInt.map
........\.....\.....\ExInt.out
........\.....\.....\main.obj
........\.....\Debug.lkf
........\.....\Debug.lkv
........\.....\ExInt.paf
........\.....\ExInt.pjt
........\.....\INRAM.cmd
........\.....\main.c
........\.....\rts.lib
........\EXRAM
........\.....\cc_build_Debug.log
........\.....\cpu_reg.h
........\.....\CVECTORS.ASM
........\.....\Debug
........\.....\.....\CVECTORS.obj
........\.....\.....\EXRAM.map
........\.....\.....\EXRAM.out
........\.....\.....\main.obj
........\.....\Debug.lkf
........\.....\Debug.lkv
........\.....\EXRAM.paf
........\.....\EXRAM.pjt
........\.....\main.c
........\.....\my.cmd
........\.....\rts.lib
........\IP
........\..\cc_build_Debug.log
........\..\cpu_reg.h
........\..\CVECTORS.ASM
........\..\Debug
........\..\.....\CVECTORS.obj
........\..\.....\IP.obj
........\..\.....\main.obj
........\..\.....\RTL8019.map
........\..\.....\RTL8019.obj
........\..\.....\RTL8019.out
........\..\Debug.lkf
........\..\Debug.lkv
........\..\INRAM.cmd
........\..\IP.C
........\..\IP.h
........\..\main.c
........\..\RTL8019.c
........\..\RTL8019.h
........\..\RTL8019.paf
........\..\RTL8019.pjt
........\..\rts.lib
........\KEY
........\...\c5402_dsk.gel
........\...\cc_build_Debug.log
........\...\cpu_reg.h
........\...\CVECTORS.ASM
........\...\Debug
........\...\.....\CVECTORS.obj
........\...\.....\KEY.map
........\...\.....\KEY.obj
........\...\.....\KEY.out
........\...\.....\main.obj
........\...\Debug.lkf
........\...\Debug.lkv
........\...\INRAM.cmd
........\...\KEY.c
........\...\KEY.paf
........\...\KEY.pjt
........\...\main.c
........\...\rts.lib
........\led_flash
........\.........\c5402_dsk.gel
........\.........\cc_build_Debug.log
........\.........\cpu_reg.h
........\.........\CVECTORS.ASM
........\.........\Debug
........\.........\.....\cvectors.lst
........\.........\.....\cvectors.obj
........\.........\.....\exram.cmd
........\CpuTimer
........\........\cc_build_Debug.log
........\........\CpuTimer.paf
........\........\CpuTimer.pjt
........\........\cpu_reg.h
........\........\CVECTORS.ASM
........\........\Debug
........\........\.....\CpuTimer.map
........\........\.....\CpuTimer.out
........\........\.....\CVECTORS.obj
........\........\.....\main.obj
........\........\Debug.lkf
........\........\Debug.lkv
........\........\flash_led.paf
........\........\INRAM.cmd
........\........\main.c
........\........\rts.lib
........\ExInt
........\.....\cc_build_Debug.log
........\.....\cpu_reg.h
........\.....\CVECTORS.ASM
........\.....\Debug
........\.....\.....\CVECTORS.obj
........\.....\.....\ExInt.map
........\.....\.....\ExInt.out
........\.....\.....\main.obj
........\.....\Debug.lkf
........\.....\Debug.lkv
........\.....\ExInt.paf
........\.....\ExInt.pjt
........\.....\INRAM.cmd
........\.....\main.c
........\.....\rts.lib
........\EXRAM
........\.....\cc_build_Debug.log
........\.....\cpu_reg.h
........\.....\CVECTORS.ASM
........\.....\Debug
........\.....\.....\CVECTORS.obj
........\.....\.....\EXRAM.map
........\.....\.....\EXRAM.out
........\.....\.....\main.obj
........\.....\Debug.lkf
........\.....\Debug.lkv
........\.....\EXRAM.paf
........\.....\EXRAM.pjt
........\.....\main.c
........\.....\my.cmd
........\.....\rts.lib
........\IP
........\..\cc_build_Debug.log
........\..\cpu_reg.h
........\..\CVECTORS.ASM
........\..\Debug
........\..\.....\CVECTORS.obj
........\..\.....\IP.obj
........\..\.....\main.obj
........\..\.....\RTL8019.map
........\..\.....\RTL8019.obj
........\..\.....\RTL8019.out
........\..\Debug.lkf
........\..\Debug.lkv
........\..\INRAM.cmd
........\..\IP.C
........\..\IP.h
........\..\main.c
........\..\RTL8019.c
........\..\RTL8019.h
........\..\RTL8019.paf
........\..\RTL8019.pjt
........\..\rts.lib
........\KEY
........\...\c5402_dsk.gel
........\...\cc_build_Debug.log
........\...\cpu_reg.h
........\...\CVECTORS.ASM
........\...\Debug
........\...\.....\CVECTORS.obj
........\...\.....\KEY.map
........\...\.....\KEY.obj
........\...\.....\KEY.out
........\...\.....\main.obj
........\...\Debug.lkf
........\...\Debug.lkv
........\...\INRAM.cmd
........\...\KEY.c
........\...\KEY.paf
........\...\KEY.pjt
........\...\main.c
........\...\rts.lib
........\led_flash
........\.........\c5402_dsk.gel
........\.........\cc_build_Debug.log
........\.........\cpu_reg.h
........\.........\CVECTORS.ASM
........\.........\Debug
........\.........\.....\cvectors.lst
........\.........\.....\cvectors.obj
........\.........\.....\exram.cmd