English
Language : 

M16C26A-LM Datasheet, PDF (4/16 Pages) Renesas Technology Corp – Sample Program (Lux Meter)
ç
M16C/26A Group
Sample Program (Lux Meter)
6. Definition of the RSK Functionality and the RSK_LIB APIs and Common Functions Used by the
Lux Meter
6.1 Definition of the RSK Functionality
RSKdefine.h file
In this application, the following functionalities (those shown in red) are set.
/*********************************************************
The boot information on CPU is defined
Usually, this mode is used
*********************************************************/
#define _CPU_M16C26A_NORMAL_MOD
/* Use in low power mode can be performed. */
//#define _CPU_M16C26A_32KHZ_MOD
/* Use of access of a flash can be performed. */
//#define _CPU_M16C26A_DATAFLASF_USE
/********************************************************
The hardware function which RSK supports is chosen
/********************************************************/
//#define _USE_KEY
//#define _USE_BUZZER
#define _OPTION_USE_AD
//#define _OPTION_USE_COM_RX
//#define _OPTION_USE_COM_TX
//#define _OPTION_USE_INFRAEDRX
//#define _OPTION_USE_INFRAEDTX
//#define _OPTION_USE_SW
//#define _OPTION_USE_LED
//#define _OPTION_USE_IO
ç
Individual definition of each selected functionality
#if defined _OPTION_USE_AD
/* Define Illumimeter Adc */
#define _OPTION_USE_AD0
/* Define Vr Adc */
//#define _OPTION_USE_AD24
#endif
Lux meter input AD
REJ05B0811_0110 Rev.1.10
2007.11
Page 4 of 16