RX Family
ADC Module Using Firmware Integration Technology
R01AN1666EJ0220 Rev. 2.20
Page 5 of 74
Dec 01, 2016
2.8
Configuration Overview
All configurable options that can be set at build time are located in the file “r_s12ad_rx_config.h”. A summary of these
settings are provided in the following table:
Configuration options in
r_s12ad_rx_config.h
#define ADC_CFG_PARAM_CHECKING_ENABLE 1
If this equate is set to 1, parameter checking is included
in the build. If the equate is set to 0, the parameter
checking is omitted from the build. Setting this equate
to BSP_CFG_PARAM_CHECKING_ENABLE
utilizes the system default setting.
// 1.8V <= AVcc0 < 2.7V
#define ADC_CFG_PGA_GAIN 0
// 2.7V <= AVcc0 < 3.6V
//#define ADC_CFG_PGA_GAIN 1
// 3.6V <= AVcc0 < 4.5V
//#define ADC_CFG_PGA_GAIN 2
// 4.5V <= AVcc0 <= 5.5V
//#define ADC_CFG_PGA_GAIN 3
This equate is for the Temperature Sensor gain
amplifier on the RX210. The default is a value of 0
which is good for all target voltages. For best
temperature resolution, the voltage range which most
accurately reflects the AVcc0 should have its #define
uncommented.
Table 1: Info about the configuration
2.9
Code Size
The code size is based on optimization level 2 and optimization type for size for the RXC toolchain in Section 2.5. The
ROM (code and constants) and RAM (global data) sizes are determined by the build-time configuration options set in
the module configuration header file.
ROM and RAM code sizes
With Parameter Checking
Without Parameter Checking
RX110
ROM: 1354 bytes
ROM: 983 bytes
RAM: 12 bytes
RAM: 12 bytes
RX111
ROM: 1234 bytes
ROM: 950 bytes
RAM: 124 bytes
RAM: 124 bytes
RX113
ROM: 1471 bytes
ROM: 1100 bytes
RAM: 12 bytes
RAM: 12 bytes
RX130
ROM: 2560 bytes
ROM: 1879 bytes
RAM: 12 bytes
RAM: 12 bytes
RX210
ROM: 1671 bytes
ROM: 1200 bytes
RAM: 12 bytes
RAM: 12 bytes