User`s manual
RX62N Group, RX621 Group 4. Library Reference
4.2.5. MCU operation
1) R_MCU_Control
Synopsis
Control the operation of the MCU.
Prototype
bool R_MCU_Control(
uint8_t data
// Control options
);
Description
Modify the MCU control registers.
[data]
Select the operation states. If multiple selections are required, use "|" to separate each selection.
Specify PDL_NO_DATA to use the defaults.
•
On-chip ROM control
PDL_MCU_ROM_ENABLE or
PDL_MCU_ROM_DISABLE
Enable or disable the on-chip ROM.
•
On-chip RAM control
PDL_MCU_RAM_ENABLE or
PDL_MCU_RAM_DISABLE
Enable or disable the on-chip RAM.
Return value
True if a valid register is specified; otherwise false.
Category
MCU registers
References
None.
Remarks
•
None.
Program example
/* RPDL definitions */
#include "r_pdl_mcu.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func( void )
{
/* Modify the MCU operation */
R_MCU_Control(
PDL_MCU_ROM_DISABLE
);
}
R20UT0084EE0112 Rev.1.12 Page 4-42
July. 16, 2014