tea5767

所属分类:嵌入式/单片机/硬件编程
开发工具:C/C++
文件大小:88KB
下载次数:43
上传日期:2010-06-02 09:22:04
上 传 者lshbinhu
说明:  Philip提供的Tea5767程序 其中已建好了Keil工程
(Philip provided Tea5767 procedures which have been built the Keil project)

文件列表:
tea5767\tuner.h (1650, 2002-03-08)
tea5767\tuner_old.c (25396, 2002-03-04)
tea5767\util.c (5049, 2002-03-08)
tea5767\Util.h (1269, 2002-01-15)
tea5767\Display.h (1169, 2008-08-02)
tea5767\Global.h (4289, 2002-03-08)
tea5767\HMPU2.DAT (12, 2002-03-21)
tea5767\HMPU51.DAT (13, 2002-03-21)
tea5767\iic.c (3057, 2002-03-08)
tea5767\Key.c (3816, 2002-02-27)
tea5767\KEY.H (3018, 2002-02-27)
tea5767\Key_100.h (3098, 2002-01-22)
tea5767\LCD.C (24599, 2002-03-07)
tea5767\LCD.H (4070, 2002-01-25)
tea5767\main.c (2622, 2002-03-20)
tea5767\SPL10.C (7372, 2002-01-25)
tea5767\SPL10.H (1855, 2002-01-24)
tea5767\TP.Uv2 (2493, 2010-05-28)
tea5767\tuner.c (25378, 2002-03-25)
tea5767\TP.plg (2113, 2010-06-02)
tea5767\TP.lnp (141, 2010-06-02)
tea5767\TP.M51 (72848, 2010-06-02)
tea5767\tuner.LST (44846, 2010-06-02)
tea5767\tuner.OBJ (17333, 2010-06-02)
tea5767\main.LST (5278, 2010-06-02)
tea5767\main.OBJ (1040, 2010-06-02)
tea5767\util.LST (9417, 2010-06-02)
tea5767\util.OBJ (2036, 2010-06-02)
tea5767\Key.LST (7103, 2010-06-02)
tea5767\Key.OBJ (1807, 2010-06-02)
tea5767\Lcd.LST (45910, 2010-06-02)
tea5767\Lcd.OBJ (14925, 2010-06-02)
tea5767\Spl10.LST (14363, 2010-06-02)
tea5767\Spl10.OBJ (2864, 2010-06-02)
tea5767\TP_Opt.Bak (1228, 2010-06-02)
tea5767\TP.Opt (1228, 2010-06-02)
tea5767 (0, 2010-06-02)
... ...

/* 1) The comuication is ok for send data 2) can control the swport1/2 now. It is ssem that the XTAL 13M not stable!!! 3) NOW THE READ IS OK. CAN MAKE PORT1 HIGH OR LOW!! 4)SWPort1 as a input to indicate the Preset or search Finished. and swport2 as output PIN .so Byte4.0 = 1 It is also Test ok for write /read!!!! Now we will do the really function!! ////////////////// 1).Modify the Init and test the Preset function!!.. It is ok!! 2)Make the subroutine of assemdata/disassemdata is ok now!!! 3)Preset station is ok.can control SWPORT2 high/low. we search up, level 1. audio mute r/l!!! so byte1=11xx ,xxxx byte2=xxxx,xxxx byte3=101x,xxxx. But the read value after search is same!! so the databuffer is updated after serch command!! so we change back to audio r/l not mute now!! 01xx,xxxx. 5)add BYTE LowCount for test the times of cheching SWPORT1 from Low to high indicating the tuning is ready!!! /////item 6 will check later!!!?????????? 6)Why the byte1.7 is 0. but byte1.6=1. That is mean tuning is busy. but second bit indicated BL reched!! so Tomorow,I will change the command over indication way from SWPORT1 to read the BIT only. It is will change the init value byte4.!!! /////////////////////// 1)While power on,frist init tuner. then perform AST.and auto save staion BITS[0--13] to station array. for every stion have to 2 Byte. so if you want display the Freq. disassemble the bits to Freq is ok.!! 2)add the AST function!!The AST control flow is right.But always can not found the station!!! 3)only found station we can set preset to TunerStation[0].!!! 4)add if(SearchedVCO > PresetVCO) to CHK chearck up is ok!!! /////////// 5)add key.c // key reading period is about *** ms output is gbNewKey. 6)add lcd.c for display!! 7)In turn.c add the display FM Freq Function!!! 8)power on, the LCD display Radio on LCD //////////////0128 1)change the PIN define.. 2)debug ok for LCD /key function. But the serach can not working!! /////////////0226 1)check the before issue: Why the byte1.7 is 0. but byte1.6=1. That is mean tuning is busy. but second bit indicated BL reched!! so Tomorow,I will change the command over indication way from SWPORT1 to read the BIT only. It is will change the init value byte4.!!! reading byte1.7=1 serach tuning over. byte1.6=1 band limited . use this two bits to CHK search result.!!! 2)Change the Freq<--->Bitssub routing,because the 5767 IF=225kHz not 10.7Mhz. 3)Test the assembledata() is ok. Freq--->data bits ok!!!! 4)Test the DisAssembledata() is ok. Freq---data bits ok!!!! 5)Test to control the swp2 high/low ok!! ////////////////// 6)The read out data BIT wrong?? will CHK read out subrouting???? 7)The ready bit always "0" ,Why?????!!!. //////0227 1)P2/P1 as a GPIO. and test can control them ok. 2)while Preser will send coomand then do not wait tune over or read out data.??? 3)FR/FF preset Freq+/- 100KHz...from 87.5Mhz!! 2)use the reading byte1.7=1 serach tuning over. byte1.6=1 band limited . use this two bits to CHK search result.!!! ????? ////0228 1)sound out . //Init 89.796Mh p1/p2 all low.and SWPORT1 as GPIO. XTAL= 32K 2)***.8/97.1 sound ok!! ////0301 1)while search the PLL value must send also. the unit will search base on the Freq and direction serach a best radio station!!! 2)add search ok!! 3)It is seem that rhe search over flag is not ok useing SWPORT2???!!! How about BIT CHK>!!!. some sometimes the station can not found.!! ////0308 1)ALl key and display ok!!! 2)USe THe I@C mode the read data ok Bit7/6 is ok!!! /////0320 1)swp1 AS THE fOUND FLAG . ok!!! 2)add ChechSearch() and OptiumInjection() for best search function!! ///0325 1)CHAGE THE I2C ROUTINE,add LCD_I2cSendData() for 8566 LCD driver!! */

近期下载者

相关文件


收藏者