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

📄 vco.lst

📁 此程序是关于锁相芯片BU2614,直接解压后即可使用其中的源码。开发环境是KEILC51
💻 LST
📖 第 1 页 / 共 2 页
字号:
 177                                         
 178          {0x00,0x00,0x7c,0x14,0x14,0x14,0x08,0x00},/*p*/
 179                                         
 180          {0x00,0x00,0x08,0x14,0x14,0x14,0x7c,0x00},/*q*/
 181                                         
 182          {0x00,0x00,0x7c,0x08,0x04,0x04,0x08,0x00},/*r*/
 183                                         
 184          {0x00,0x00,0x48,0x54,0x54,0x54,0x20,0x00},/*s*/
 185                                          
 186          {0x00,0x00,0x04,0x3f,0x44,0x44,0x24,0x00},/*t*/
 187                                         
 188          {0x00,0x00,0x3c,0x40,0x40,0x20,0x7e,0x00},/*u*/
 189                                         
 190          {0x00,0x00,0x1c,0x20,0x40,0x20,0x1c,0x00},/*v*/
 191                                         
 192          {0x00,0x00,0x3c,0x40,0x30,0x40,0x3c,0x00},/*w*/
 193                                         
 194          {0x00,0x00,0x44,0x28,0x10,0x28,0x44,0x00},/*x*/
 195                                         
 196          {0x00,0x00,0x06,0x48,0x48,0x48,0x3e,0x00},/*y*/
 197                                         
 198          {0x00,0x00,0x44,0x64,0x54,0x4c,0x44,0x00},/*z*/
 199                                         
 200          {0x00,0x00,0x00,0x01,0x02,0x04,0x00,0x00},/*`*/
 201                                         
 202          {0x00,0x00,0x00,0x42,0x7f,0x40,0x40,0x00},/*1*/
 203                                         
 204          {0x00,0x00,0x62,0x51,0x51,0x49,0x46,0x00},/*2*/
 205                                         
 206          {0x00,0x00,0x21,0x41,0x45,0x4b,0x31,0x00},/*3*/
 207                                         
 208          {0x00,0x00,0x18,0x14,0x12,0x7f,0x10,0x00},/*4*/
 209                                         
 210          {0x00,0x00,0x27,0x45,0x45,0x45,0x39,0x00},/*5*/
 211                                         
 212          {0x00,0x00,0x3c,0x4a,0x49,0x49,0x30,0x00},/*6*/
 213                                         
 214          {0x00,0x00,0x01,0x71,0x09,0x05,0x03,0x00},/*7*/
 215                                         
 216          {0x00,0x00,0x36,0x49,0x49,0x49,0x36,0x00},/*8*/
 217                                         
 218          {0x00,0x00,0x06,0x49,0x49,0x29,0x1e,0x00},/*9*/
 219                                         
 220          {0x00,0x00,0x3e,0x51,0x49,0x45,0x3e,0x00},/*0*/  
 221                                         
 222          {0x00,0x00,0x08,0x08,0x08,0x08,0x08,0x00},/*-*/
 223                                         
 224          {0x00,0x00,0x14,0x14,0x14,0x14,0x14,0x00},/*=*/
 225                                         
 226          {0x00,0x00,0x01,0x02,0x08,0x10,0x20,0x00},/*\\*/
 227                                         
 228          {0x00,0x00,0x04,0x08,0x04,0x08,0x04,0x00},/*~*/
 229                                         
 230          {0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x00},/*!*/
 231                                         
 232          {0x00,0x00,0x3e,0x59,0x55,0x79,0x3e,0x00},/*@*/
 233                                         
 234          {0x00,0x00,0x14,0x7f,0x14,0x7f,0x14,0x00},/*#*/
 235                                         
 236          {0x00,0x00,0x24,0x2a,0x7f,0x2a,0x12,0x00},/*$*/
