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

📄 mtv230 test.lst

📁 车载显示屏
💻 LST
📖 第 1 页 / 共 5 页
字号:
C51 COMPILER V6.12  MTV230_TEST                                                            04/18/2007 11:29:40 PAGE 1   


C51 COMPILER V6.12, COMPILATION OF MODULE MTV230_TEST
OBJECT MODULE PLACED IN .\mtv230 test.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE .\mtv230 test.c BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          //上下,左右,比例,天线,TFT,SYSTEM,CHANNEL
   2          // 3------->81hz
   3          // 4------->61hz
   4          // 5------->48.8hz
   5          // 6------->40.6hz
   6          // 7------->34.8hz
   7          //		RF = 44.35;
   8          //		RF = RF + 0.35;
   9          //		RF = RF *100;
  10          //		V_test = RF ;
  11          
  12          
  13          #include "reg51.h"
  14          #include "intrins.h"
  15          #include "math.h"
  16          #include "mtv230.h"
  17          //#include "ir_key1.h"
  18          #include "ir_key2.h"
  19          
  20          sbit	clk=P3^4;
  21          sbit	sda=P3^5;
  22          sbit	mode_h=P1^7;
  23          sbit	mode_l=P1^6;
  24          
  25          
  26          
  27          uchar  bdata V_flag_buf;
  28          sbit   B_iic_buf_w=V_flag_buf^7;
  29          sbit   B_iic_buf_r=V_flag_buf^0;
  30          uchar  bdata V_ir_buf;
  31          sbit   B_ir_buf=V_ir_buf^7;
  32          uchar  bdata V_HVSTUS_buf;
  33          sbit   B_HVSTUS_7=V_HVSTUS_buf^7;
  34          sbit   B_HVSTUS_2=V_HVSTUS_buf^2;
  35          
  36          uchar  bdata V_sys_flag0;
  37          sbit   B_scan_ad=V_sys_flag0^0;
  38          sbit   B_in_key=V_sys_flag0^1;
  39          sbit   B_has_key=V_sys_flag0^2;
  40          sbit   B_mute=V_sys_flag0^3;
  41          sbit   B_dvd2av=V_sys_flag0^4;
  42          sbit   B_right2left=V_sys_flag0^5;
  43          sbit   B_up2down=V_sys_flag0^6;
  44          sbit   B_has_key_s=V_sys_flag0^7;
  45          
  46          uchar  bdata V_sys_flag1;
  47          sbit   B_rtc_1sec=V_sys_flag1^0;
  48          sbit   B_timer_dot=V_sys_flag1^1;
  49          sbit   B_scan_tv=V_sys_flag1^2;
  50          sbit   B_25215=V_sys_flag1^3;
  51          sbit   B_ir_start=V_sys_flag1^4;
  52          sbit   B_ir_bit=V_sys_flag1^5;
  53          sbit   B_ir_key=V_sys_flag1^6;
  54          sbit   B_ir_key_s=V_sys_flag1^7;
  55          
