Hi everyone,
I am working on configuring the McuClockReferencePoint container for my RL78-based project as part of the AUTOSAR MCU module setup. The goal is to define all necessary clock frequencies required by various modules and peripherals. While I’ve reviewed the RL78 datasheet, I’m facing challenges in determining the exact configurations due to the dependencies and restrictions outlined in the documentation. I would greatly appreciate guidance or examples to clarify the following:
McuClockReferencePoint
Below are the specific clock frequencies I need to define, along with their purposes:
Main System Clock Frequency:
PLL Clock Frequency:
Timer Clock Frequency:
Subsystem Clock Frequency:
Dependency Between Clocks:
Configuration Registers:
Low-Power Mode Compatibility:
Documentation Clarity:
I’m looking for:
Recommended Clock Frequencies:
Dependencies and Constraints:
Registers or Configuration Steps:
Examples:
Any advice, references to relevant sections of the RL78 documentation, or example configurations would be highly valuable. Thank you in advance for your help!
Best regards, Roshan
Hello Roshan,
The RL78/F13 Hardware Manual provides detailed information on clock configuration, particularly in Chapter 5, "Clock Generator." This chapter outlines various clock sources like the High-Speed On-Chip Oscillator (HSI), external crystal oscillators, and the Low-Speed On-Chip Oscillator (LSI). It also explains how to use the Phase-Locked Loop (PLL) to generate higher-frequency clocks for peripherals. Chapter 13, "Low-Power Mode," discusses clock settings for different low-power modes, ensuring optimal power consumption. By understanding these chapters and considering factors like frequency range, power consumption, and peripheral requirements, you can effectively configure the McuClockReferencePoint container. The specific configuration steps involve using registers like the Clock Control Register (CCR), Clock Source Selection Register (CSSR), and PLL Control Register (PLLCR). Renesas e² studio provides a user-friendly interface to simplify this process. Remember to consult the RL78/F13 datasheet for device-specific information and limitations.
RL78/F13, F14 User's Manual: Hardware Rev.2.20
Kind Regards,
Payodhi
Fig 5-1 of the HW U/M is a nice summary of the clock circuits
The Applilet tool provides a convenient way to graphically select the clock parameters. It might be useful to wrap the code generated by this tool with the AUTOSAR compliant API.