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.
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.
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.