?? readme.txt
字號:
This is a explanation of QAM-NIM (TCMU30311PSB).
*Main source parts are user_if.c,host_api.c.
*The other files are only for demostrating.
To decrease Aquisition time, We revision Software.
If you coded old version before, you re-edit program as follow.
It's very easy.
1. exchange AGC_Adapt() function --> AGC_Adapt_2().
void Adapt_AGC_2()
{
int ival,qval,esti;
int loop = 1;
/* NIM qam */
qam_read(MB_R,MB_LDAI,&ival,&qval);
// printf("ival : %d",ival);
if(ival < -20000)
{
T_AGC = 100;//strong input level
}
else if(ival < 30000)
{
T_AGC = 110;//normal input level
}
else
{
T_AGC = 120;//weakly input level
}
Tuner_AGC(T_AGC);
}
2. Acquisition process are followed.
QAM_Init();
Adapt_AGC_2();
MY_Acquisition();
Appendix. Checking function is follow.
void Check_Lock()
{
int ival,qval;
/* Check for FEC lock only if QAM_LOCK */
/* Read the IRQ register to see if FEC in lock */
qam_read(SB_R,SB_IRQCTL,&ival,&qval);
if ((ival & 0x08) == 0x08) {
qam_status.status |= FEC_LOCK_STATUS;
} else {
qam_status.status &= (~FEC_LOCK_STATUS);
/* if auto lock enabled and out of lock, reacquire */
QAM_Init();
Adapt_AGC_2();
My_Acquisition();
}
}
-END-
* Caution : Using this source code, the old version sample doesn't work.
If you have any quesiton,
feel free to send a mail. (papilon@samsung.co.kr)
Friendly Regards.
Kim sungki
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -