tea5763.h

来自「调频收音机芯片5763的驱动代码,C语言编写,直接移植即可,代码已经验证OK」· C头文件 代码 · 共 30 行

H
30
字号
/*-------------------------------------------------------

	Property of Synergy Digital Technology Ltd.

	Question/comment : chifai.cheung@synergytech.cn

	Complier : Keil uvision C-51

-------------------------------------------------------*/


#define I2C_ADDR	0x22			// I2C base address of TEA5763
#define	LLIMIT		0x2458			// PLL value for lower limit of 76MHz
#define	ULIMIT		0x339B			// PLL value for upper limit of 108MHz
#define	WBUF3		0x40			// 0x40 - US/Europe FM Band, 0x60 - Japanese FM Band
#define	WBUF4		0x60 | 0x10		// 0x00 - ADC3, 0x20 - ADC5, 0x40 - ADC7, 0x60 - ADC10
									// 0x00 - low-side injection, 0x10 - high-side injection
#define ONEMS		0x10			// Adjust ONEMS so that delay_ms(1) runs for 1ms 

extern unsigned char readbuf[16];
extern unsigned char writebuf[7];

void delay_ms(unsigned);
void fm_tune(unsigned);
void fm_scan(unsigned);
void fm_write();
void fm_read();
unsigned long pll2frq(unsigned);
unsigned frq2pll(unsigned long);

⌨️ 快捷键说明

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