?lang_form? ?lang_select? ?lang_submit? ?lang_endform?
{HEADER END}
{BLAME START}

library

?curdirlinks? -

Blame information for rev 6

Line No. Rev Author Line
1 6 kaklik <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>Procyon AVRlib: conf/ks0108conf.h Source File</title>
4 <link href="dox.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.4.2 -->
7 <div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
8 <div class="nav">
9 <a class="el" href="dir_000000.html">conf</a></div>
10 <h1>ks0108conf.h</h1><a href="ks0108conf_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*! \file ks0108conf.h \brief Graphic LCD driver configuration. */</span>
11 00002 <span class="comment">//*****************************************************************************</span>
12 00003 <span class="comment">//</span>
13 00004 <span class="comment">// File Name : 'ks0108conf.h'</span>
14 00005 <span class="comment">// Title : Graphic LCD driver for HD61202/KS0108 displays</span>
15 00006 <span class="comment">// Author : Pascal Stang - Copyright (C) 2001-2003</span>
16 00007 <span class="comment">// Date : 10/19/2001</span>
17 00008 <span class="comment">// Revised : 5/1/2003</span>
18 00009 <span class="comment">// Version : 0.5</span>
19 00010 <span class="comment">// Target MCU : Atmel AVR</span>
20 00011 <span class="comment">// Editor Tabs : 4</span>
21 00012 <span class="comment">//</span>
22 00013 <span class="comment">// NOTE: This code is currently below version 1.0, and therefore is considered</span>
23 00014 <span class="comment">// to be lacking in some functionality or documentation, or may not be fully</span>
24 00015 <span class="comment">// tested. Nonetheless, you can expect most functions to work.</span>
25 00016 <span class="comment">//</span>
26 00017 <span class="comment">// This code is distributed under the GNU Public License</span>
27 00018 <span class="comment">// which can be found at http://www.gnu.org/licenses/gpl.txt</span>
28 00019 <span class="comment">//</span>
29 00020 <span class="comment">//*****************************************************************************</span>
30 00021
31 00022
32 00023 <span class="preprocessor">#ifndef KS0108CONF_H</span>
33 00024 <span class="preprocessor"></span><span class="preprocessor">#define KS0108CONF_H</span>
34 00025 <span class="preprocessor"></span>
35 00026 <span class="comment">// define LCD hardware interface</span>
36 00027 <span class="comment">// -LCD_MEMORY_INTERFACE assumes that the registers of the LCD have been mapped</span>
37 00028 <span class="comment">// into the external memory space of the AVR processor memory bus</span>
38 00029 <span class="comment">// -LCD_PORT_INTERFACE is a direct-connection interface from port pins to LCD</span>
39 00030 <span class="comment">// SELECT (UNCOMMENT) ONLY ONE!</span>
40 00031
41 00032 <span class="comment">// *** NOTE: memory interface is not yet fully supported, but it might work</span>
42 00033
43 00034 <span class="comment">//#define GLCD_MEMORY_INTERFACE</span>
44 00035 <span class="preprocessor">#define GLCD_PORT_INTERFACE</span>
45 00036 <span class="preprocessor"></span>
46 00037 <span class="comment">// GLCD_PORT_INTERFACE specifics</span>
47 00038 <span class="preprocessor">#ifdef GLCD_PORT_INTERFACE</span>
48 00039 <span class="preprocessor"></span> <span class="comment">// make sure these parameters are not already defined elsewhere</span>
49 00040 <span class="preprocessor"> #ifndef GLCD_CTRL_PORT</span>
50 00041 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_CTRL_PORT PORTB // PORT for LCD control signals</span>
51 00042 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_CTRL_DDR DDRB // DDR register of LCD_CTRL_PORT</span>
52 00043 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_CTRL_RS PB0 // pin for LCD Register Select</span>
53 00044 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_CTRL_RW PB1 // pin for LCD Read/Write</span>
54 00045 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_CTRL_E PB2 // pin for LCD Enable</span>
55 00046 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_CTRL_CS0 PB3 // pin for LCD Controller 0 Chip Select</span>
56 00047 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_CTRL_CS1 PB4 // pin for LCD Controller 1 Chip Select(*)</span>
57 00048 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_CTRL_CS2 PB6 // pin for LCD Controller 2 Chip Select(*)</span>
58 00049 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_CTRL_CS3 PB7 // pin for LCD Controller 3 Chip Select(*)</span>
59 00050 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_CTRL_RESET PB5 // pin for LCD Reset</span>
60 00051 <span class="preprocessor"></span> <span class="comment">// (*) NOTE: additonal controller chip selects are optional and </span>
61 00052 <span class="comment">// will be automatically used per each step in 64 pixels of display size</span>
62 00053 <span class="comment">// Example: Display with 128 hozizontal pixels uses 2 controllers</span>
63 00054 <span class="preprocessor"> #endif</span>
64 00055 <span class="preprocessor"></span><span class="preprocessor"> #ifndef GLCD_DATA_PORT</span>
65 00056 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_DATA_PORT PORTC // PORT for LCD data signals</span>
66 00057 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_DATA_DDR DDRC // DDR register of LCD_DATA_PORT</span>
67 00058 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_DATA_PIN PINC // PIN register of LCD_DATA_PORT</span>
68 00059 <span class="preprocessor"></span><span class="preprocessor"> #endif</span>
69 00060 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
70 00061 <span class="preprocessor"></span>
71 00062 <span class="comment">// GLCD_MEMORY_INTERFACE specifics</span>
72 00063 <span class="preprocessor">#ifdef GLCD_MEMORY_INTERFACE</span>
73 00064 <span class="preprocessor"></span> <span class="comment">// make sure these parameters are not already defined elsewhere</span>
74 00065 <span class="preprocessor"> #ifndef GLCD_CONTROLLER0_CTRL_ADDR</span>
75 00066 <span class="preprocessor"></span> <span class="comment">// absolute address of LCD Controller #0 CTRL and DATA registers</span>
76 00067 <span class="preprocessor"> #define GLCD_CONTROLLER0_CTRL_ADDR 0x1000</span>
77 00068 <span class="preprocessor"></span><span class="preprocessor"> #define GLCD_CONTROLLER0_DATA_ADDR 0x1001</span>
78 00069 <span class="preprocessor"></span> <span class="comment">// offset of other controllers with respect to controller0</span>
79 00070 <span class="preprocessor"> #define GLCD_CONTROLLER_ADDR_OFFSET 0x0002</span>
80 00071 <span class="preprocessor"></span><span class="preprocessor"> #endif</span>
81 00072 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
82 00073 <span class="preprocessor"></span>
83 00074
84 00075 <span class="comment">// LCD geometry defines (change these definitions to adapt code/settings)</span>
85 00076 <span class="preprocessor">#define GLCD_XPIXELS 128 // pixel width of entire display</span>
86 00077 <span class="preprocessor"></span><span class="preprocessor">#define GLCD_YPIXELS 64 // pixel height of entire display</span>
87 00078 <span class="preprocessor"></span><span class="preprocessor">#define GLCD_CONTROLLER_XPIXELS 64 // pixel width of one display controller</span>
88 00079 <span class="preprocessor"></span>
89 00080 <span class="comment">// Set text size of display</span>
90 00081 <span class="comment">// These definitions are not currently used and will probably move to glcd.h</span>
91 00082 <span class="preprocessor">#define GLCD_TEXT_LINES 8 // visible lines</span>
92 00083 <span class="preprocessor"></span><span class="preprocessor">#define GLCD_TEXT_LINE_LENGTH 22 // internal line length</span>
93 00084 <span class="preprocessor"></span>
94 00085 <span class="preprocessor">#endif</span>
95 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:06 2006 for Procyon AVRlib by&nbsp;
96 <a href="http://www.doxygen.org/index.html">
97 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address>
98 </body>
99 </html>
{BLAME END}
{FOOTER START}

Powered by WebSVN v2.8.3