I am using RL78/G12 20 pin controller.in my application i have to use timer using exetrnal crystal and peripheral using the internal oscillsator.It is possible to use both at time??
Can you tell us what kind of application is that? In the meantime, you can refer to chapter 5 of the hardware user's manual for the clock generators and configuration.
JBRenesasRulz Forum Moderator
In reply to Mike Clements:
Unfortunately, you CANNOT use fMX (external xtal oscillator) and fIH (internal oscillator, also) at the same time. The MCM0 bit in CKC register selects whether fIH or fMX is used. On MCU POWER-ON RESET, fIH is selected and frequency/mode is set by Option Byte 000C2H.
It is possible to switch the CPU and Peripherals from fMX clock to fIH clock, or from fIH to fMX clock, provided you follow the guidelines in Chapter 5 (Clock Generator) of the RL78/G12 HW user's manual.
In reply to Mike Clodfelter: