Menu

LCD connection mode 4

Help
JANIS
2018-01-06
2018-01-07
  • JANIS

    JANIS - 2018-01-06

    I tried to configure the 4-wire LCD connection. It does not compile! Hmm, where's the problem?

     #chip 16F886, 4
    #config osc=int
    
    
    'LCD connection settings
    #define LCD_IO 4
    #define LCD_NO_RW
    
    #define _LCD_RS PORTA.7
    #define _LCD_Enable PORTA.6
    #define _LCD_DB4 PORTB.4
    #define _LCD_DB5 PORTB.5
    #define _LCD_DB6 PORTB.6
    #define _LCD_DB7 PORTB.7
    
    
    CLS
    
    Print "Hello World."
    

    00:22:23 G+Stool-COMPILE/ASSEMBLE, processing C:\GCB@Syn\G+Stools\makeHEX.bat
    Source-File = C:\Users\electric\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\Z4D30MJ4\Demo%20mode%204[1].gcb
    1.8 Sec. <<< WARNINGs / ERRORs while compiling!
    Doubleclick on errormessage below to go to sourcecode-line:
    lcd.h (398): Error: SYSLCDTEMP.1 is not a valid I/O pin or port
    lcd.h (399): Error: SYSLCDTEMP.0 is not a valid I/O pin or port
    lcd.h (483): Error: SYSLCDTEMP.0 is not a valid I/O pin or port
    lcd.h (484): Error: SYSLCDTEMP.0 is not a valid I/O pin or port
    lcd.h (485): Error: SYSLCDTEMP.0 is not a valid I/O pin or port
    lcd.h (486): Error: SYSLCDTEMP.0 is not a valid I/O pin or port
    lcd.h (910): Error: SYSLCDTEMP.0 is not a valid I/O pin or port
    lcd.h (911): Error: SYSLCDTEMP.0 is not a valid I/O pin or port
    lcd.h (912): Error: SYSLCDTEMP.0 is not a valid I/O pin or port
    lcd.h (913): Error: SYSLCDTEMP.0 is not a valid I/O pin or port
    FLASHing aborted; no new hex-file created!

     
    • Anobium

      Anobium - 2018-01-06

      Recommend a quick look at a demo ..\GCB@Syn\GreatCowBasic\Demos\LCD Solutions\Four Wire LCD Solutions\LCDCURSOR_4WIRE_TEST_16f688.gcb then you may spot the underscore errors.

       
  • JANIS

    JANIS - 2018-01-07

    Thank You! I will test!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.