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