📄 lcd12864a.lst
字号:
434 1 wcom(0xb0+page-1); // 设定页地址,设定page命令是0xB0,共 9 page
-
435 1 wcom(0x10+(0x0f&(seg>>4))); // 设定列地址, 设定列地址命令0x01 , 列制止范围 0~131 , 写高四位列地
-址
436 1 wcom(0x0f&seg); // 写低四位列地址
437 1 for(zmseg=64;zmseg>32;zmseg--)
438 1 {
439 2 wdata(hanzibig[cod*128+zmseg]); // 连续写入32个数据
440 2 }
441 1
442 1 wcom(0xb0+page-2); // 设定页地址,设定page命令是0xB0,共 9 page
-
C51 COMPILER V7.06 LCD12864A 08/18/2010 16:05:51 PAGE 9
443 1 wcom(0x10+(0x0f&(seg>>4))); // 设定列地址, 设定列地址命令0x01 , 列制止范围 0~131 , 写高四位列地
-址
444 1 wcom(0x0f&seg); // 写低四位列地址
445 1 for(zmseg=96;zmseg>64;zmseg--)
446 1 {
447 2 wdata(hanzibig[cod*128+zmseg]); // 连续写入32个数据
448 2 }
449 1
450 1 wcom(0xb0+page-3); // 设定页地址,设定page命令是0xB0,共 9 page
-
451 1 wcom(0x10+(0x0f&(seg>>4))); // 设定列地址, 设定列地址命令0x01 , 列制止范围 0~131 , 写高四位列地
-址
452 1 wcom(0x0f&seg); // 写低四位列地址
453 1 for(zmseg=128;zmseg>96;zmseg--)
454 1 {
455 2 wdata(hanzibig[cod*128+zmseg]); // 连续写入32个数据
456 2 }
457 1
458 1 }
459
460
461
462 /*16*16汉字写入子程序*/
463 void ccwpr(unsigned char cod,unsigned char page,unsigned char seg)
464 { unsigned char zmseg;
465 1
466 1 wcom(0xaf);//开显示
467 1 wcom(0xb0+page); //设定页地址
468 1 wcom(0x10+(0x0f&(seg>>4))); //列地址 高四位
469 1 wcom(0x0f&seg); //列地址 低四位
470 1 for(zmseg=0;zmseg<=15;zmseg++)
471 1 {
472 2 // wdata(CCTAB[cod*32+zmseg]); //连续写入16个字节数据
473 2
474 2 }
475 1
476 1 wcom(0xb0+page+1); //跳到下一页
477 1
478 1 wcom(0x10+(0x0f&(seg>>4)));
479 1
480 1 wcom(0x0f&seg);
481 1
482 1 for(zmseg=16;zmseg<=31;zmseg++) //连续写入16个字节数据
483 1 {
484 2 // wdata(CCTAB[cod*32+zmseg]);
485 2
486 2 }
487 1
488 1 }
*** WARNING C280 IN LINE 463 OF LCD12864A.C: 'cod': unreferenced local variable
489
490 /*************************************************/
491 //写disdate_a数据
492 /*************************************************/
493 void disdate_a(unsigned char dat_a,unsigned char dat_b)
494 {
495 1 int seg;
496 1 unsigned char page;
497 1 for(page=0xb0;page<0xb9;page++) //写页地址共9页 0xb8----0xb9
498 1 { wcom(page); //如下汉字可改
499 2 wcom(0x10); //设列地址高四位
500 2 wcom(0x00); //设列地址低四位
C51 COMPILER V7.06 LCD12864A 08/18/2010 16:05:51 PAGE 10
501 2
502 2 for(seg=0;seg<64;seg++)
503 2 { wdata(dat_a);
504 3 wdata(dat_b);
505 3 }
506 2 }
507 1 wcom(0xaf); /*开显示指令*/
508 1 }
509
510
511
512 /*************************************************/
513 //写disdate_b数据全屏写数据
514 /*************************************************/
515 void disdate_b(unsigned char *p)
516 {
517 1 int seg;
518 1 unsigned char page;
519 1 wcom(0xaf);/*开显示*/
520 1 for(page=0xb0;page<0xb8;page++) //写页地址共8页 0xb0----0xb8
521 1 {
522 2 wcom(page);
523 2 wcom(0x10);
524 2 wcom(0x00);
525 2
526 2 for(seg=0;seg<128;seg++)
527 2 {
528 3 wdata(*p++);
529 3 }
530 2 }
531 1 }
532
533
534 void clr_blank() /*-----清屏幕-----*/
535 {
536 1 writeone(15,7,112);
537 1 writeone(15,7,96);
538 1 writeone(15,7,80); /*----不显示------*/
539 1 writeone(15,7,64);
540 1 writeone(15,7,48);
541 1 writeone(15,7,32);
542 1 writeone(15,7,16);
543 1 writeone(15,7,0);
544 1
545 1
546 1 writeone(15,5,112);
547 1 writeone(15,5,96);
548 1 writeone(15,5,80); /*----不显示------*/
549 1 writeone(15,5,64);
550 1 writeone(15,5,48);
551 1 writeone(15,5,32);
552 1 writeone(15,5,16);
553 1 writeone(15,5,0);
554 1
555 1 writeone(15,3,112);
556 1 writeone(15,3,96);
557 1 writeone(15,3,80); /*----不显示------*/
558 1 writeone(15,3,64);
559 1 writeone(15,3,48);
560 1 writeone(15,3,32);
561 1 writeone(15,3,16);
562 1 writeone(15,3,0);
C51 COMPILER V7.06 LCD12864A 08/18/2010 16:05:51 PAGE 11
563 1
564 1 writeone(15,1,112);
565 1 writeone(15,1,96);
566 1 writeone(15,1,80); /*----不显示------*/
567 1 writeone(15,1,64);
568 1 writeone(15,1,48);
569 1 writeone(15,1,32);
570 1 writeone(15,1,16);
571 1 writeone(15,1,0);
572 1
573 1 }
574
575 /*-- 进入开机画面函数--------*/
576
577 void entermenu() /*进入开机画面*/
578 {
579 1 writeonebig(0,7,96); /*飞*/
580 1 delay1();
581 1 delay1();
582 1 delay1();
583 1 writeonebig(1,7,64); /*拓*/
584 1 delay1();
585 1 delay1();
586 1 delay1();
587 1 writeonebig(2,7,32); /*电*/
588 1 delay1();
589 1 delay1();
590 1 delay1();
591 1 writeonebig(3,7,0); /*子*/
592 1 delay1();
593 1 delay1();
594 1 delay1();
595 1 writeonebig(4,3,96); /*欢*/
596 1 delay1();
597 1 delay1();
598 1 delay1();
599 1 writeonebig(5,3,64); /*迎*/
600 1 delay1();
601 1 delay1();
602 1 delay1();
603 1 writeonebig(6,3,32); /*您*/
604 1 delay1();
605 1 delay1();
606 1 delay1();
607 1 writeonebig(7,3,0); /*!*/
608 1 delay1();
609 1 delay1();
610 1 delay1();
611 1 delay1();
612 1 delay1();
613 1 delay1();
614 1 delay1();
615 1 clr_blank(); /*清屏幕*/
616 1 delay1();
617 1 delay1();
618 1 delay1();
619 1 delay1();
620 1 delay1();
621 1 delay1();
622 1 delay1();
623 1 writeone(0,6,96); /*杭*/
624 1 writeone(1,6,80); /*州*/
C51 COMPILER V7.06 LCD12864A 08/18/2010 16:05:51 PAGE 12
625 1 writeone(2,6,64); /*飞*/
626 1 writeone(3,6,48); /*拓*/
627 1 writeone(4,6,32); /*科*/
628 1 writeone(5,6,16); /*技*/
629 1 writeone(6,3,112); /*当*/
630 1 writeone(7,3,96); /*前*/
631 1 writeone(8,3,80); /*温*/
632 1 writeone(9,3,64); /*度*/
633 1 writedigital(20,3,56); /*:*/
634 1 writedigital(12,1,112); /*w*/
635 1 writedigital(12,1,104); /*w*/
636 1 writedigital(12,1,96); /*w*/
637 1 writedigital(13,1,88); /*.*/
638 1 writedigital(14,1,80); /*f*/
639 1 writedigital(15,1,72); /*y*/
640 1 writedigital(16,1,64); /*t*/
641 1 writedigital(17,1,56); /*o*/
642 1 writedigital(17,1,48); /*o*/
643 1 writedigital(13,1,40); /*.*/
644 1 writedigital(18,1,32); /*c*/
645 1 writedigital(17,1,24); /*o*/
646 1 writedigital(19,1,16); /*m*/
647 1
648 1 }
649
650
651
652
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 1945 ----
CONSTANT SIZE = 2501 ----
XDATA SIZE = ---- 34
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 1 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -