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

📄 readme.c

📁 收音机模块TEA5767控制程序
💻 C
字号:
/*
	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 64 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)98.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!!

  

*/


⌨️ 快捷键说明

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