Page 84 Epson Research and Development
Vancouver Design Center
S1D13505 Programming Notes and Examples
X23A-G-003-07 Issue Date: 01/02/05
12 Sample Code

12.1 Introduction

There are two included examples of programming the S1D13505 color graphics cont roller.
First is a demonstration using the HAL library and the second without. These code samples
are for example purposes only. Lastly, are three header files that may make some of the
structures used clearer.

12.1.1 Sample code using the S1D13505 HAL API

*/
// Sample code using 1355HAL API
*/
*/
**-------------------------------------------------------------------------
**
** Created 1998, Epson Research & Development
** Vancouver Design Centre
** Copyright (c) Epson Research and Development, Inc. 1998. All rights reserved.
**
** The HAL API code is configured for the following:
**
** 25.175 MHz ClkI
** 640x480 8 bit dual color STN panel @60Hz
** 50 ns EDO, 32 ms (self) refresh time
** Initial color depth - 8 bpp
**
**-------------------------------------------------------------------------
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hal.h" /* Structures,
constants and prototypes. */
#include "appcfg.h" /* HAL configu-
ration information. */
/*--------------------------------------------------------------------------*/
void main(void)
{int ChipId;
int Device;
/*
** Initialize the HAL.