1. Error Meaning
112C: FREQ SETTING ERR indicates that the MCU operating frequency value
notified to the microcontroller during initial communication is outside the valid
setting range of the MCU.
Microcontrollers require wait-state adjustments for communication based
on their operating frequency. However, since the MCU cannot recognize its own
operating frequency, the programmer must notify it of the correct operating
frequency via a dedicated command at the start of communication.
2. Causes and Countermeasures
Cause: Incorrect parameter settings (Input clock, Multiplication factor, or Frequency division ratio).
Countermeasure (Workaround): Correct the parameter settings according to the
actual operating frequency of the MCU.
Calculation Formula for MCU Operating Clock
Operating Clock = MCU Clock Frequency (Input Clock) x Multiplication Factor ÷ Frequency Division RatioNote: Configure the parameters so that the result of multiplication and division based on the input clock falls within the MCU's maximum operating frequency range.
Setting Locations for Each Parameter
MCU Clock Frequency ([Parameter Table 1] Tab):
Set the clock frequency input to the MCU (the frequency of the crystal oscillator
mounted on the target board).Multiplication Factor & Frequency Division Ratio ([Parameter Table 2] Tab):
If prompted for a password when selecting the tab, enter "AF200".Multiplication Factor: Set at Address #C6 in hexadecimal.
Frequency Division Ratio: Set at Address #C8 in hexadecimal
(Valid for values 1 or higher;00means no division).
Setting Examples:
Example 1: Input Clock 8.0 MHz / MCU Operating Frequency 80.0 MHz (x10 Multiplication)
MCU Clock Frequency:
8.0 [MHz]Parameter Table 2
#C6(Multiplication Factor):0A(Hexadecimal for 10)Parameter Table 2
#C8(Division Ratio):00or01
Example 2: Input Clock 16.0 MHz / MCU Operating Frequency 120.0 MHz (x15 Multiplication / ÷2 Division)
MCU Clock Frequency:
16.0 [MHz]Parameter Table 2
#C6(Multiplication Factor):0F(Hexadecimal for 15)Parameter Table 2
#C8(Division Ratio):02(Hexadecimal for 2)
<Correct combination of input clock, multiplication factor, and division ratio settings corresponding to the microcontroller operating frequency>
| MCU operating Frequecy | Input Clock Frequency | Multiplication Factor | Division Ratio |
| 80 | 8.0 | 0A | 00 |
| 80 | 16.0 | 05 | 00 |
| 80 | 20.0 | 04 | 00 |
| 80 | 24.0 | 0A | 03 |
| 96 | 8.0 | 0C | 00 |
| 96 | 16.0 | 06 | 00 |
| 96 | 20.0 | 18 | 05 |
| 96 | 24.0 | 04 | 00 |
| 120 | 8.0 | 0F | 00 |
| 120 | 16.0 | 0F | 02 |
| 120 | 20.0 | 06 | 00 |
| 120 | 24.0 | 05 | 00 |
Note:
If the clock parameters are incorrect, the error may not appear as
112C: FREQ SETTING ERR, but could instead result in communication errors such asDEVICE ILLEGAL REPLYorDEVICE SCI SUM ERR.