unseen
Newbie level 5
i2c radio
Hi!
I got from a car radio, a TEA6820T+TEA6811 based stereo tuner.
https://www.alldatasheet.com/datashee.../TEA6820T.html
https://www.alldatasheet.com/datashee...S/TEA6811.html
For testing im using the parallel port in EPP mode. I made some software I2C routins, which I use for sending data according to datasheets, and it worked very well from start. However I spent almost 2 days trying to receive data from the IF IC (TEA6820) without any success. Im using a 74LS244 tri-state bus driver, checked the hardware separately and works fine.
By applying a slow clock rate, I can debug the whole reading process, and realized, that the IF IC does not react at all, the SDA line remains high all the time.
For now I'm only interested in first byte, particularily the level information for auto scan.
I would also highly appreciate, if somebody could explain the method of calculating the division ratios for the AM part.
The first thing that doesn't fits is the 1KHz step, (TEA6811 datasheet, page 12) since the IF IC can only deliver a minimum of 3KHz reference frequency.
We got a 10.7MHz AM IF from the front-end IC. I am totally confused on how to calculate the division ratios. (for N2=3 or 5,(any reference) I got nothing trough the whole tuning range, for 10 an 15 it worked with div rates around 55-60000)
(an example for FM: receive freq=100MHZ; reference=3KHz [100000+72200(FM IF)]/3 = 57400
Thank you!
Hi!
I got from a car radio, a TEA6820T+TEA6811 based stereo tuner.
https://www.alldatasheet.com/datashee.../TEA6820T.html
https://www.alldatasheet.com/datashee...S/TEA6811.html
For testing im using the parallel port in EPP mode. I made some software I2C routins, which I use for sending data according to datasheets, and it worked very well from start. However I spent almost 2 days trying to receive data from the IF IC (TEA6820) without any success. Im using a 74LS244 tri-state bus driver, checked the hardware separately and works fine.
By applying a slow clock rate, I can debug the whole reading process, and realized, that the IF IC does not react at all, the SDA line remains high all the time.
Code:
Function ReadDATA: Byte;
var
i,j : byte;
begin
x:=0;
DlPortWritePortUchar(LPT_Port,2); //Read buffer enable
For i := 0 to 7 do
begin
DlPortWritePortUchar(LPT_Port+2,4);//Sleep(0); SCL High
j:=(DlPortReadPortUchar(LPT_Port+1) AND $20);
if j>0 then j:=1 else j:=0;
x:=(x SHL 1) OR j;
DlPortWritePortUchar(LPT_Port+2,0);//Sleep(0); SCL Low
end;
//DlPortWritePortUchar(LPT_Port+2,0);Sleep(0); //SCL low for ACK/WRITE
DlPortWritePortUchar(LPT_Port,4+1);Sleep(0); //SDA high for NACK/WRITE
SCL; //Ack
result := x;
end;
Code:
Start;
WriteDATA($C3); //TEA6820T read address
ReadDATA;
Stop;
I would also highly appreciate, if somebody could explain the method of calculating the division ratios for the AM part.
The first thing that doesn't fits is the 1KHz step, (TEA6811 datasheet, page 12) since the IF IC can only deliver a minimum of 3KHz reference frequency.
We got a 10.7MHz AM IF from the front-end IC. I am totally confused on how to calculate the division ratios. (for N2=3 or 5,(any reference) I got nothing trough the whole tuning range, for 10 an 15 it worked with div rates around 55-60000)
(an example for FM: receive freq=100MHZ; reference=3KHz [100000+72200(FM IF)]/3 = 57400
Thank you!