VNCLO-PSU-USA FTDI, Future Technology Devices International Ltd, VNCLO-PSU-USA Datasheet - Page 9

POWER SUPPLY FOR VNCLO-MB1A USA

VNCLO-PSU-USA

Manufacturer Part Number
VNCLO-PSU-USA
Description
POWER SUPPLY FOR VNCLO-MB1A USA
Manufacturer
FTDI, Future Technology Devices International Ltd
Series
Vinculor
Datasheets

Specifications of VNCLO-PSU-USA

Accessory Type
Power Supply
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
FTDI Vinculo Boards
Other names
768-1092
}
Note: Starting the VOS scheduler is always the last thing to be done as all configuration must be
complete before this starts.
4.2 LCD Initialisation
The LCD must be put into an initial known state to be able to accept new data and this initialisation is
done in the lcd_ini function.
void
{
}
The data values which can be sent to the LCD are defined in the LCD user manual. The
write_lcd_cmd(hLCD, value) is an instruction to call the write_LCD_cmd function so that data may be is
moved from the VNC2 GPIO lines to the LCD.
4.3 Writing Command Instructions to the LCD
The “write_lcd_cmd” command is used to send instructions to control the LCD panel.
The data is shifted 4 bits as only the upper 4 data lines of the LCD panel are used.
The example source code is detailed below
void
{
vos_delay_msecs(100);
// Send Reset command
write_lcd_cmd(hLCD, 0x03);
vos_delay_msecs(1);
// Send Function Set
write_lcd_cmd(hLCD, 0x28);
vos_delay_msecs(1);
write_lcd_cmd(hLCD, 0x28);
vos_delay_msecs(1);
// Send Display control command
write_lcd_cmd(hLCD, 0x0C);
vos_delay_msecs(1);
// Send Display Clear command
write_lcd_cmd(hLCD, 0x01);
vos_delay_msecs(1);
// Send Entry Mode Set command
write_lcd_cmd(hLCD, 0x06);
vos_delay_msecs(1);
unsigned char
// Write High nibble data to LCD
cmd = (((data>>4)&0x0F) | lcd_e);
cmd = (cmd &(~lcd_dat));
vos_dev_write(hLCD,&cmd,1,NULL);
// Toggle 'E' pin
cmd &= (~lcd_e);
vos_dev_write(hLCD,&cmd,1,NULL);
// Write Low nibble data to LCD
cmd = ((data & 0x0F) | lcd_e);
cmd = (cmd &(~lcd_dat));
vos_dev_write(hLCD,&cmd,1,NULL);
// Toggle 'E' pin
lcd_ini(VOS_HANDLE hLCD)
write_lcd_cmd(VOS_HANDLE hLCD,
cmd;
Copyright © 2010 Future Technology Devices International Limited
`
// Select Registers
// Select Registers
unsigned char
data)
AN_153 Vinco LCD Interface Example
Document Reference No.: FT_000332
Clearance No.: FTDI# 177
Version
8
2.0

Related parts for VNCLO-PSU-USA