debug.c

来自「使用台湾普诚pt6961驱动数码管和按键,显示ds1302的源码,详细的6961」· C语言 代码 · 共 86 行

C
86
字号

/********************************************************************
*
* 模 块 名:调试                   
*  
* 创 建 人: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 + =
减小字号Ctrl + -
显示快捷键?