C51 COMPILER V6.12  MTV230_TEST                                                            04/18/2007 11:29:40 PAGE 2   

  56          uchar  bdata V_sys_flag2;
  57          sbit   B_scan_fm=V_sys_flag2^0;
  58          sbit   B_scan_c2f=V_sys_flag2^1;
  59          sbit   B_chk_syd=V_sys_flag2^2;
  60          sbit   B_channel_100=V_sys_flag2^3;
  61          sbit   B_432169=V_sys_flag2^4;
  62          sbit   B_search_tv=V_sys_flag2^5;
  63          sbit   B_search_fm=V_sys_flag2^6;
  64          sbit   B_chk_v=V_sys_flag2^7;
  65          
  66          uchar  bdata V_sys_flag3;
  67          sbit   B_dis_channel=V_sys_flag3^0;
  68          sbit   B_p2n_bak=V_sys_flag3^1;
  69          sbit   B_iic_err=V_sys_flag3^2;
  70          sbit   B_read_sync=V_sys_flag3^3;
  71          
  72          uchar  bdata V_sys_option;
  73          sbit   B_antenna=V_sys_option^0;
  74          sbit   B_p2n=V_sys_option^1;
  75          
  76          //====
  77          uchar  data  V_lo1_div1;
  78          uchar  data  V_lo1_div2;
  79          uchar  data  V_lo2_div1;
  80          uchar  data  V_lo2_div2;
  81          uchar  data  V_lo2_div3;
  82          uchar  data  V_BW;
  83          unsigned int  data  V_cnt_fm;
  84          
  85          uchar  data  V_divider1;
  86          uchar  data  V_divider2;
  87          uchar  data  V_control;
  88          uchar  data  V_band;
  89          
  90          uchar  data  V_ch_option0;
  91          uchar  data  V_ch_option1;
  92          uchar  data  V_ch_option2;
  93          
  94          uchar  data  V_v_byte3;
  95          uchar  data  V_v_byte4;
  96          uchar  data  V_v_byte5;
  97          uchar  data  V_cnt_channel;
  98          uchar  data  V_t_dis_channel;
  99          uchar  data  V_t_dis_menu;
 100          uchar  data  V_t_dis_volumn;
 101          
 102          
 103          uchar  data  V_cnt_channel_num;
 104          uchar  data  V_cnt_channel_mode;
 105          uchar  data  V_channel_num_temp;
 106          
 107          uchar  data  V_channel_add;
 108          
 109          unsigned int  data  V_scan_50ms;
 110          
 111          uchar  data  V_aft;
 112          uchar  data  V_t_key;
 113          uchar  data  V_t_key_s;
 114          uchar  data  V_cnt_key;
 115          uchar  data  V_key_val;
 116          
 117          unsigned int  data  V_osd_h;
C51 COMPILER V6.12  MTV230_TEST                                                            04/18/2007 11:29:40 PAGE 3   

 118          
 119          uchar  data  V_osd_l;
 120          uchar  data  V_vcnt1_l;
 121          uchar  data  V_vcnt1_h;
 122          uchar  data  V_cnt_125;
 123          uchar  data  V_cnt_250;
 124          
 125          uchar  data  V_cnt_aft;
 126          
 127          uchar  data  V_cnt_hand_fine;
 128          uchar  data  V_cnt_scan_key;
 129          uchar  data  V_key_temp;
 130          
 131          
 132          uchar  data  V_t_ir;
 133          uchar  data  V_t_ir_s;
 134          uchar  data  V_ir_val;
 135          uchar  data  V_ir_val_s;
 136          uchar  data  V_cnt_ir_bit;
 137          uchar  data  V_cnt_ir;
 138          uchar  data  V_ir_buf0;
 139          uchar  data  V_ir_buf1;
 140          uchar  data  V_ir_buf2;
 141          uchar  data  V_ir_buf3;
 142          
 143          uchar  data  V_initial0;
 144          uchar  data  V_initial1;
 145          uchar  data  V_initial2;
 146          uchar  data  V_initial3;
 147          
 148          uchar  data  V_cnt_pp;
 149          uchar  data  V_total_channel;
 150          uchar  data  V_total_fm_channel;
 151          uchar  data  V_dis_channel;
 152          uchar  data  V_dis_channel_bak;
 153          uchar  data  V_dis_fm_channel;
 154          uchar  data  V_dis_fm_channel_bak;
 155          uchar  data  V_cnt_sys_mute;
 156          uchar  idata  V_bright;
 157          uchar  idata  V_color;
 158          uchar  idata  V_contrast;
 159          uchar  idata  V_volumn;
 160          
 161          uchar  idata  V_sys_mode;
 162          
 163          
 164          uchar  idata  V_cnt_key_2;
 165          uchar  idata  V_cnt_ir_2;
 166          uchar  idata  V_read_sync;
 167          		
 168          uchar  idata  V_cnt_stu;
 169          uchar  idata  V_v_stu;
 170          uchar  idata  V_v_stu_bak;
 171          uchar  idata  V_t_v;
 172          uchar  idata  V_cnt_no_signal;
 173          unsigned int   idata  V_t_cnt_sync;
 174          float  idata  RF;
 175          
 176          uchar  idata  Eeprom[5];
 177          unsigned int  idata  V_t_test;
 178          
 179          uchar  idata  V_cnt_dis_scan;
