Quantcast
Channel: MEL PICBASIC Forum
Viewing all articles
Browse latest Browse all 4747

Hitachi vs Sitronix LCD

$
0
0
I recently purchased several of these: https://focuslcds.com/product/8x1-st...xbsbsw6wf55xaa. They are a simple (or so I thought) 8 character LCD. I have, and use, 4 line Hitachi HD44780 all the time and the Sitronix ST7077 is advertised as pin compatible.

I have the following code running on a 16F88 and it drives a 4 line Hitachi just fine, but not a blink, flicker, or sparkle from the Sitronix. Any idea why?

PS: I've tried adjusting LCD_LINES, DATA, and COMMANDUS... I've wired 2, fresh from the box, breadboarded them up in parallel - nothing.

Code:

#CONFIG
  __config _CONFIG1, _INTRC_IO & _WDT_OFF & _PWRTE_OFF & _MCLR_ON & _BODEN_OFF & _LVP_OFF & _CPD_OFF & _WRT_PROTECT_OFF & _DEBUG_OFF
  __config _CONFIG2, _FCMEN_OFF & _IESO_OFF 
#ENDCONFIG
DEFINE OSC 4
                                           
TRISA = %00000000                                                 
TRISB = %00000000                                                     
OSCCON = $60
ANSEL = %00000000

DEFINE LCD_DBIT 0
DEFINE LCD_LINES 2
DEFINE LCD_COMMANDUS 2000  'Set command delay time in us 
DEFINE LCD_DATAUS 50      'Set data delay time in us

Pause 500     

MAIN:
  TOGGLE PORTB.2
  Lcdout $fe, 1  ' Clear LCD screen
  PAUSE 100
  Lcdout "Hello"
  Pause 500      ' Wait .5 second
  Lcdout $fe, 1 
  PAUSE 100
  Lcdout "World"
  Pause 500     
Goto MAIN


Viewing all articles
Browse latest Browse all 4747

Trending Articles