C51 COMPILER V7.50   VCO                                                                   12/06/2006 18:51:03 PAGE 5   

 237                                         
 238          {0x00,0x00,0x23,0x13,0x08,0x62,0x61,0x00},/*%*/
 239                                         
 240          {0x00,0x00,0x04,0x02,0x01,0x02,0x04,0x00},/*^*/
 241                                         
 242          {0x00,0x00,0x36,0x49,0x55,0x22,0x50,0x00},/*&*/
 243                                         
 244          {0x00,0x00,0x14,0x08,0x3e,0x08,0x14,0x00},/***/
 245                                         
 246          {0x00,0x00,0x00,0x1c,0x22,0x41,0x00,0x00},/*(*/
 247                                         
 248          {0x00,0x00,0x00,0x41,0x22,0x1c,0x00,0x00},/*)*/
 249                                         
 250          {0x00,0x00,0x40,0x40,0x40,0x40,0x40,0x00},/*_*/
 251                                         
 252          {0x00,0x00,0x08,0x08,0x3e,0x08,0x08,0x00},/*+*/
 253                                         
 254          {0x00,0x00,0x00,0x00,0x7e,0x00,0x00,0x00},/*|*/
 255                                         
 256          {0x00,0x00,0x00,0x7f,0x41,0x41,0x00,0x00},/*[*/
 257                                         
 258          {0x00,0x00,0x00,0x41,0x41,0x7f,0x00,0x00},/*]*/
 259                                         
 260          {0x00,0x00,0x00,0x56,0x36,0x00,0x00,0x00},/*;*/
 261                                         
 262          {0x00,0x00,0x00,0x00,0x05,0x03,0x00,0x00},/*'*/
 263                                         
 264          {0x00,0x00,0x00,0x00,0x28,0x18,0x00,0x00},/*,*/
 265                                         
 266          {0x00,0x00,0x00,0x00,0x60,0x60,0x00,0x00},/*.*/
 267                                         
 268          {0x00,0x00,0x20,0x10,0x08,0x04,0x02,0x00},/*//*/
 269                                         
 270          {0x00,0x00,0x00,0x08,0x36,0x41,0x00,0x00},/*{*/
 271                                         
 272          {0x00,0x00,0x00,0x41,0x36,0x08,0x00,0x00},/*}*/
 273                                         
 274          {0x00,0x00,0x00,0x36,0x36,0x00,0x00,0x00},/*:*/
 275                                         
 276          {0x00,0x00,0x00,0x00,0x07,0x00,0x07,0x00},/*"*/
 277                                         
 278          {0x00,0x00,0x08,0x14,0x22,0x41,0x00,0x00},/*<*/
 279                                         
 280          {0x00,0x00,0x00,0x41,0x22,0x14,0x08,0x00},/*>*/
 281                                         
 282          {0x00,0x00,0x02,0x01,0x51,0x09,0x06,0x00}/*?*/
 283          }; 
 284          
 285          ////////////////////////////////////////////////////////////////////////////////////////////////////
 286          
 287          void leddisp(void); //数码管显示函数
 288          void readkey(void); //读键盘函数
 289          void  delay(uint8 time_nop);
 290          /////////////////////////////////////////////////////////////////////////////////////////////////////88888
             -8888
 291          
 292          void initial_vco(void);
 293          
 294          void stop(void);/////////////////////f
 295          void runfre(void);///////////////////e
 296          void changfre(void);/////////////////d
 297          void addfre(void);///////////////////c
C51 COMPILER V7.50   VCO                                                                   12/06/2006 18:51:03 PAGE 6   

 298          void subfre(void);///////////////////b
 299          void measureamp(void);//测幅度
 300          //void measurefre(void);//
 301          ///////////////////////////////////////////////////////////////////////////////////////////////////8888888
             -8888
 302          /**********************************
 303            液晶驱动函数
 304          ***********************************/
 305          void lcdlon_off(uchar D);
 306          void setlstartx(uchar D);
 307          void setlstarty(uchar D);
 308          void setlstartline(uchar D);
 309          void lcdron_off(uchar D);
 310          void setrstartx(uchar D);
 311          void setrstarty(uchar D);
 312          void setrstartline(uchar D);
 313          void lcdlwrite(uchar D);
 314          void lcdrwrite(uchar D);
 315          uchar GetIndex(uchar szText);
 316          
 317          void writerun(void);
 318          void writelcdding(uchar hang,uchar lie,uchar num);
 319          void writelcd(uchar worddata[dataleng]);
 320          
 321          void initial_lcd(void);
 322          void clear_lcd(void);
 323          
 324          //void lcddisp(void);
 325          //uchar xdata*getcode(uchar temp);
 326          /**********************************
 327                  24c16驱动函数
 328          **********************************/
 329          
 330          /*void  Start_I2c(void);
 331          void  Stop_I2c(void);
 332          uint8 SendByte(uint8 c);
 333          uint8 RcvByte(void);
 334          void  Ack_I2c(uint8 a);
 335          uint8 ISendByte(uint8 sla,uint8 c);
 336          uint8 ISendStr(uint8 sla,uint8 suba,uint8 *s,uint8 no);
 337          uint8 IRcvByte(uint8 sla,uint8 *c);
 338          uint8 IRcvStr(uint8 sla,uint8 suba,uint8 *s,uint8 no);
 339          void  write_24lc16b(uint16 adrress, uint8 *wdata, uint8 number);
 340          void  read_24lc16b(uint16 adrress, uint8 *rdata, uint8 number);
 341          */
 342          
 343          
 344          
 345          //////////////////////////////////////////////////////////////////////////////////////////////////////////
             -主函数
 346          void main(void)
 347          {
 348   1              CE=0;////关BU2614
 349   1              TMOD = 0x51;    //
 350   1          TH1=0;
 351   1          TL1=0;
 352   1              TH0 = 62975/256;  //定时器中断时间间隔 4ms
 353   1              TL0 = 62975%256;
 354   1              TR0=1;
 355   1          TR1=0;
 356   1      
 357   1              PT0=1;
C51 COMPILER V7.50   VCO                                                                   12/06/2006 18:51:03 PAGE 7   

 358   1      
 359   1      
 360   1      //中断允许
 361   1              EA = 1;
 362   1      //      EX1=1//

⌨️ 快捷键说明

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