C51 COMPILER V6.12  MTV230_TEST                                                            04/18/2007 11:29:40 PAGE 4   

 180          uchar  idata  V_cnt_scan_fine;
 181          uchar  idata  V_channel_slave;
 182          
 183          uchar  idata  V_cnt_menu;
 184          uchar  idata  V_cnt_sub_menu;
 185          uchar  idata  V_t_sr;
 186          uchar  idata  V_t_y2k;
 187          uchar  idata  V_t_dw;
 188          uchar  idata  V_t_yr;
 189          uchar  idata  V_t_mo;
 190          uchar  idata  V_t_dt;
 191          uchar  idata  V_t_hr_h;
 192          uchar  idata  V_t_hr_l;
 193          uchar  idata  V_t_mn_h;
 194          uchar  idata  V_t_mn_l;
 195          uchar  idata  V_t_sc;
 196          uchar  idata  V_cnt_timer;
 197          
 198          uchar  idata  V_temp0;
 199          uchar  idata  V_temp1;
 200          uchar  idata  V_temp2;
 201          uchar  idata  V_temp3;
 202          uchar  idata  V_temp4;
 203          
 204          uchar  idata  V_read_fm;
 205          uchar  idata  V_read_aft_0;
 206          uchar  idata  V_read_aft_1;
 207          unsigned int  idata  V_test;
 208          
 209          #define IF0 		38.900 //pure US tuner:45.75, Global tuner:38.90
 210          #define IF1 		1220.750
 211          #define RF_start 	44.000
 212          #define RF_end	 	863.250
 213          
 214          //#define RF_fm_start 	76.000
 215          #define RF_fm_start 	87.000
 216          #define RF_fm_end 	108.000
 217          
 218          
 219          //#define RF_start 	224.25
 220          
 221          #define RF_step1 	0.400
 222          #define RF_step2 	0.050
 223          #define RF_step3 	5.000
 224          #define C_aft 		2
 225          
 226          #define EEWP		Port50
 227          #define HB_v_l		Port52	//电压1
 228          #define HB_v_h		Port53	//电压2
 229          
 230          #define HB_dvd2av	Port47	//dvd/av
 231          #define HB_p2n		Port46
 232          #define sclk_4137	Port45
 233          #define data_4137	Port44
 234          #define load_4137	Port43
 235          #define HB_25215	Port40
 236          
 237          
 238          #define	C_addr_Col	0x81
 239          #define	C_addr_Con	0x83
 240          #define	C_addr_Bri	0x8e
 241          
C51 COMPILER V6.12  MTV230_TEST                                                            04/18/2007 11:29:40 PAGE 5   

 242          
 243          
 244          #define	C_max_tv_channel	125
 245          #define	C_min_tv_channel	1
 246          
 247          #define	C_max_fm_channel	96
 248          #define	C_min_fm_channel	1
 249          
 250          #define C_t_key			40
 251          #define C_t_key_s		150
 252          
 253          #define C_key_auto		0x21
 254          #define C_key_mode		0x11
 255          #define C_key_menu		0x22
 256          #define C_key_ch1		0x12
 257          #define C_key_vol1		0x24
 258          #define C_key_ch0		0x14
 259          #define C_key_vol0		0x28
 260          #define C_key_432169	0x18
 261          
 262          #define C_t_aft		300
 263          #define C_tuner_add	0xc0
 264          #define C_start_add	0x01
 265          #define C_tuner_add_s	0x86
 266          #define C_start_add_s	0x00
 267          #define C_pwm_start	0x04
 268          #define C_sys_start	0x09
 269          #define C_sys_add	0x00
 270          #define C_5p006_add	0x07
 271          
 272          #define C_ir_t_head_0   80	//头宽度 时间下限
 273          #define C_ir_t_head_1   140	//头宽度 时间上限
 274          #define C_ir_t_bit_0    15	//位宽度 时间界限
 275          #define C_ir_t_heads_0  80	//连续码头宽度 时间下限
 276          #define C_ir_t_heads_1  104	//连续码头宽度 时间上限
 277          #define C_t_ir_s_0      90	//
 278          #define C_t_ir_s_1      135	//
 279          #define C_has_ir_o      150	//V_t_ir   超时时间
 280          #define C_has_ir_s_o    180	//V_t_ir_s 超时时间
 281          //定义颜色
 282          #define	BLACK		0x00
 283          #define	BLUE		0x01
 284          #define	GREEN		0x02
 285          #define	CYAN		0x03
 286          #define	RED		0x04
 287          #define	MAGENTA      	0x05
 288          #define	YELLOW		0x06
 289          #define	WHITE		0x07
 290          #define	B_BLACK		0x00
 291          #define	B_BLUE		0x10
 292          #define	B_GREEN		0x20
 293          #define	B_CYAN		0x30
 294          #define	B_RED		0x40
 295          #define	B_MAGENTA      	0x50
 296          #define	B_YELLOW	0x60
 297          #define	B_WHITE		0x70
 298          #define	F_0		0x01
 299          #define	F_1		0x02
 300          #define	F_2		0x03
 301          #define	F_3		0x04
 302          #define	F_4		0x05
 303          #define	F_5		0x06
C51 COMPILER V6.12  MTV230_TEST                                                            04/18/2007 11:29:40 PAGE 6   

 304          #define	F_6		0x07
 305          #define	F_7		0x08
 306          #define	F_8		0x09
 307          #define	F_9		0x0a
 308          #define	F_A		0x0b
 309          #define	F_B		0x0c
 310          #define	F_C		0x0d
 311          #define	F_D		0x0e
 312          #define	F_E		0x0f
 313          #define	F_F		0x10
 314          #define	F_G		0x11
 315          #define	F_H		0x12
 316          #define	F_I		0x13
 317          #define	F_J		0x14
 318          #define	F_K		0x15
 319          #define	F_L		0x16
 320          #define	F_M		0x17
 321          #define	F_N		0x18
 322          #define	F_O		0x01
 323          #define	F_P		0x19
 324          #define	F_Q		0x1a
 325          #define	F_R		0x1b
 326          #define	F_S		0x1c
 327          #define	F_T		0x1d
 328          #define	F_U		0x1e
 329          #define	F_V		0x1f
 330          #define	F_W		0x20
 331          #define	F_X		0x21
 332          #define	F_Y		0x22
 333          #define	F_Z		0x23
 334          #define	F_a		0x24
 335          #define	F_b		0x25
 336          #define	F_c		0x26
 337          #define	F_d		0x27
 338          #define	F_e		0x28
 339          #define	F_f		0x29
 340          #define	F_g		0x2a
 341          #define	F_h		0x2b
 342          #define	F_i		0x2c
 343          #define	F_j		0x2d
 344          #define	F_k		0x2e
 345          #define	F_l		0x2f
 346          #define	F_m		0x30
 347          #define	F_n		0x31
 348          #define	F_o		0x32
 349          #define	F_p		0x33
 350          #define	F_q		0x34
 351          #define	F_r		0x35
 352          #define	F_s		0x36
 353          #define	F_t		0x37
 354          #define	F_u		0x38
 355          #define	F_v		0x39
 356          #define	F_w		0x3a
 357          #define	F_x		0x3b
 358          #define	F_y		0x3c
 359          #define	F_z		0x3d
 360          #define	F_II		0x47
 361          
 362          #define	C_add_sw	0x20
 363          #define	C_add_pic	0x21
 364          #define	C_add_col	0x22
 365          #define	C_add_phase	0x23
C51 COMPILER V6.12  MTV230_TEST                                                            04/18/2007 11:29:40 PAGE 7   

⌨️ 快捷键说明

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