📄 e09c.c
字号:
/*""FILE COMMENT""*************************************************************
* System Name : for eduction (NO TRANSFERRING)
* File Name : e09c.c
* Contents : embedded C language entrance course
* : exercise 9C: program to control LED using timer
* : (light dynamicly)
* 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 "target.h" /* SFR definition file */
#include "ledutl.h" /* header file control LED */
#include "txutl.h" /* header file control TimerX */
/*===== define macro =====*/
/*===== define function prototype =====*/
void main(void);
/*===== define variable =====*/
static const unsigned char ptntable[] = { /* LED display pattern table */
/* '0', '1', '2', '3', '4', '5', '6', '7' */
0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8,
/* '8', '9', 'A', 'b', 'c', 'd', 'E', 'F' */
0x80, 0x90, 0x88, 0x83, 0xc6, 0xa1, 0x86, 0x8e,
};
static const unsigned char digtable[] = { /* data table to decide LED light digit */
/* LED0 , LED1 , LED2 , LED3 */
0xfd , 0xfb , 0xf7 , 0xef
};
/*""FUNC COMMENT""*************************************************************
* ID : ---
* function name : void main(void)
* function : display "12" at LED0 and LED1
* : timer runs periodly(polling)
* parameter : none
* return : none
* function used : LED__initialize, TX__initialize, cyclic_led
* notice : none
* History : ---
*""FUNC COMMENT END""*********************************************************/
void main(void)
{
}
/*""FUNC COMMENT""*************************************************************
* ID : ---
* function name : static void cyclic_led(void)
* function : control dyamic light
* parameter : none
* return : none
* function used : none
* notice : display buffer refers array bf_LedDisp
* History : ---
*""FUNC COMMENT END""*********************************************************/
/* define function to control dynamic light */
/******************************************************************************
end of file
******************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -