📄 ra8806.lst
字号:
584 1 }
585
586 //==============================================================================
587 //Subroutine: LCD_Cursor_Inc
588 //Function:
589 //==============================================================================
590 void Reverse_Data(void)
591 {
592 1 uchar temp;
593 1
594 1 LCD_CmdWrite(WCCR);
595 1 temp = LCD_DataRead();
596 1 temp |= cSetb5;
597 1 LCD_CmdWrite(WCCR);
598 1 LCD_DataWrite(temp);
599 1 }
600
601 //==============================================================================
602 //Subroutine: LCD_Cursor_Inc
603 //Function:
604 //==============================================================================
605 void NoReverse_Data(void)
606 {
607 1 uchar temp;
608 1
609 1 LCD_CmdWrite(WCCR);
610 1 temp = LCD_DataRead();
611 1 temp &= cClrb5;
612 1 LCD_CmdWrite(WCCR);
613 1 LCD_DataWrite(temp);
C51 COMPILER V7.50 RA8806 03/31/2008 16:56:28 PAGE 11
614 1 }
615 //==============================================================================
616 //Subroutine: Cursor_Shift_Direct_HV
617 //Function:
618 //==============================================================================
619 void Cursor_Shift_Direct_HV(void)
620 {
621 1 uchar temp;
622 1
623 1 LCD_CmdWrite(MAMR);
624 1 temp = LCD_DataRead();
625 1 temp &= cClrb7;
626 1 LCD_CmdWrite(MAMR);
627 1 LCD_DataWrite(temp);
628 1 }
629
630 //==============================================================================
631 //Subroutine: Cursor_Shift_Direct_VH
632 //Function:
633 //==============================================================================
634 void Cursor_Shift_Direct_VH(void)
635 {
636 1 uchar temp;
637 1
638 1 LCD_CmdWrite(MAMR);
639 1 temp = LCD_DataRead();
640 1 temp |= cSetb7;
641 1 LCD_CmdWrite(MAMR);
642 1 LCD_DataWrite(temp);
643 1 }
644
645 //==============================================================================
646 //Subroutine: SEG_DIR_0_319
647 //Function:
648 //==============================================================================
649 void SEG_DIR_0_319(void)
650 {
651 1 uchar temp;
652 1
653 1 LCD_CmdWrite(MISC);
654 1 temp = LCD_DataRead();
655 1 temp &= cClrb1;
656 1 LCD_CmdWrite(MISC);
657 1 LCD_DataWrite(temp);
658 1 }
659
660 //==============================================================================
661 //Subroutine: SEG_DIR_319_0
662 //Function:
663 //==============================================================================
664 void SEG_DIR_319_0(void)
665 {
666 1 uchar temp;
667 1
668 1 LCD_CmdWrite(MISC);
669 1 temp = LCD_DataRead();
670 1 temp |= cSetb1;
671 1 LCD_CmdWrite(MISC);
672 1 LCD_DataWrite(temp);
673 1 }
674
675 //==============================================================================
C51 COMPILER V7.50 RA8806 03/31/2008 16:56:28 PAGE 12
676 //Subroutine: COM_DIR_0_239
677 //Function:
678 //==============================================================================
679 void COM_DIR_0_239(void)
680 {
681 1 uchar temp;
682 1
683 1 LCD_CmdWrite(MISC);
684 1 temp = LCD_DataRead();
685 1 temp &= cClrb0;
686 1 LCD_CmdWrite(MISC);
687 1 LCD_DataWrite(temp);
688 1 }
689
690 //==============================================================================
691 //Subroutine: COM_DIR_239_0
692 //Function:
693 //==============================================================================
694 void COM_DIR_239_0(void)
695 {
696 1 uchar temp;
697 1
698 1 LCD_CmdWrite(MISC);
699 1 temp = LCD_DataRead();
700 1 temp |= cSetb0;
701 1 LCD_CmdWrite(MISC);
702 1 LCD_DataWrite(temp);
703 1 }
704
705 //==============================================================================
706 //Subroutine: Scroll_Dir_LR_TB
707 //Function:
708 //==============================================================================
709 void Scroll_Dir_LR_TB(void)
710 {
711 1 uchar temp;
712 1
713 1 LCD_CmdWrite(ADSR);
714 1 temp = LCD_DataRead();
715 1 temp &= cClrb2;
716 1 LCD_CmdWrite(ADSR);
717 1 LCD_DataWrite(temp);
718 1 }
719
720 //==============================================================================
721 //Subroutine: Scroll_Dir_RL_BT
722 //Function:
723 //==============================================================================
724 void Scroll_Dir_RL_BT(void)
725 {
726 1 uchar temp;
727 1
728 1 LCD_CmdWrite(ADSR);
729 1 temp = LCD_DataRead();
730 1 temp |= cSetb2;
731 1 LCD_CmdWrite(ADSR);
732 1 LCD_DataWrite(temp);
733 1 }
734
735 //==============================================================================
736 //Subroutine: Horizontal_Scroll
737 //Function:
C51 COMPILER V7.50 RA8806 03/31/2008 16:56:28 PAGE 13
738 //==============================================================================
739 void Horizontal_Scroll(void)
740 {
741 1 uchar temp;
742 1
743 1 LCD_CmdWrite(ADSR);
744 1 temp = LCD_DataRead();
745 1 temp &= cClrb1;
746 1 LCD_CmdWrite(ADSR);
747 1 LCD_DataWrite(temp);
748 1 }
749
750 //==============================================================================
751 //Subroutine: Vertical_Scroll
752 //Function:
753 //==============================================================================
754 void Vertical_Scroll(void)
755 {
756 1 uchar temp;
757 1
758 1 LCD_CmdWrite(ADSR);
759 1 temp = LCD_DataRead();
760 1 temp |= cSetb1;
761 1 LCD_CmdWrite(ADSR);
762 1 LCD_DataWrite(temp);
763 1 }
764
765 //==============================================================================
766 //Subroutine: Scroll_Enable
767 //Function:
768 //==============================================================================
769 void Scroll_Enable(void)
770 {
771 1 uchar temp;
772 1
773 1 LCD_CmdWrite(ADSR);
774 1 temp = LCD_DataRead();
775 1 temp |= cSetb0;
776 1 LCD_CmdWrite(ADSR);
777 1 LCD_DataWrite(temp);
778 1 }
779
780 //==============================================================================
781 //Subroutine: Scroll_Disable
782 //Function:
783 //==============================================================================
784 void Scroll_Disable(void)
785 {
786 1 uchar temp;
787 1
788 1 LCD_CmdWrite(ADSR);
789 1 temp = LCD_DataRead();
790 1 temp &= cClrb0;
791 1 LCD_CmdWrite(ADSR);
792 1 LCD_DataWrite(temp);
793 1 }
794
795 //==============================================================================
796 //Subroutine: Clock_Output_Enable
797 //Function:
798 //==============================================================================
799 void Clock_Output_Enable(void)
C51 COMPILER V7.50 RA8806 03/31/2008 16:56:28 PAGE 14
800 {
801 1 uchar temp;
802 1
803 1 LCD_CmdWrite(MISC);
804 1 temp = LCD_DataRead();
805 1 temp |= cSetb6;
806 1 LCD_CmdWrite(MISC);
807 1 LCD_DataWrite(temp);
808 1 }
809
810 //==============================================================================
811 //Subroutine: Clock_Output_Disable
812 //Function:
813 //==============================================================================
814 void Clock_Output_Disable(void)
815 {
816 1 uchar temp;
817 1
818 1 LCD_CmdWrite(MISC);
819 1 temp = LCD_DataRead();
820 1 temp &= cClrb6;
821 1 LCD_CmdWrite(MISC);
822 1 LCD_DataWrite(temp);
823 1 }
824
825 //==============================================================================
826 //Subroutine: XCLK_Speed_x1
827 //Function:
828 //==============================================================================
829 void XCLK_Speed_x1(void)
830 {
831 1 uchar temp;
832 1
833 1 LCD_CmdWrite(MISC);
834 1 temp = LCD_DataRead();
835 1 temp &= cClrb2;
836 1 LCD_CmdWrite(MISC);
837 1 LCD_DataWrite(temp);
838 1 }
839
840 //==============================================================================
841 //Subroutine: XCLK_Speed_x0d5
842 //Function:
843 //==============================================================================
844 void XCLK_Speed_x0d5(void)
845 {
846 1 uchar temp;
847 1
848 1 LCD_CmdWrite(MISC);
849 1 temp = LCD_DataRead();
850 1 temp |= cSetb2;
851 1 LCD_CmdWrite(MISC);
852 1 LCD_DataWrite(temp);
853 1 }
854
855
856 //==============================================================================
857 //Subroutine: Gray_Mode
858 //Function:
859 //==============================================================================
860 void Gray_Mode(void)
861 {
C51 COMPILER V7.50 RA8806 03/31/2008 16:56:28 PAGE 15
862 1 uchar temp;
863 1
864 1 LCD_CmdWrite(MAMR);
865 1 temp = LCD_DataRead();
866 1 temp &= cClrb6;
867 1 temp &= cClrb5;
868 1 temp &= cClrb4;
869 1 LCD_CmdWrite(MAMR);
870 1 LCD_DataWrite(temp);
871 1 }
872
873 //==============================================================================
874 //Subroutine: Enable_LongKey
875 //Function:
876 //==============================================================================
877 void Enable_LongKey(void)
878 {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -