Author Topic: SBC44UC with LCD2S162 demo  (Read 4509 times)

sk_uk

  • Hero Member
  • *****
  • Posts: 80
    • View Profile
    • http://www.skpang.co.uk
SBC44UC with LCD2S162 demo
« on: August 07, 2007, 02:27:16 PM »
A simple demo of SBC44UC with LCD2S162 and a PC app. using VB.net can be found at:

http://www.skpang.co.uk/content/view/22/32/

Source code available for free download.



va3nth

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: SBC44UC with LCD2S162 demo
« Reply #1 on: January 01, 2008, 12:00:06 PM »
Hello.  I have a LCD2S-204   v1.3 I just got from Modtronix and have it attached to a 4x20 LCD. 

I tried your source and some of the characters were corrupted on the display.  Corrupted characters changed every time I sent a line of text so I tried a few things:

in i2c_lcd2s.c:

Changed 'SLEW_ON' to 'SLEW_OFF'
Changed 'SSPADD = 12' to 'SSPADD = 49'

This fixed the problem, however, I have also changed delay.c that I thought may have been a typo.  Can you confirm?

void delay_ms(unsigned char cnt)
{
#if    XTAL_FREQ <= 2000000
    do {
        delay_us(996);   //have changed this to delay_us(96).  Is this a typo? as it doesn't seem it can be >255
    } while(--cnt);
#endif


I would like to find out why I can not seem to get the display to work when at 400KHz i2c speed. Any ideas?

Am using modtronix SBC44UC rev.1 board with micro match cable to the LCD2S_204 v1.3 attached to 4x20 LCD.
Boot text from LCD2S_204 appears without error on the LCD.

Thank you
Christopher

sk_uk

  • Hero Member
  • *****
  • Posts: 80
    • View Profile
    • http://www.skpang.co.uk
Re: SBC44UC with LCD2S162 demo
« Reply #2 on: January 02, 2008, 12:18:50 PM »
The delay.c file was copied from Modtronix mxlib for the devkit44b project.

I guess when it is > 255 it just rolled over.