From 078ec875b602d008735ed6b9bd009f01722676b7 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 26 Aug 2010 15:48:29 -0300 Subject: [PATCH] Disable CLKM in atspi-txrx, to reduce interferences. - atrf/tools/atspi-txrx/atspi-txrx.c: disable CLKM when sending or receiving - TODO: minor edit, missed in last commit --- TODO | 2 +- atrf/tools/atspi-txrx/atspi-txrx.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index ecaf836..04104d1 100644 --- a/TODO +++ b/TODO @@ -55,7 +55,7 @@ Things not done yet - verify that the Ben can output an a) 16 MHz clock, and b) with +/- 40 ppm - replace discrete balun and filter with integrated solution, to reduce BOM - size, maybe cost, insertion loss, and PCB space (see ECN0003) + size, maybe cost, insertion loss, and PCB space (see ATRF/ECN0003) - check if we really need three DC blocking caps in the RF path diff --git a/atrf/tools/atspi-txrx/atspi-txrx.c b/atrf/tools/atspi-txrx/atspi-txrx.c index ed7f4b3..8b9debc 100644 --- a/atrf/tools/atspi-txrx/atspi-txrx.c +++ b/atrf/tools/atspi-txrx/atspi-txrx.c @@ -57,6 +57,7 @@ static usb_dev_handle *init_txrx(int trim) atspi_reg_write(dev, REG_TRX_STATE, TRX_CMD_TRX_OFF); atspi_reg_write(dev, REG_XOSC_CTRL, (XTAL_MODE_INT << XTAL_MODE_SHIFT) | trim); + atspi_reg_write(dev, REG_TRX_CTRL_0, 0); /* disable CLKM */ return dev; }