Hi,
I've been looking at creating a serial LCD for a while and came across an EDE702 - Serial to LCD Interface IC by Elabinc:
http://www.elabinc.com/Semiconductor...7/Default.aspx
It's a very sexy idea I thought using just a single line on the PIC to drive the LCD display (and it only costs around $7)
So finally it arrives and I'm trying to get it to work. I've been strugling for a couple of days and searched the forums for the subject.
Hooked up an oscilloscope to the PIC and it looks like it's sending some data, but the EDE702 isn't doing much (and the LCD is blank).
Here's a test program
Code:'***************************************************************** ' Using PortB.2 to serially transfer data to EDE702 ' ' PortB.2 going to EDE702's RCV port (pin 17) ' LCD connected to EDE702 ' Internal OSC used for 16F628A ' 4 MHZ cristal used for EDE702 '***************************************************************** @ DEVICE PIC16F628A, INTRC_OSC_NOCLKOUT, WDT_OFF, LVP_OFF, PWRT_OFF, PROTECT_OFF, BOD_OFF CMCON = 7 ' Set portA to i/o TRISA = %00000000 ' outputs TRISB = %00000000 ' outputs BAUD con 2 ' Serout T9600=2, N9600=6 WAIT_TIME con 1000 BLINK_DELAY con 1000 NUM_OFF_LASHES con 3 Serial_LCD var PortB.2 ' Serial signal to EDE702 Led var PortB.5 ' heartbeat led to make sure PIC's alive ctr var byte INS con 254 ' LCD command mode parameter CLR con 1 ' LCD clear command LINE1 con 128 ' LCD line 1 LINE2 con 192 ' LCD line 2 Main: pause wait_time ' Clear the LCD and print some text on it serout serial_lcd, BAUD, [ins,clr] serout serial_lcd, baud, [ins,line1,"Test"] ' Flash Led 3 times (to see PIC working) and turn EDE702's Digital port ON/OFF for ctr = 1 to num_off_lashes led = 1 ' led ON pause blink_delay serout serial_lcd, baud, [ins,%11111101] ' Digital Output ON EDE702 led = 0 ' led OFF pause blink_delay serout serial_lcd, baud, [ins,%11111100] ' Digital Output OFF EDE702 next ctr goto Main end
Any help greatly appreciated,
Thanks,
Tom







Bookmarks