⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tuner_philips_fq1216.h

📁 TERAWINS T108DL TUNER 调试代码
💻 H
字号:
#include "common.h"
#define TUNER						TUNER_FQ1216         // Philips FQ1216

//==================== PHILIPS FQ1216 ====================
//------- Address Byte (ADB)
#define TUNER_ADB                 0xC0 | TUNER_MA1 | TUNER_MA0// (ADB) Tuner Address
#define TUNER_IF_ADB              0x86                        // (ADB) Tuner IF Address
#define TUNER_IF_SDA              0x00                        // (SDA) Tuner IF Subaddress 

//------- Control information Byte1 (CB1)
#define TUNER_RS                  TUNER_RS_6250               // Ratio select bits
#define TUNER_CB1                 0x80 | TUNER_CP | TUNER_RS | TUNER_OS  // (CB1) Control information Byte 1

//------- Control information Byte2 (CB2)
// Band Switching
#define TUNER_BS_L_BAND           0x01                        // Band switching value in low band
#define TUNER_BS_M_BAND           0x02                        // Band switching value in middle band
#define TUNER_BS_H_BAND           0x04                        // Band switching value in high band

// Frequency limit of band
#define TUNER_L_BAND_MIN_FREQ     FREQ_NTSC( 55.25, MHZ)       // Minimum frequency of low band
#define TUNER_M_BAND_MIN_FREQ     FREQ_NTSC(133.25, MHZ)       // Minimum frequency of middle band
#define TUNER_H_BAND_MIN_FREQ     FREQ_NTSC(367.25, MHZ)       // Minimum frequency of high band

//------- AFC control function
#define TUNER_AFC_CONTROL         ON                          // AFC control function

// -----------------------------------------------------------------------------
//   Tuner Related Parameter Declaration
// -----------------------------------------------------------------------------
//------- Define tuner type according to selected tuner module
//------- Dedine tuning step-size according to tuner ratio select bits
#if   (TUNER_RS==TUNER_RS_50)
	#define TUNER_DIV_RATIO           FREQ( 50.00, KHZ)
#elif (TUNER_RS==TUNER_RS_3125)
	#define TUNER_DIV_RATIO           FREQ( 31.25, KHZ)
#elif (TUNER_RS==TUNER_RS_6250)
	#define TUNER_DIV_RATIO           FREQ( 62.50, KHZ)
#endif

void Tuner_CalChannelFreq(void);
void Tuner_WriteFreq(BOOL afUpDn);
BOOL Tuner_AFC_Control(void);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -