I use the code generator to generate a project,
I did not change the clock setting, but I noticed the clock configure by default shows as below.
When I study the code in r_cg_cgc.c the MCM0 is set 0 ( use on-chip oscillator clock ), but I did not find the frequency configuration (HOCODIV).
Is that setting by default? If yes, what's HOCODIV value on default.
Yeah I guess, that's the default setting of the code generator. What RL78 device are you using? The frequency of the high-speed on-chip oscillator can be selected thru the option byte but it can also be changed too thru the HOCODIV register. Have you checked the option byte to see the clock frequency?
JBRenesasRulz Forum Moderator
In reply to JB:
Thanks for your reply.
Sorry for I forget to mention that what device I using.
I using RL78G10 (R5F10Y47).
I did not check the option byte (because I did not know that, thank for your informing) and I do know how to check the option byte.
Is it in IO Registers windows on debug mode?
In reply to black:
Chapter 5 and chapter 19: www.renesas.com/.../r01uh0384ej0311-rl78g10.pdf In formation on RL78/G10 debugging: www.renesas.com/.../r20ut2937ej0300_e1e20e2e2lite_rl78.pdf
How's this issue? Can you confirm if this is already solved? So that I can close this thread. Thank you!