e08a.c

来自「一个瑞萨单片机的程序。。。供大家学习用。。。。。。。。。。。。。。。。。。」· C语言 代码 · 共 57 行

C
57
字号
/******************************************************************************
 * System Name: for eduction (NO TRANSFERRING)
 * File Name  : e08a.c
 * Contents   : embedded C language entrance course
 *            : exercise 8A: program for controlling SW and LED
 *            : (display SW number at LED)
 * Model      : for OAKS8-LCD Board
 * CPU        : R8C/Tiny series
 * Compiler   : NC30WA	V.5.30 Release 1
 * OS         : not be used
 * Programmer : RENESAS Semiconductor Training Center
 * Note       : for OAKS8-R5F21114FP(R8C/11 group,20MHz)
 ****************************************************************************
 * COPYRIGHT(C) 2004 RENESAS TECHNOLOGY CORPORATION  
 *               AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
 ****************************************************************************
 * History    : 
 *""FILE COMMENT END""*******************************************************/

/* include file */
#include "defs.h"			/* define common symbol					*/
#include "oaks8lib.h"		/* for function to deal with OAKS8-LCDBoard peripheral	*/

/*===== define SFR section for M16C/60 series =====*/


/*===== define variable =====*/
static const unsigned char ptntable[] = {	/* LED display pattern table */
 /* '0',  '1',  '2',  '3',  '4',  '5',  '6',  '7'   '8',  '9'    */
	0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x80, 0x90,
 /* 'unlight' */
	 0xff
};

/*===== define function prototype =====*/
void main(void);

/*""FUNC COMMENT""*************************************************************
* ID            : ---
* function name : void main(void)
* function      : input SW number from key matrix, output to LED
* parameter     : none
* return        : none
* function used : none
* notice        : no deciding display digit
* History       : ---
*""FUNC COMMENT END""*********************************************************/
void main(void)                     
{

}


/******************************************************************************
    end of file
******************************************************************************/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?