BT96040AV1 LCD Help!

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Im trying to make this LCD work (BT96040AV1-I2C), im using the evaluation kit of MAXIM TINI DS80C400, it has a I2C protocol implemented, the adress that i use for the LCD is 0x78, but because of the way that my I2C class works i have to shift it right, making it 0x3C, the code used is java, i tried to implement killertoffy C code (from another topic of this forum) to java....every time i make the CheckersBoard command, the LCD gets stuck, and doesnt acknowledge any more commands.....can anyone help? or has anyone ever maked this LCD to work?

import com.dalsemi.system.*;



public class I2CBoot {
	
	final static byte command=(byte)0x80;
	final static byte data  =(byte)0x40;
	final static byte page0 =(byte)0x00;
	final static byte page1 =(byte)0x01;
	
	//page 0 commands
	
	final static byte read  =(byte)0x00;
	final static byte funcSet=(byte)0x24;        //Set function with PD=1
	final static byte funcSeton=(byte)0x20;      //Set function with PD=0  
	final static byte blankM=(byte)0x01;
	final static byte scroll=(byte)0x02;
	final static byte vlcd  =(byte)0x04;
	final static byte dMode =(byte)0x08;
	final static byte setCP =(byte)0x10;
	final static byte ramY  =(byte)0x40;
	final static byte ramX  =(byte)0x80;
	
	//page 1 commands
	
	final static byte checker =(byte)0x01;
	final static byte tempC   =(byte)0x04;
	final static byte biasR   =(byte)0x10;
	
	//other required variables and objects
	
	static byte dados [] = new byte [3000];
	static byte instru [] = new byte [1];
	static byte def [] = new byte [1];
	static byte cmd [] = new byte [1];
	static I2CPort port = new I2CPort();    
	static BitPort resetLCD;
	
	public static void main (String[]args){
		 
		def [0] = 0;
		
		for (int i=0;i

The output to this code is...

Reset ao LCD
Sent comand word: 0
Sent comand word: 24
Sent comand word: 0
Sent comand word: c
Modo normal enviado
Sent comand word: 0
Sent comand word: 25
Sent comand word: 0
Sent comand word: 1
Fail comand word: 0
Fail comand word: 24
Fail comand word: 0
Fail comand word: 7
VLCD 10.62 enviado 
Fail comand word: 0
Fail comand word: 25
Fail comand word: 0
Fail comand word: 14
Bias 3 Enviado
Fail comand word: 0
Fail comand word: 24
Fail comand word: 0
Fail comand word: 12
Charge pump 4x enviado 
Fail comand word: 80
Fail comand word: 20

Any help would be apreciated, sorry for any bad english