sed1374 ETC-unknow, sed1374 Datasheet - Page 157

no-image

sed1374

Manufacturer Part Number
sed1374
Description
Sed1374 Embedded Memory Color Lcd Controller
Manufacturer
ETC-unknow
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
sed137460B5
Manufacturer:
HIROSE
Quantity:
49 000
Part Number:
sed1374F0A
Manufacturer:
EPSON
Quantity:
650
Part Number:
sed1374FOA
Manufacturer:
NICHIA
Quantity:
12 000
Part Number:
sed1374FOA
Manufacturer:
EPSON/爱普生
Quantity:
20 000
Epson Research and Development
Vancouver Design Center
10 Sample Code
10.1 Introduction
10.1.1 Sample code using the SED1374 HAL API
/*
**===========================================================================
** SAMPLE1.C - Sample code demonstating a program using the SED1374 HAL.
**-------------------------------------------------------------------------
** Created 1998, Vancouver Design Centre
** Copyright (c) 1998 Epson Research and Development, Inc.
** All Rights Reserved.
**-------------------------------------------------------------------------
**
** The HAL API code is configured for the following:
**
** 320x240 Single Color 8-bit STN (format 2)
** 4 bpp - 70 Hz Frame Rate (25 MHz CLKi)
** High Performance enabled
**
**===========================================================================
*/
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hal.h"
#include "appcfg.h"
/*--------------------------------------------------------------------------*/
void main(void)
{
Programming Notes and Examples
Issue Date: 99/04/27
int ChipId;
int Device;
/*
** Initialize the HAL.
** The call to seRegisterDevice() actually prepares the HAL library
** for use. The SED1374 is not accessed.
*/
if (ERR_OK != seRegisterDevice(&HalInfo, &Device))
Included in the sample code section are two examples of programing the SED1374. The
first sample uses the HAL to draw a red square, wait for user input then rotates to
SwivelView mode and draws a blue square. The second sample code performs the same
procedures but directly accesses the registers of the SED1374. These code samples are for
example purposes only.
/* Structures, constants and prototypes. */
/* HAL configuration information. */
X26A-G-002-02
SED1374
Page 61

Related parts for sed1374