From d0f6c214b5b644868bd523461fe4b3a9973bb520 Mon Sep 17 00:00:00 2001 From: wh201906 Date: Mon, 23 Aug 2021 16:20:56 +0800 Subject: [PATCH] Fix the STCIEN bit in register 0x04 Bit14 STCIEN is the 15th bit(BIT0 is the 1st bit) To enable Seek/Tune interrupt, write 0x4000 rather than 0x2000 to register 0x04 --- src/SparkFunSi4703.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SparkFunSi4703.cpp b/src/SparkFunSi4703.cpp index fda0919..01c3a8a 100644 --- a/src/SparkFunSi4703.cpp +++ b/src/SparkFunSi4703.cpp @@ -130,7 +130,7 @@ void Si4703_Breakout::si4703_init() readRegisters(); //Read the current register set //si4703_registers[0x07] = 0xBC04; //Enable the oscillator, from AN230 page 9, rev 0.5 (DOES NOT WORK, wtf Silicon Labs datasheet?) si4703_registers[0x07] = 0x8100; //Enable the oscillator, from AN230 page 9, rev 0.61 (works) - si4703_registers[0x04] |= 0x2000; //Set bit 14 to high to enable STC Interrupt on GPIO2 + si4703_registers[0x04] |= 0x4000; //Set bit 14 to high to enable STC Interrupt on GPIO2 updateRegisters(); //Update delay(500); //Wait for clock to settle - from AN230 page 9