Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
antenna switch, sound volume control, improved spectral scan
Browse files Browse the repository at this point in the history
  • Loading branch information
kkonradpl committed Nov 12, 2013
1 parent cb7113b commit 669709a
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 105 deletions.
1 change: 1 addition & 0 deletions align.h
@@ -0,0 +1 @@
void align(uint32_t);
43 changes: 43 additions & 0 deletions align.ino
@@ -0,0 +1,43 @@
void align(uint32_t freq)
{
// alignment of the antenna circuit
// these values are individual for each tuner!

if(freq>=107300)
DAA = 52;
else if(freq>=104500)
DAA = 53;
else if(freq>=100400)
DAA = 54;
else if(freq>=97500)
DAA = 55;
else if(freq>=95600)
DAA = 56;
else if(freq>=92900)
DAA = 57;
else if(freq>=90500)
DAA = 58;
else if(freq>=87800)
DAA = 59;
else if(freq>=87000)
DAA = 60;
else if(freq>=85000)
DAA = 61;
else if(freq>=84000)
DAA = 62;
else if(freq>=83000)
DAA = 63;
else if(freq>=78000)
DAA = 64;
else if(freq>=76000)
DAA = 65;
else if(freq>=74000)
DAA = 66;
else if(freq>=73000)
DAA = 67;
else if(freq>=70000)
DAA = 69;
else
DAA = 70;
}

5 changes: 3 additions & 2 deletions xdr_f1hd.h
Expand Up @@ -5,6 +5,7 @@

#define DSP_FM_LEVEL 0x030092
#define DSP_AM_LEVEL 0x03006E
#define DSP_VOLUME_SCALER 0x031011
#define DSP_ST_19kHz 0x03102C
#define DSP_DEEMPHASIS 0x0311D7

Expand Down Expand Up @@ -514,7 +515,7 @@ const uint8_t DSP_FM[] PROGMEM =
6,0x01,0x0F,0xF5,0xE2,0x76,0x28,
6,0x05,0x0F,0xF5,0xE2,0x50,0x8D,
6,0x05,0x0F,0xF9,0x00,0x00,0x17,
5,0x03,0x10,0x11,0x06,0x5A,
// 5,0x03,0x10,0x11,0x06,0x5A,
5,0x00,0x00,0x34,0x30,0x20, // RDS sync mode - max 2 bits error correctable blocks are handled as vaild
5,0x00,0x00,0x35,0x00,0x60, // RDS fast pi mode & reset sync
0
Expand All @@ -541,7 +542,7 @@ const uint8_t DSP_AM[] PROGMEM =
6,0x01,0x0F,0xF5,0xE2,0x76,0x28,
6,0x05,0x0F,0xF5,0xE2,0x75,0xC1,
5,0x03,0x11,0x27,0x0F,0xEC,
5,0x03,0x10,0x11,0x07,0x21,
// 5,0x03,0x10,0x11,0x07,0x21,
0
};

0 comments on commit 669709a

Please sign in to comment.