D2-D5 RENESAS [Renesas Technology Corp], D2-D5 Datasheet - Page 6
![no-image](/images/no-image-200.jpg)
D2-D5
Manufacturer Part Number
D2-D5
Description
Sample Program (Electronic Desktop Calculator)
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
1.D2-D5.pdf
(18 pages)
6.
6.1 Definition of the RSK Functionality
RSKdefine.h file
REJ05B0812-0120 Rev.1.20
In this application, the following functionalities (those shown in red) are set.
Individual definition of each selected functionality.
/*********************************************************
*********************************************************/
#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
/********************************************************
/********************************************************/
#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
#if defined _USE_KEY
/* A key matrix continues pushing and existence is defined.*/
/*When not using
//#define _USE_KEY_CONTINU
#if defined _USE_KEY_CONTINU
#else
#define _CONTINU_SW1 _KEY_CONTEINU_OFF
#define _CONTINU_SW2 _KEY_CONTEINU_OFF
#define _CONTINU_SW3 _KEY_CONTEINU_OFF
#define _CONTINU_SW4 _KEY_CONTEINU_OFF
#define _CONTINU_SW5 _KEY_CONTEINU_OFF
#define _CONTINU_SW6 _KEY_CONTEINU_OFF
#define _CONTINU_SW7 _KEY_CONTEINU_OFF
#define _CONTINU_SW8 _KEY_CONTEINU_OFF
#define _CONTINU_SW9 _KEY_CONTEINU_OFF
#define _CONTINU_SW10 _KEY_CONTEINU_OFF
#define _CONTINU_SW11 _KEY_CONTEINU_OFF
#define _CONTINU_SW12 _KEY_CONTEINU_OFF
#define _CONTINU_SW13 _KEY_CONTEINU_OFF
#define _CONTINU_SW14 _KEY_CONTEINU_OFF
#define _CONTINU_SW15 _KEY_CONTEINU_OFF
#define _CONTINU_SW16 _KEY_CONTEINU_OFF
#endif
Calculator
The boot information on CPU is defined
Usually, this mode is used
The hardware function which RSK supports is chosen
Definition of the RSK Functionality and the RSK_LIB APIs and Common Functions Used by the
-USE_KEY_CONTINU is made a comment. */
2007.11
Sample Program (Electronic Desktop Calculator)
Continuous key depression is not used in
this application.
M16C/26A Group
Page 6 of 18