Not entirely sure whats going on here but I have a problem around the following code on a 18F87J50:
Code: Select all
// default module options - user options can override these values...
#option GLCD_DATA = PORTJ // data port
...
// now create Data TRIS...
#option _GLCD_DATA_TRIS = GetTRIS(GLCD_DATA)
...
// port and pin settings, these are brought into
// the program by using the above options...
Public Dim
Data As GLCD_DATA, // data in (PORT)
TRISData As _GLCD_DATA_TRIS, // data TRIS <--- Compiler error lists here at _GLCD_DATA_TRIS
RS As GLCD_RS.GLCD_RS@, // RS pin (reset pin)
DC As GLCD_DC.GLCD_DC@, // DC pin (data or command)
RW As GLCD_RW.GLCD_RW@, // RW pin (read or write)
CS As GLCD_CS.GLCD_CS@, // chip select
RD As GLCD_RD.GLCD_RD@, // Read select
POWER1 As GLCD_POWER1.GLCD_POWER1@, // VDD power control
POWER2 As GLCD_POWER2.GLCD_POWER2@ // VCC power control
Code: Select all
[Error]SSD0323.bas(119): Invalid variable type : TRISI
Compiling for any other lower port (A to H) works fine. Of course this doesn't help me as my boards are all set for port J.
Any help gratefully appreciated.
Best Regards,
Nathan[/code]