LCM Module:LCM under Windows

From LEXWiKi

(Difference between revisions)
Jump to: navigation, search
Line 27: Line 27:
== Sample code Introduction ==
== Sample code Introduction ==
 +
===Open COM Port Device===
 +
In Sample code /LCD_CTLDlg.cpp lin 157
 +
if(m_SerialPort.InitPort(this,nPort,9600,'N',8,1,EV_RXFLAG|EV_RXCHAR,512)) //Set LCM to 9600.n.8.1
 +
{
 +
m_SerialPort.StartMonitoring(); //Open Com port monitoring
 +
m_bSerialPortOpened=TRUE; //Set COM port open
 +
}

Revision as of 16:09, 4 February 2009

Contents

The Sample code source you can download form

Source file: LCD_CTLv14_w_src.rar

Binary file: LCD_CTLv14_w.rar

How to Switch functions

Our LCM module can support TTL and RS232 type,Please make sure your serial port support type,
And switch LCM JUMP as below picture!!

Function:
Image:LCM_RS232.JPG

TTL Function:
Image:LCM_TTL.JPG

How to use the DEMO application

Image:LCM_AP.jpg

  1. COM Port selection
  2. Open COM Port
  3. Close COM Port
  4. UP line message
  5. LOW line message
  6. UP line message send to LCM device
  7. LOW line message send to LCM device
  8. Check LCM all pixel work

Sample code Introduction

Open COM Port Device

In Sample code /LCD_CTLDlg.cpp lin 157

  if(m_SerialPort.InitPort(this,nPort,9600,'N',8,1,EV_RXFLAG|EV_RXCHAR,512)) //Set LCM to 9600.n.8.1
  {
  m_SerialPort.StartMonitoring(); //Open Com port monitoring
  m_bSerialPortOpened=TRUE; //Set COM port open 
  }
Personal tools