• 大小: 1.46MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-05
  • 语言: 其他
  • 标签: AM  FM  

资源简介

BK1088 AM/FM 晶片 文档及原代码

资源截图

代码片段和文件信息

#include “bk_common.h“
#include 

#define REG_READ_START 0x0a
#define REG_WRITE_START 0x02
#define REG_END 0x0f

#define REG_BANK1_READ_START 0x09
#define REG_BANK1_WRITE_START 0x00

extern xdata unsigned char n_SequenceNumber;
extern volatile bit bExtIntr0;

extern UINT8 b_start_scan;
extern UINT16 device_id;

extern UINT8 b_tx_mode;


#ifdef BK1088_CHIP
#ifdef BK1088_VB1
#define MAX_FREQ_DEVIATION 0x1ff
#define NEGATIVE_FREQ 0x100
//#define FREQ_THREASHOLD 60
//#define LAST_FREQ_THREASHOLD 70
#else
#define MAX_FREQ_DEVIATION 0x1ff
#define NEGATIVE_FREQ 0x100
//#define FREQ_THREASHOLD 25
//#define LAST_FREQ_THREASHOLD 50
#endif

#define FREQ_THREASHOLD_AM 0x0a

#else
#define MAX_FREQ_DEVIATION 0xfff
#define NEGATIVE_FREQ 0x800
//#define FREQ_THREASHOLD 150
//#define LAST_FREQ_THREASHOLD 150

#endif

//param changed to variable
UINT8 g_param_FREQ_THREASHOLD;
UINT8 g_param_LAST_FREQ_THREASHOLD;
UINT8 g_param_RSSI_FM;
UINT8 g_param_RSSI_AM;
UINT8 g_param_SNR_FM;
UINT8 g_param_SNR_AM;

UINT8 g_param_impuse_counter_FM;
UINT8 g_param_impuse_counter_AM;
UINT16 g_param_tune_fm_delay;
UINT16 g_param_tune_am_delay;


//extern UINT16 g_freq_deviation_array[1081-760];  //max length=channel number
UINT16 g_last_freq_deviation_value;

UINT8 reg7_v[2];



UINT8 g_band_index;
UINT8 g_space_index;
extern UINT8 b_AM;

UINT8 current_volume;
extern UINT8 b_RDS_enable;
extern UINT8 g_speed_div;

#ifndef LCD_SUPPORT
extern UINT8 last_sbit_spi_fm_am_switch;
extern UINT8 last_sbit_spi_am_SW_switch;
#else
extern UINT8 band_type_select_switch;//
extern UINT8 last_sbit_spi_Band;
#endif


#ifdef BK1088_CHIP
code UINT16 bandSEL_bottom[]={8700 760064006400 2300 522 153520};
code UINT16 bandSEL_top[]=   {1080091007600108002300017102791710};
code spaceSEL[]={200100501010951};
#else
code UINT16 bandSEL_bottom[]={875076007600};
code UINT16 bandSEL_top[]={10800108009000};
code spaceSEL[]={20010050};
#endif


UINT8 last_freq_hit[2];




#ifdef LCD_SUPPORT
extern xdata UINT8 LCD_Display_Str1[50];
extern xdata UINT8 LCD_Display_Str2[50];
extern void LCD_display();


code char band_str[6][16]= 
{
“FM 87.0-108.0MHz“
“MW 520-1710KHz“
“SW 2.3-23.0MHz“
“LW 153-279KHz“
“L1“
“L2“
};

code UINT16 SW_Multi_Band[]={2300315038504700570070809200114501350015000174501885021430};


void LCD_Update_band(UINT8 index)
{


/// strcpy(LCD_Display_Str1band_str[index]);
// strcpy(LCD_Display_Str2band_str[index]);
LCD_Display_Str2[0]=band_str[index][0];
LCD_Display_Str2[1]=band_str[index][1];


index=0;
   
while(index<12)
LCD_Display_Str1[index++]=‘ ‘;

LCD_display();

}

UINT8 Float_Display(UINT16 freqUINT8 index)
{

UINT8 b_hit=0;
if(freq>=10000)
{
LCD_Display_Str1[index++]=freq/10000+‘0‘;
freq=freq%10000;
b_hit=1;
}

if(freq>=1000)
{
LCD_Display_Str1[index++]=freq/1000+‘0‘;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      26786  2012-02-28 17:31  硬件\BK1088三波段原理图.pdf

     文件     715431  2012-06-26 14:51  硬件\Demo板原理图及PCB\PCB-BK108X_DEMO_V3_SSOP20_120626_1500release.pcb

     文件    2228224  2012-06-26 16:43  硬件\Demo板原理图及PCB\SCH-BK108X_DEMO_V3_SSOP20_120626.DSN

     文件      42037  2012-06-26 16:42  硬件\Demo板原理图及PCB\SCH-BK108X_DEMO_V3_SSOP20_120626.pdf

     文件      37719  2012-07-10 10:52  软件\1088E Demo板代码\App.c

     文件       8434  2012-08-30 11:18  软件\1088E Demo板代码\bk_common.h

     文件      16196  2010-07-28 16:14  软件\1088E Demo板代码\c8051F320.h

     文件      30385  2012-09-13 11:31  软件\1088E Demo板代码\main.c

     文件      10520  2012-05-11 09:47  软件\1088E Demo板代码\Spi_RW_new.c

     文件    1296767  2012-09-24 14:55  文档\BK1086-88E数据手册v1.2.pdf

     文件    1157686  2012-09-14 09:43  文档\BK1086-88应用手册v1.4.pdf

     文件      18500  2012-09-12 15:13  文档\BK1088E与BK1088的异同.docx

     文件      66623  2012-09-21 17:31  文档\BK1088E调试指导.pptx

     文件      81190  2008-06-12 19:41  文档\汽车音响指标测试方法.doc

     目录          0  2012-09-12 10:03  硬件\Demo板原理图及PCB

     目录          0  2012-09-12 10:33  软件\1088E Demo板代码

     目录          0  2012-09-12 10:05  硬件

     目录          0  2012-09-12 10:44  软件

     目录          0  2012-09-24 14:56  文档

----------- ---------  ---------- -----  ----

              5736498                    19


评论

共有 条评论