Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: FM Radio: Philips down to 76MHz // Signal strength indicator

Re: FM Radio: Philips down to 76MHz // Signal strength indicator

From: Matthias Larisch <tierchen_at_eow.ath.cx>
Date: 2005-12-29

So first problem on...

Does anyone know about updating the ADC readings?
Situation:
Philips TEA5767 measures IF Level through internal ADC. But register is
only updated on PLL change, that is what it seems to me.
I did even send RADIO_IF_MEASUREMENT command, so just update with old
data, to radiochip, but ADC value doesnt get updated... This is kinda
useless!

tuner_philips.c:
case RADIO_SIGNALSTRENGTH:
             val = read_bytes[3] >> 4;
             break;

radio.c:

#if CONFIG_TUNER == TEA5767
                                radio_set(RADIO_IF_MEASUREMENT,0); //This call is needed for
correct SignalStrength Reading
                        #endif
[...]
  #if CONFIG_TUNER == TEA5767
                 signal_strength=radio_get(RADIO_SIGNALSTRENGTH);
                 if(signal_strength != last_signal_strength)
                 {
                                         update_screen = true;
                                         last_signal_strength = signal_strength;
                                }
                        #endif

[...]
#if CONFIG_TUNER == TEA5767
                 snprintf(buf,32, "%s %d","Signalstaerke", signal_strength);
                 FOR_NB_SCREENS(i)
                   screens[i].puts_scroll(0,top_of_screen + 5, buf);
                 #endif

(I wont add this as patch until it works completely)

Any comments?

Matthias Larisch

Matthias Larisch wrote:
> Hey out there :)
>
> I just added support for Japanese radio - down to 76MHz on Philips FM chip.
>
> Currently working on Signalstrength indicator (32 step, onchip, readable
> through i2c)
>
> Patch follows.
>
> Bye,
> Matze
>
>
Received on Thu Dec 29 00:18:18 2005


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa