📄 320240_r61505u.lst
字号:
265 1 MemMainColor(0x0000,240,136);
266 1 memic_id=0xee;
267 1 MemMainColor(0x5A00,240,48);
268 1 }
269
270 void men_photo3()
271 {
272 1 memic_id=0xec;
273 1 MemMainColor(0x0000,240,136);
274 1 memic_id=0xed;
275 1 MemMainColor(0x0000,240,136);
276 1 memic_id=0xef;
277 1 MemMainColor(0x0000,240,48);
278 1 }
279 void men_photo4()
280 {
281 1 R61505U_address(0x00,0xaf,0x00,0x00,0x00,0xfb,0x00,0x00,0x00);
282 1 memic_id=0xf0;
283 1 MemMainColor(0x0000,176,180);
284 1 memic_id=0xf6;
285 1 MemMainColor(0x0000,176,40);
286 1
287 1 }
288 void men_photo5()
289 {
290 1 R61505U_address(0x00,0xaf,0x00,0x00,0x00,0xdb,0x00,0x00,0x00);
291 1 memic_id=0xf1;
292 1 MemMainColor(0x0000,176,180);
293 1 memic_id=0xf6;
294 1 MemMainColor(0x4000,176,40);
295 1
296 1 }
297 void men_photo6()
298 {
299 1 R61505U_address(0x00,0xaf,0x00,0x00,0x00,0xdb,0x00,0x00,0x00);
300 1 memic_id=0xf2;
301 1 MemMainColor(0x0000,176,180);
302 1 memic_id=0xf6;
C51 COMPILER V7.02a 320240_R61505U 06/14/2008 16:47:33 PAGE 6
303 1 MemMainColor(0x8000,176,40);
304 1
305 1 }
306 void men_photo7()
307 {
308 1 R61505U_address(0x00,0xaf,0x00,0x00,0x00,0xdb,0x00,0x00,0x00);
309 1 memic_id=0xf4;
310 1 MemMainColor(0x0000,176,180);
311 1 memic_id=0xf7;
312 1 MemMainColor(0x0000,176,40);
313 1
314 1 }
315 void men_photo8()
316 {
317 1 R61505U_address(0x00,0xaf,0x00,0x00,0x00,0xdb,0x00,0x00,0x00);
318 1 memic_id=0xf5;
319 1 MemMainColor(0x0000,176,180);
320 1 memic_id=0xf7;
321 1 MemMainColor(0x4000,176,40);
322 1
323 1 }
324 void main_R61505U_initial()
325 {
326 1
327 1 mainlcd_send_command(0x00,0xE5);
328 1 mainlcd_send_data(0x80,0x00); // Set the internal vcore voltage
329 1 mainlcd_send_command(0x00,0x00);
330 1 mainlcd_send_data(0x00,0x01); // Start internal OSC.
331 1 mainlcd_send_command(0x00,0x01);
332 1 mainlcd_send_data(0x01,0x00); // set SS and SM bit
333 1 mainlcd_send_command(0x00,0x02);
334 1 mainlcd_send_data(0x07,0x00); // set 1 line inversion
335 1 mainlcd_send_command(0x00,0x03);
336 1 mainlcd_send_data(0x10,0x30); // set GRAM write direction and BGR=1.
337 1 mainlcd_send_command(0x00,0x04);
338 1 mainlcd_send_data(0x00,0x00); // Resize register
339 1 mainlcd_send_command(0x00,0x08);
340 1 mainlcd_send_data(0x02,0x02); // set the back porch and front porch
341 1 mainlcd_send_command(0x00,0x09);
342 1 mainlcd_send_data(0x00,0x00); // set non-display area refresh cycle ISC[3:0]
343 1 mainlcd_send_command(0x00,0x0A);
344 1 mainlcd_send_data(0x00,0x00); // FMARK function
345 1 mainlcd_send_command(0x00,0x0C);
346 1 mainlcd_send_data(0x00,0x00); // RGB interface setting
347 1 mainlcd_send_command(0x00,0x0D);
348 1 mainlcd_send_data(0x00,0x00); // Frame marker Position
349 1 mainlcd_send_command(0x00,0x0F);
350 1 mainlcd_send_data(0x00,0x00); // RGB interface polarity
351 1 //*************Power On sequence ****************//
352 1 mainlcd_send_command(0x00,0x10);
353 1 mainlcd_send_data(0x00,0x00); // SAP, BT[3:0], AP, DSTB, SLP, STB
354 1 mainlcd_send_command(0x00,0x11);
355 1 mainlcd_send_data(0x00,0x00); // DC1[2:0], DC0[2:0], VC[2:0]
356 1 mainlcd_send_command(0x00,0x12);
357 1 mainlcd_send_data(0x00,0x00); // VREG1OUT voltage
358 1 mainlcd_send_command(0x00,0x13);
359 1 mainlcd_send_data(0x00,0x00); // VDV[4:0] for VCOM amplitude
360 1 Delay(200); // Dis-charge capacitor power voltage
361 1 mainlcd_send_command(0x00,0x10);
362 1 mainlcd_send_data(0x17,0xB0); // SAP, BT[3:0], AP, DSTB, SLP, STB
363 1 mainlcd_send_command(0x00,0x11);
364 1 mainlcd_send_data(0x01,0x37); // DC1[2:0], DC0[2:0], VC[2:0]
C51 COMPILER V7.02a 320240_R61505U 06/14/2008 16:47:33 PAGE 7
365 1 Delay(50); // Delay 50ms
366 1 mainlcd_send_command(0x00,0x12);
367 1 mainlcd_send_data(0x01,0x3C); // VREG1OUT voltage
368 1 Delay(50); // Delay 50ms
369 1 mainlcd_send_command(0x00,0x13);
370 1 mainlcd_send_data(0x18,0x00); // VDV[4:0] for VCOM amplitude
371 1 mainlcd_send_command(0x00,0x29);
372 1 mainlcd_send_data(0x00,0x16); // VCM[4:0] for VCOMH
373 1 Delay(50);
374 1 mainlcd_send_command(0x00,0x20);
375 1 mainlcd_send_data(0x00,0x00); // GRAM horizontal Address
376 1 mainlcd_send_command(0x00,0x21);
377 1 mainlcd_send_data(0x00,0x00); // GRAM Vertical Address
378 1 // ----------- Adjust the Gamma Curve ----------//
379 1 mainlcd_send_command(0x00,0x30);
380 1 mainlcd_send_data(0x00,0x00);
381 1 mainlcd_send_command(0x00,0x31);
382 1 mainlcd_send_data(0x05,0x06);
383 1 mainlcd_send_command(0x00,0x32);
384 1 mainlcd_send_data(0x06,0x07);
385 1 mainlcd_send_command(0x00,0x35);
386 1 mainlcd_send_data(0x00,0x07);
387 1 mainlcd_send_command(0x00,0x36);
388 1 mainlcd_send_data(0x19,0x0b);
389 1 mainlcd_send_command(0x00,0x37);
390 1 mainlcd_send_data(0x02,0x01);
391 1 mainlcd_send_command(0x00,0x38);
392 1 mainlcd_send_data(0x00,0x00);
393 1 mainlcd_send_command(0x00,0x39);
394 1 mainlcd_send_data(0x00,0x07);
395 1 mainlcd_send_command(0x00,0x3C);
396 1 mainlcd_send_data(0x07,0x00);
397 1 mainlcd_send_command(0x00,0x3D);
398 1 mainlcd_send_data(0x0b,0x1A);
399 1 //------------------ Set GRAM area ---------------//
400 1 mainlcd_send_command(0x00,0x50);
401 1 mainlcd_send_data(0x00,0x00); // Horizontal GRAM Start Address
402 1 mainlcd_send_command(0x00,0x51);
403 1 mainlcd_send_data(0x00,0xEF); // Horizontal GRAM End Address
404 1 mainlcd_send_command(0x00,0x52);
405 1 mainlcd_send_data(0x00,0x00); // Vertical GRAM Start Address
406 1 mainlcd_send_command(0x00,0x53);
407 1 mainlcd_send_data(0x01,0x3F); // Vertical GRAM Start Address
408 1 mainlcd_send_command(0x00,0x60);
409 1 mainlcd_send_data(0x27,0x00); // Gate Scan Line
410 1 mainlcd_send_command(0x00,0x61);
411 1 mainlcd_send_data(0x00,0x01); // NDL,VLE, REV
412 1 mainlcd_send_command(0x00,0x6A);
413 1 mainlcd_send_data(0x00,0x00); // set scrolling line
414 1 //-------------- Partial Display Control ---------//
415 1 mainlcd_send_command(0x00,0x80);
416 1 mainlcd_send_data(0x00,0x00);
417 1 mainlcd_send_command(0x00,0x81);
418 1 mainlcd_send_data(0x00,0x00);
419 1 mainlcd_send_command(0x00,0x82);
420 1 mainlcd_send_data(0x00,0x00);
421 1 mainlcd_send_command(0x00,0x83);
422 1 mainlcd_send_data(0x00,0x00);
423 1 mainlcd_send_command(0x00,0x84);
424 1 mainlcd_send_data(0x00,0x00);
425 1 mainlcd_send_command(0x00,0x85);
426 1 mainlcd_send_data(0x00,0x00);
C51 COMPILER V7.02a 320240_R61505U 06/14/2008 16:47:33 PAGE 8
427 1 //-------------- Panel Control -------------------//
428 1 mainlcd_send_command(0x00,0x90);
429 1 mainlcd_send_data(0x00,0x10);
430 1 mainlcd_send_command(0x00,0x92);
431 1 mainlcd_send_data(0x00,0x00);
432 1 mainlcd_send_command(0x00,0x93);
433 1 mainlcd_send_data(0x00,0x03);
434 1 mainlcd_send_command(0x00,0x95);
435 1 mainlcd_send_data(0x01,0x10);
436 1 mainlcd_send_command(0x00,0x97);
437 1 mainlcd_send_data(0x00,0x00);
438 1 mainlcd_send_command(0x00,0x98);
439 1 mainlcd_send_data(0x00,0x00);
440 1 mainlcd_send_command(0x00,0x07);
441 1 mainlcd_send_data(0x01,0x73); // 262K color and display ON
442 1
443 1 mainlcd_send_command(0x00,0x22);
444 1
445 1
446 1 }
447
448 main()
449 {
450 1
451 1 DataH=0xff;
452 1 DataL=0xff;
453 1 // Contr=0xff;
454 1 memic_id=0xff;
455 1 sc=0x01;
456 1 Csm=0x00;
457 1
458 1 Reset=0x00;
459 1 Delay(25);
460 1 Reset=0x01;
461 1 Delay(25);
462 1
463 1 main_R61505U_initial();
464 1
465 1 // read_id();
466 1 //key_function1();
467 1
468 1 while(1)
469 1 {
470 2
471 2 ScrMainFullColor(0xF8,0x00);//红
472 2 // key_function1();
473 2
474 2 ScrMainFullColor(0x07,0xE0);//绿
475 2 // key_function1();
476 2
477 2 ScrMainFullColor(0x00,0x1F);//蓝
478 2 // key_function1();
479 2
480 2 ScrMainFullColor(0x00,0x00);//黑
481 2 //key_function1();
482 2
483 2 ScrMainFullColor(0xFF,0xFF);//白
484 2 // key_function1();
485 2
486 2 DisplayMainFrame();//框
487 2 // key_function1();
488 2
C51 COMPILER V7.02a 320240_R61505U 06/14/2008 16:47:33 PAGE 9
489 2 ColorMainBar1();//RGB
490 2 // key_function1();
491 2
492 2 ColorMainBar2();//RGB
493 2 // key_function1();
494 2
495 2 men_photo1();
496 2 // key_function1();
497 2
498 2 //men_photo2();
499 2 // key_function1();
500 2
501 2 //men_photo3();
502 2 // key_function1();
503 2
504 2 men_photo4();
505 2 key_function1();
506 2
507 2 men_photo5();
508 2 // key_function1();
509 2
510 2 men_photo6();
511 2 key_function1();
512 2
513 2 men_photo7();
514 2 key_function1();
515 2
516 2 men_photo8();
517 2 key_function1();
518 2
519 2 }
520 1
521 1 }
522
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 1514 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = 4 17
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -