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

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
4.6 The Firmware function
The “firmware” function in this example defines the variables used, the text to be sent to the display and
calling the LCD control functions.
void
{
// VOS handles for opened devices
// GPIO IOCTL request block
// general purpose variables
// string to display (include space for terminating NULL)
// find and open GPIO device port A
// Set 1-st line address
// Send Display Clear command
// Set 2-nd line address
// Set 1-st line address
// Set 2-nd line address
}
VOS_HANDLE hGpio;
gpio_ioctl_cb_t gpio_iocb;
unsigned char
unsigned char
unsigned char
unsigned char
hGpio = vos_dev_open(VOS_DEV_GPIO);
gpio_iocb.ioctl_code = VOS_IOCTL_GPIO_SET_MASK;
gpio_iocb.value = 0xFF;
vos_dev_ioctl(hGpio, &gpio_iocb);
lcd_ini(hGpio);
lcd_str = "Vinco";
write_lcd_cmd(hGpio, 0x01);
vos_delay_msecs(2);
write_lcd_cmd(hGpio, (0x05 | 0x80));
write_lcd_str(hGpio, lcd_str);
lcd_str = "www.ftdichip.com";
write_lcd_cmd(hGpio, (0x40 | 0x80));
write_lcd_str(hGpio, lcd_str);
vos_delay_msecs(2000);
lcd_str = "The Best Board";
write_lcd_cmd(hGpio, 0x01);
vos_delay_msecs(2);
write_lcd_cmd(hGpio, (0x01 | 0x80));
write_lcd_str(hGpio, lcd_str);
lcd_str = "Ever!!!";
write_lcd_cmd(hGpio, (0x45 | 0x80));
write_lcd_str(hGpio, lcd_str);
vos_delay_msecs(2000);
}
firmware(void)
while
(1);
data = 1;
i;
*lcd_str = "Vinco";
data_buf[16];
Copyright © 2010 Future Technology Devices International Limited
`
// set all as output
AN_153 Vinco LCD Interface Example
Document Reference No.: FT_000332
Clearance No.: FTDI# 177
Version
10
2.0

Related parts for VNCLO-PSU-USA