资源简介
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
相关资源
- The Complete Friday Q&A_ Volume I244826
- ROS Robotics By Example - Second Edition_Code.
-
jeesite-fr
amework-4.1.3-20190307-src.zip - State Estimation for Robotics 机器人学中的
- 亚马逊MWS开发介绍
- Intel 80386 Reference Programmers Manual-i386技
- dataManager.zip
- ATMEL AT91SAM7S64的RS485通讯程序源码
- ADAMS_View创建车辆轮胎路面步骤
- Adams柔性体、函数、参数化一点资料
- H61H2-AM3.zip
- Rigid Body Dynamics Algorithms Featherstone R
- AMBA3.0协议规范汇总
- steam授权文件合集密码:www.smzy.com
- 基于DE2 115开发板的SRAM测试代码
- Expert C Programming Deep C Secrets (C 专家编
-
Fundamentals of Databa
se Systems(ElmasriN - 基于FPGA的16QAM的调制解调系统的研究
- 基于结构网格二维Euler方程的Jameson求
- AMX,快思聪,CREATOR,ITAV中控编程教程
- 豆瓣FM源码
- pygame实现的弹珠游戏源码
- 摄像头Camera图像测试项目及简介——
- Redhat7.3局域网使用ambari安装大数据平
- sdram verilog
- Infragistics NetAdvantage for Windows Forms 20
- 复分析基础及工程应用 答案 fundamen
- dreamwave中div+css模板,适合企业网站的
- System Dynamics and Control with Bond Graph Mo
- American accent training Grammar
评论
共有 条评论