English
Language : 

M16C26A-MS Datasheet, PDF (5/17 Pages) Renesas Technology Corp – Sample Program (Musical Scale)
ç
M16C/26A Group
Sample Program (Musical Scale)
6. Definition of the RSK Functionality and the RSK_LIB APIs and Common Functions Used by
Musical Scale
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
#if defined _OPTION_USE_SW
#define _OPTION_USE_PUSHSW1
//#define _OPTION_USE_PUSHSW2
//#define _OPTION_USE_PUSHSW3
#endif
Potentiometer input AD is used
Pushbutton SW1 is used
REJ05B0817-0110 Rev.1.10
2007.12
Page 5 of 17