I'm testing out LCD_IO 4 and I tried to: #define LCD_RW P0RTE.1
The GC studio compiler refuses with: "P0RTE.1, or your Defined CONSTANT, is not a valid I/O pin or port (System Include)." (I also tried other ports)
The documentation on LCD_IO 4 says "LCD_RW Specifies the output pin that is connected to Read/Write on the LCD. The R/W pin can be disabled*"
Yes, #define LCD_NO_RW (found in an example) works , but why doesn't #define LCD_RW P0RT X.X ?
Also, the Four Wire LCD Example on the LCD_IO 4 documentation page uses an extra underscore like: _LCD_RS PORTA.7 . This is a bit confusing (leading to multiple error sreported) as the complier just does not accept it.
Last edit: Roger Jönsson 2025-03-01
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i get LCD_RW PORTx.x to assemble OK in this dummy program so your problem seems to be elsewhere; does your chip actually have the port you are aiming at?
I'm testing out LCD_IO 4 and I tried to: #define LCD_RW P0RTE.1
The GC studio compiler refuses with: "P0RTE.1, or your Defined CONSTANT, is not a valid I/O pin or port (System Include)." (I also tried other ports)
The documentation on LCD_IO 4 says "LCD_RW Specifies the output pin that is connected to Read/Write on the LCD. The R/W pin can be disabled*"
Yes, #define LCD_NO_RW (found in an example) works , but why doesn't #define LCD_RW P0RT X.X ?
Also, the Four Wire LCD Example on the LCD_IO 4 documentation page uses an extra underscore like: _LCD_RS PORTA.7 . This is a bit confusing (leading to multiple error sreported) as the complier just does not accept it.
Last edit: Roger Jönsson 2025-03-01
i get LCD_RW PORTx.x to assemble OK in this dummy program so your problem seems to be elsewhere; does your chip actually have the port you are aiming at?
Last edit: HackInBlack 2025-03-02
Sigh. Typo. P0RTE.1 instead of PORTE.1. How did I not see that...
I was just going to point on that, glad you find out.
Angel
glad that's sorted...the sneaky " . "