Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Why can AT86RF233 CLKM fall to 1 MHz after sleep while its crystal stays at 16 MHz?

A low-power wireless node feeds its host MCU from the AT86RF233 CLKM pin. One 16 MHz crystal supplies both the transceiver reference and the host's operating clock. Resetting the radio still leaves 16 MHz on the scope. After the first radio sleep and wake, the UART slows dramatically and scheduled tasks take much longer. Check when the CLKM setting actually reaches the output. The crystal, divided clock and register readback describe different points in the system.

Reset can change the readback before changing the output

Section 9.6.4 of the AT86RF233 datasheet describes CLKM as a prescaled output of the 16 MHz reference. The available rates include 16, 8, 4, 2 and 1 MHz. CLKM_CTRL in TRX_CTRL_0 selects the rate, and CLKM_SHA_SEL determines when it reaches the pin. With shadowing and a previously enabled output, the new rate takes effect at the next exit from SLEEP. If the product requires an immediate change, verify the immediate-update mode and what the host can tolerate. Microchip AT86RF233 datasheet, sections 9.6.4 and 9.6.5

The datasheet gives a specific reset example. CLKM can continue running at 16 MHz immediately after reset while CLKM_CTRL reads its reset value of one. The shadow select bit also resets to one. Unless firmware writes back the required rate, the output applies the default corresponding to 1 MHz after the next SLEEP cycle. A 16 MHz observation immediately after reset leaves the sleep transition untested. Keep measurements from before reset, register readback after reset and the actual rate after wake. AT86RF233 datasheet, CLKM reset and shadow notes

Cycle length makes the effect visible. At 16 MHz one cycle is 62.5 ns. At 1 MHz the cycle is 1 µs, a factor of 16. Suppose the host UART was configured for 115200 baud from 16 MHz and keeps the same divider and all other conditions. At 1 MHz the nominal rate becomes 115200 ÷ 16, or 7200 baud. The example assumes no independent clock switch or automatic adjustment. Capture CLKM and verify whether TX bit periods move by the same factor. If radio reference error is only on the ppm scale, investigate dividers and routing for a factor-of-16 change.

Account for the default 1 MHz cold-start rate on the host as well. Section 7.1.4.1 gives about 330 µs typical to clock availability at power-up, with an initial 1 MHz output. A typical value is insufficient for a worst-case deadline. Host startup code that budgets 16 MHz for SPI, UART and timers must allow for the initial divided clock. Mark the first usable SPI configuration and the transition from default output to the requested rate in the capture. AT86RF233 datasheet, section 7.1.4.1

The wake initiator needs its own time base

For ordinary SLEEP, the datasheet gives a remaining interval of about 35 CLKM cycles after SLP_TR rises at applicable output rates above 250 kHz. CLKM then stops. At 16 MHz, 35 ÷ 16000000 is about 2.19 µs. At 1 MHz after a previous configuration change, the same count takes 35 µs. The available wall time differs, and neither interval allows arbitrary work. Complete required state storage and external actions before changing the sleep control, then measure the shortest available window on the target board. AT86RF233 datasheet, sleep and CLKM stop timing

Once CLKM stops, a host running from it cannot use the same clock to count toward wake. Identify the independent event that starts recovery, such as an asynchronous timer that stays running or an external control signal. A host with an independent oscillator can switch to a supported clock first, following its own datasheet. Review the shared crystal BOM savings alongside that wake path. Also distinguish ordinary SLEEP from DEEP_SLEEP. On exit from DEEP_SLEEP, the datasheet says CLKM starts at its default 1 MHz once the crystal has stabilised. Reapply the system configuration after that. AT86RF233 datasheet, SLEEP and DEEP_SLEEP exit behaviour

The open-source Linux IEEE 802.15.4 driver treats shadow selection and CLKM enable as separate initialisation actions. A system with an independent host clock can turn CLKM off to save power. Check that dependency before adopting the same actions on a board that takes the host clock from the transceiver. After the write that disables CLKM, such a host could lose the time base it needs to continue. Record that hardware dependency alongside the driver configuration. Linux at86rf230 series SPI driver, CLKM initialisation

Keep a complete state timeline during crystal qualification

Capture transceiver reset, SLP_TR and CLKM together. Add host TX or a clock diagnostic if useful. Run four cases independently: full cold boot, radio-only reset, wake from SLEEP, and wake from DEEP_SLEEP. Record TRX_CTRL_0 readback and measured rate in each case. For ordinary sleep, repeat after explicitly restoring the desired rate following reset, checking that the change occurs at the documented transition. A stable waveform at the wrong multiple directs attention to waveforms and register or host clock settings. If the availability delay changes between candidate crystals, investigate circuit startup and layout.

If a controlled external reference is used to isolate the crystal circuit, follow the XTAL1 input requirements. The datasheet specifies 400 mV to 1 V peak to peak for an external 16 MHz reference and leaves XTAL2 open. Condition an active source to the specified amplitude and verify it at the pin. An accurate CLKM under this stimulus still leaves SLEEP shadow behaviour and reconfiguration after deep sleep to test. AT86RF233 datasheet, section 9.6.3 external reference circuit

The 16 MHz sourcing record needs the complete ordering code, load conditions, maximum equivalent series resistance and drive limit. Board qualification should state the CLKM rate, whether the host has an independent clock and which sleep states must pass. Record the independent wake stimulus to show which side can operate when CLKM has stopped. Repeating cold boot and sleep tests with the same sequence separates component behaviour, retained settings and loss of the control clock.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.