Good job!It works !!! Thanks a lot man!!
Next time if I visit my home town (Hamm-Westfalen) you can buy me a beer
Moderators: David Barker, Jerry Messina
That won't be a problemMattH wrote:Good job!It works !!! Thanks a lot man!!
Next time if I visit my home town (Hamm-Westfalen) you can buy me a beer
Code: Select all
Device = 18F4550
Clock = 48
Config
PLLDIV = 5,
CPUDIV = OSC1_PLL2,
USBDIV = 2,
FOSC = HSPLL_HS,
VREGEN = ON
//====user settings to override default module options ====
#option GLCD_MODEL = S1D13700 //Controller mounted on display
#option GLCD_MODE = 8080 //hardware default M6800 Indirect CNF<3:2>
#option GLCD_DATA = PORTD // Data port - only 8 bit port
#option GLCD_RES = PORTB.5 // reset pin
//#option GLCD_EN = PORTB.4 // EN pin - 6800 mode
#option GLCD_RD = PORTB.4 // RD pin - 8080 mode
//#option GLCD_RW = PORTB.3 // RW pin - 6800 mode
#option GLCD_WR = PORTB.3 // WR pin - 8080 mode
#option GLCD_A0 = PORTB.2 // A0 pin
#option GLCD_CS = PORTB.0 // chip select
#option GLCD_TCR = $2C // TC/R setting to fix flicker problem on display override system instruction ($48)
#option GLCD_ASPECT_RATIO = 100 // aspect ratio, smaller number will squeeze y For GLCD circles And Boxes
#option GLCD_INIT_DELAY = 100 // initialisation delay (ms)
Include "glcd.bas"
Include "arial.bas"
Include "graphics.bas"
Include "utils.bas"
Dim cindex As Byte
//================Main Program ===================
//OSCCON.6 = 1 // Set Internal OSC to 8Mhz
//OSCCON.5 = 1 // "
//OSCCON.4 = 1 // "
OSCTUNE.6 = 0 // Turn off/on PLL
SetAllDigital
// temp - LED 5 flashes before writting to screen
High(PORTA.0)
For cindex=1 To 5
Toggle(PORTA.0)
DelayMS(100)
Toggle(PORTA.0)
DelayMS(100)
Next
// clear screen and set font - driver defaults
// to layer 1 at startup - according to S1D13700 help
// file, bsClear provides fastest font rendering...
Cls(1)
SetFont(Arial)
Brush.Style = bsClear
Brush.Color = 1
// display some text...
WriteAt(0,0,"Hello World")
WriteAt(50,50,"Hello World")
//fil screen
//Fill(0, 0, 200, 100)
Code: Select all
device = 18F2550 // choose your device
clock = 20 // choose your clock
// configure GLCD...
#option GLCD_MODEL = S1D13700 // set model
#option GLCD_MODE = 8080 //8080 mode
#option GLCD_A0 = PORTA.0 // A0 pin
#option GLCD_WR = PORTA.1 // WR pin
#option GLCD_RD = PORTA.2 // RD pin
#option GLCD_DATA = PORTB // data port
#option GLCD_CS = PORTA.3 // chip select
#option GLCD_RES = PORTC.0 // reset pin
// import modules...
include "glcd.bas"
include "arial.bas"
include "graphics.bas"
// clear screen and set font - driver defaults
// to layer 1 at startup - according to S1D13700 help
// file, bsClear provides fastest font rendering...
Cls(1)
SetFont(Arial)
Brush.Style = bsClear
// display some text...
WriteAt(50,50,"Hello World")
Code: Select all
config FOSC = HS
Code: Select all
SetAllDigital()
I have re-installed the program and now compiles ok...MattH wrote:The SE version compiles your program w/out any problems. I just tried it myself.
What OS are you running? I would suggest to remove SF and re-install it.
It should install in to "Program Files/Mecanique/SwordfishSE".
Yes, the datasheet's value is 28 V and the pin gives 27.5 V. With the potenciometer (10k) I get the Vee typical value (26V), but nothing happens...Francis wrote:I've never used exactly the same GLCD as you have, but certainly with other types the 'contrast' control should give enough range to make a visible change to the display, even with nothing in the display.
Have you checked the Vout value on your display with a voltmeter?
That's true but if you keep reading, 99% of the problems turned out to be related to hardware.I have seen other people in this forum with the same problem...
I still believe that your pot is not connected correctly. Vee and Vo should be swapped. All of my displays using the same pot connection and there all working.modus83 wrote:Thanks for your answer,
I have checked many times the voltage at Vee: It's between +27,5V and +5V and nothing changes in the screen...
The cap between Vdd-Vss is already in.
I don´t have MCLR pin enabled...(I guest is not important....)
What are PS pins?? (Power-Gnd pins??)
I'm going to check the connections in the oscilloscope.
Maybe the 26V doesn't arrive to the GLCD...
I can't believe that the screen is broken....
Then, what's the fastest way to check if it's broken?
thanks
No idea...Then, what's the fastest way to check if it's broken?
I'm going to connect it as you tell.I still believe that your pot is not connected correctly. Vee and Vo should be swapped. All of my displays using the same pot connection and there all working.
May be your data sheet is incorrect? Vee is always an output, which you can measure w/out connecting anything. It should be a negative (!) voltage of approx. -25 to -28V.Vo is not a constant value out??
Vee is not an variable IN?