Is it possible to change the frequency of the internal DCDC converter?

PerM

Active member
I am working on a handheld receiver for the 80 m HAM band and specifically 3.5 to 3.6 MHz is of interest. The antenna is a ferrite core with a winding and as it is a handheld receiver, it is positioned just a few cm away from the Teensy Micromod that performs SDR functions and handles the user interface. The receiver mostly works fine, but there is a noticeable disturbance coming from the circuitry that is picked up by the antenna. I probed around with a near-field probe connected to a spectrum analyzer and discovered the issue. The built-in DCDC converter of the I.MXRT1060 switches at a fluctuating frequency between approximately 1.74 to 1.78 MHz, which means the second harmonic will be all over the band of interest. This is about the worst possible frequency for that DCDC converter in this application. It is relatively strongly radiated by the 4.7 µH inductor.

I read the reference manual for the processor (around page 1212) and did not find any register setting that I think affects the frequency, except perhaps the bits SEL_CLK and DISABLE_AUTO_CLK_SWITCH in DCDC reg 0. DISABLE_AUTO_CLK_SWITCH seems to be set to 0 if I do not change anything, so I tried to set it to 1 so that SEL_CLK is in charge of whether the ring oscillator is used or if a crystal based clock is used. But I did not se any difference in frequency regardless of the SEL_CLK setting while the auto switching was disabled.

I found very little information about how the crystal-based clock for the DCDC is generated and nothing at all that said it is a spread-spectrum clock.

Is there any way to change the switching frequency a little so that it is not precisely at half the RF frequency I am trying to receive?

Here is my simple code to check and set the register bits in case I misunderstood how to do these register accesses.

C++:
  // Check a core DCDC status register
  uint32_t reg0 = DCDC_REG0;
  Serial.print("DCDC_REG0 = 0x");
  Serial.println(reg0, HEX);
  Serial.print("DCDC_REG0_SEL_CLK = ");
  Serial.println((reg0 & DCDC_REG0_SEL_CLK) ? 1:0);
  Serial.print("DCDC_REG0_DISABLE_AUTO_CLK_SWITCH = ");
  Serial.println((reg0 & DCDC_REG0_DISABLE_AUTO_CLK_SWITCH) ? 1:0);
  // Set DCDC_REG0_DISABLE_AUTO_CLK_SWITCH and clear DCDC_REG0_SEL_CLK
  DCDC_REG0 = (reg0 | DCDC_REG0_DISABLE_AUTO_CLK_SWITCH) & (~DCDC_REG0_SEL_CLK);
  reg0 = DCDC_REG0;
  Serial.print("DCDC_REG0 = 0x");
  Serial.println(reg0, HEX);
  Serial.print("DCDC_REG0_SEL_CLK = ");
  Serial.println((reg0 & DCDC_REG0_SEL_CLK) ? 1:0);
  Serial.print("DCDC_REG0_DISABLE_AUTO_CLK_SWITCH = ");
  Serial.println((reg0 & DCDC_REG0_DISABLE_AUTO_CLK_SWITCH) ? 1:0);

The printout is:

DCDC_REG0 = 0x94030111
DCDC_REG0_SEL_CLK = 0
DCDC_REG0_DISABLE_AUTO_CLK_SWITCH = 0
DCDC_REG0 = 0x94030113
DCDC_REG0_SEL_CLK = 0
DCDC_REG0_DISABLE_AUTO_CLK_SWITCH = 1

So I think I managed to force it to use the ring oscillator (SEL_CLK = 0), which I would think is very unlikely to have precisely the same frequency and spreading as the crystal derived clock. As mentioned, I also tried SEL_CLK = 1 without seing anything different on the spectrum analyzer.

Attached is a screenshot with max hold showing the spreading of the switch frequency.

I can of course try to shield this noise source in various ways (changing to a shielded inductor, covering the Micromod in grounded copper tape), but it would be very good to avoid generating these frequencies in the first place.
 

Attachments

  • PNG4.png
    PNG4.png
    55.6 KB · Views: 102
Putting the Teensy Micromod in a Faraday cage is worth considering.
Thanks. I already have it reasonably well shielded, but there are of course many signals crossing the shield walls. There are things that could be done to shield the inductor better and I might be forced to do so, but I still would prefer to move the EMI to less objectionable frequencies if possible. Just 200 or even 100 kHz lower would be fantastic.

I just tested to cool the processor with freeze spray and that instantly pushed the switching frequency higher by 50-100 kHz. I suppose this indicates that the ring oscillator is used since the crystal frequency should not move much at all over temperature. The behavior is the same even with DCDC_REG0_DISABLE_AUTO_CLK_SWITCH = 1 and DCDC_REG0_SEL_CLK = 1 which I think should select the crystal based frequency. Strange.

Looking further at the bits in the same register, I found XTAL_24M_OK which I had assumed was not writeable. But it turns out to be! When I also set this bit, the DCDC frequency is rock solid at 1.500 MHz and this gives me no problems as the harmonics fall far outside the band I am interested in.

Problem solved!

The code to make this happen is thus:

C++:
DCDC_REG0 = DCDC_REG0 | DCDC_REG0_XTAL_24M_OK | DCDC_REG0_DISABLE_AUTO_CLK_SWITCH | DCDC_REG0_SEL_CLK;
 
Back
Top