User`s manual
RX62N Group, RX621 Group 4. Library Reference
2) R_CGC_Control
Synopsis
Modify the clock generation circuit operation.
Prototype
bool R_CGC_Control(
uint16_t data
// Control options
);
Description
Modify the clock control registers.
[data]
Control options. If multiple selections are required, use "|" to separate each selection.
•
SDCLK pin output control
PDL_CGC_SDCLK_ENABLE or
PDL_CGC_SDCLK_DISABLE
Enable or disable the SDRAM clock (SDCLK) output.
•
Sub-clock oscillator control
PDL_CGC_SUB_CLOCK_ENABLE or
PDL_CGC_SUB_CLOCK_DISABLE
Enable or disable the sub-clock oscillator.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
Clock generation circuit
References
None.
Remarks
•
None.
Program example
/* RPDL definitions */
#include "r_pdl_cgc.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Stop the sub-clock oscillator */
R_CGC_Control(
PDL_CGC_SUB_CLOCK_DISABLE
);
}
R20UT0084EE0112 Rev.1.12 Page 4-7
July. 16, 2014