Sample Code Without Using The 13505Hal Api - Epson S1D13505F00A Technical Manual

Embedded ramdac lcd/crt controller
Table of Contents

Advertisement

Sample Code Without Using the 13505HAL API

/*
**===========================================================================
**
INIT13505.C - sample code demonstrating the initialization of the SED1355.
**
Beta release 2.0
**
**
The code in this example will perform initialization to the following
**
specification:
**
**
- 640 x 480 dual 16-bit color passive panel.
**
- 75 Hz frame rate.
**
- 8 BPP (256 colors).
**
- 33 MHz input clock.
**
- 2 MB of 60 ns EDO memory.
**
**
*** This is sample code only! ***
**
This means:
**
1) Generic C is used. I assume that pointers can access the
**
relevent memory addresses (this is not always the case).
**
i.e. using the 1355B0B card on an Intel 16 bit platform will require
**
changes to use a DOS extender to access memory and registers.
**
2) Register setup is done with discrete writes rather than being
**
table driven. This allows for clearer commenting. A real program
**
would probably store the register settings in an array and loop
**
through the array writing each element to a control register.
**
3) The pointer assignment for the register offset does not work on
**
Intel 16 bit platforms.
**
**---------------------------------------------------------------------------
**
Copyright (c) 1998 Epson Research and Development, Inc.
**
All Rights Reserved.
**===========================================================================
*/
/*
** Note that only the upper four bits of the LUT are actually used.
*/
unsigned char LUT8[256*3] =
{
/* Primary and secondary colors */
0x00, 0x00, 0x00,
0x00, 0x00, 0xA0,
0xA0, 0x00, 0x00,
0xA0, 0x00, 0xA0,
0x50, 0x50, 0x50,
0x00, 0x00, 0xF0,
0xF0, 0x00, 0x00,
0xF0, 0x00, 0xF0,
/* Gray shades */
0x00, 0x00, 0x00,
0x10, 0x10, 0x10,
0x40, 0x40, 0x40,
0x50, 0x50, 0x50,
0x80, 0x80, 0x80,
0x90, 0x90, 0x90,
0xC0, 0xC0, 0xC0,
0xD0, 0xD0, 0xD0,
/* Black to red */
0x00, 0x00, 0x00,
0x10, 0x00, 0x00,
0x40, 0x00, 0x00,
0x50, 0x00, 0x00,
0x80, 0x00, 0x00,
0x90, 0x00, 0x00,
0xC0, 0x00, 0x00,
0xD0, 0x00, 0x00,
/* Black to green */
0x00, 0x00, 0x00,
0x00, 0x10, 0x00,
0x00, 0x40, 0x00,
0x00, 0x50, 0x00,
0x00, 0x80, 0x00,
0x00, 0x90, 0x00,
0x00, 0xC0, 0x00,
0x00, 0xD0, 0x00,
/* Black to blue */
0x00, 0x00, 0x00,
0x00, 0x00, 0x10,
0x00, 0x00, 0x40,
0x00, 0x00, 0x50,
0x00, 0x00, 0x80,
0x00, 0x00, 0x90,
0x00, 0x00, 0xC0,
0x00, 0x00, 0xD0,
/* Blue to cyan (blue and green) */
0x00, 0x00, 0xF0,
0x00, 0x10, 0xF0,
0x00, 0x40, 0xF0,
0x00, 0x50, 0xF0,
0x00, 0x80, 0xF0,
0x00, 0x90, 0xF0,
0x00, 0xC0, 0xF0,
0x00, 0xD0, 0xF0,
/* Cyan (blue and green) to green */
0x00, 0xF0, 0xF0,
0x00, 0xF0, 0xE0,
0x00, 0xF0, 0xB0,
0x00, 0xF0, 0xA0,
0x00, 0xF0, 0x70,
0x00, 0xF0, 0x60,
0x00, 0xF0, 0x30,
0x00, 0xF0, 0x20,
/* Green to yellow (red and green) */
0x00, 0xF0, 0x00,
0x10, 0xF0, 0x00,
0x40, 0xF0, 0x00,
0x50, 0xF0, 0x00,
0x80, 0xF0, 0x00,
0x90, 0xF0, 0x00,
S1D13505 PROGRAMMING NOTES
AND EXAMPLES (X23A-G-003-05)
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
98-10-29
0x00, 0xA0, 0x00,
0x00, 0xA0, 0xA0,
0xA0, 0xA0, 0x00,
0xA0, 0xA0, 0xA0,
0x00, 0xF0, 0x00,
0x00, 0xF0, 0xF0,
0xF0, 0xF0, 0x00,
0xF0, 0xF0, 0xF0,
0x20, 0x20, 0x20,
0x30, 0x30, 0x30,
0x60, 0x60, 0x60,
0x70, 0x70, 0x70,
0xA0, 0xA0, 0xA0,
0xB0, 0xB0, 0xB0,
0xE0, 0xE0, 0xE0,
0xF0, 0xF0, 0xF0,
0x20, 0x00, 0x00,
0x30, 0x00, 0x00,
0x60, 0x00, 0x00,
0x70, 0x00, 0x00,
0xA0, 0x00, 0x00,
0xB0, 0x00, 0x00,
0xE0, 0x00, 0x00,
0xF0, 0x00, 0x00,
0x00, 0x20, 0x00,
0x00, 0x30, 0x00,
0x00, 0x60, 0x00,
0x00, 0x70, 0x00,
0x00, 0xA0, 0x00,
0x00, 0xB0, 0x00,
0x00, 0xE0, 0x00,
0x00, 0xF0, 0x00,
0x00, 0x00, 0x20,
0x00, 0x00, 0x30,
0x00, 0x00, 0x60,
0x00, 0x00, 0x70,
0x00, 0x00, 0xA0,
0x00, 0x00, 0xB0,
0x00, 0x00, 0xE0,
0x00, 0x00, 0xF0,
0x00, 0x20, 0xF0,
0x00, 0x30, 0xF0,
0x00, 0x60, 0xF0,
0x00, 0x70, 0xF0,
0x00, 0xA0, 0xF0,
0x00, 0xB0, 0xF0,
0x00, 0xE0, 0xF0,
0x00, 0xF0, 0xF0,
0x00, 0xF0, 0xD0,
0x00, 0xF0, 0xC0,
0x00, 0xF0, 0x90,
0x00, 0xF0, 0x80,
0x00, 0xF0, 0x50,
0x00, 0xF0, 0x40,
0x00, 0xF0, 0x10,
0x00, 0xF0, 0x00,
0x20, 0xF0, 0x00,
0x30, 0xF0, 0x00,
0x60, 0xF0, 0x00,
0x70, 0xF0, 0x00,
0xA0, 0xF0, 0x00,
0xB0, 0xF0, 0x00,
EPSON
12: SAMPLE CODE
2-57

Advertisement

Table of Contents
loading

Table of Contents