PIC中LCD问题

2020-02-08 09:04发布

        case 0:        (flag==0)?SEG0COM3=0:SEG0COM3=1;break;//ANTENNA
                case 1: (flag==0)?SEG42COM0=0:SEG42COM0=1;break;//Cumulative
                case 2: (flag==0)?SEG24COM0=0:SEG24COM0=1;break;//temperature-time
                case 3: (flag==0)?SEG22COM0=0:SEG22COM0=1;break;//Heat distribution
                case 4: (flag==0)?SEG41COM0=0:SEG41COM0=1;break;//Alarm
                case 5: (flag==0)?SEG12COM3=0:SEG12COM3=1;break;//battery mark
                case 6: (flag==0)?SEG0COM2=0:SEG0COM2=1;break;//ID
                case 7: (flag==0)?SEG1COM0=0:SEG1COM0=1;break;//opening time
                case 8: (flag==0)?SEG20COM0=0:SEG20COM0=1;break;//P2
                case 9: (flag==0)?SEG12COM2=0:SEG12COM2=1;break;//KW.h
                case 10:(flag==0)?SEG12COM0=0:SEG12COM0=1;break;//℃.
                case 11:(flag==0)?SEG12COM1=0:SEG12COM1=1;break;//h
                case 12:(flag==0)?SEG0COM1=0:SEG0COM1=1;break;//openig ctrl
                case 13:(flag==0)?SEG26COM0=0:SEG26COM0=1;break;//setup time
                case 14:(flag==0)?SEG0COM0=0:SEG0COM0=1;break;//setup
                case 15:(flag==0)?SEG3COM0=0:SEG3COM0=1;break;//ambient temperature
                case 16:(flag==0)?SEG7COM0=0:SEG7COM0=1;break;//P1
                case 17:(flag==0)?SEG5COM0=0:SEG5COM0=1;break;//℃
                case 18:(flag==0)?SEG34COM0=0:SEG34COM0=1;break;//time
                case 19:(flag==0)?SEG16COM2=0:SEG16COM2=1;break;//channel
                case 20:(flag==0)?SEG16COM3=0:SEG16COM3=1;break;//week
                case 21:(flag==0)?SEG16COM0=0:SEG16COM0=1;break;//automaic
                case 22:(flag==0)?SEG16COM1=0:SEG16COM1=1;break;//open valve
                case 23:(flag==0)?SEG17COM0=0:SEG17COM0=1;break;//stop
                case 24:(flag==0)?SEG31COM0=0:SEG31COM0=1;break;//X1


高手帮忙分析一下PIC中LCD的编程,什么意思!!
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
11条回答
millwood0
2020-02-09 17:09
it is slightly better than avrs and considerably better than the arm chips. I think it has more to do with PIC's simplicity than anything else.

if you really care for stability, pick renesas or freescale's mcus designed for automotive applications.

一周热门 更多>