📄 debug.c
字号:
/********************************************************************
*
* 模 块 名:调试
*
* 创 建 人:yingjiangan 日期:2008-03-20
* 修 改 人: 日期:2000-00-00
* 功能描述:
* 其他说明:
* 版 本:V1.0
**********************************************************************/
/************头文件************/
#include <intrins.h>
#include <sm5964.h>
#include "my_type.h"
#include "debug.h"
#include "uart.h"
#include "6961.h"
void try(void)
{
uint8 i;
uint8 r_data;
while(1)
{
Write_6961_cmd(0x42);
r_data=0x00;
i=Read_6961();
UartPutChar(1);
UartPutChar(i);
i=Read_6961();
UartPutChar(2);
UartPutChar(i);
i=Read_6961();
UartPutChar(3);
UartPutChar(i);
i=Read_6961();
UartPutChar(4);
UartPutChar(i);
i=Read_6961();
UartPutChar(5);
UartPutChar(i);
/*
dsplay_dat[0]=A_DSP;
dsplay_dat[1]=B_DSP;
dsplay_dat[2]=C_DSP;
dsplay_dat[3]=D_DSP;
dsplay_dat[4]=E_DSP;
dsplay_dat[5]=F_DSP;
dsplay_dot[0]=1;
dsplay_dot[1]=1;
dsplay_dot[2]=1;
dsplay_dot[3]=1;
dsplay_dot[4]=1;
dsplay_dot[5]=1;
Dsplay();
*/
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -