📄 test2407.c
字号:
#include "f2407_c.h"
#define LED port40
volatile ioport unsigned int port40;/*LED*/
/****************************** MAIN ROUTINE ***************************/
void main(void)
{
unsigned int d_ram,p_ram,t_sci,t_x25650;
*WDCR = 0x00E8;
*SCSR1 = 0x00fd;
*SCSR2 = (*SCSR2 | 0x000B) & 0x000F;
WSGR = 0x01c0;
*MCRA = 0x0003; /* group A pins */
*MCRB = 0xFE1C; /* group B pins */
*MCRC = 0x0000; /* group C pins */
asm(" setc INTM");
*IMR = 0x0000; /* clear the IMR register */
*IFR = 0xffff; /* clear any pending core interrupts */
*WDKEY =0x5555;
*WDKEY =0xaaaa;
*PCDATDIR=*PCDATDIR|0x2000; /*PC5 is output*/
LEDTest(5);
LED=0x00ff;
LED=0x00fe;
p_ram=prog_ram_check();
if(p_ram==0)LEDflash(0x00fe);
LED=0xfffd;
d_ram = data_ram_check();
if(d_ram==0)LEDflash(0x00fd);
LED=0xfffb;
t_sci=test_sci();
if(t_sci==0)LEDflash(0x00fb);
LED=0xfff7;
t_x25650=test_x25650();
if(t_sci==0)LEDflash(0x00f7);
/*LED=0x0000; */
DACtest();
while(1);
} /* end of main() */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -