?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 /*! \file ks0108conf.h \brief Graphic LCD driver configuration. */
2 //*****************************************************************************
3 //
4 // File Name : 'ks0108conf.h'
5 // Title : Graphic LCD driver for HD61202/KS0108 displays
6 // Author : Pascal Stang - Copyright (C) 2001-2003
7 // Date : 10/19/2001
8 // Revised : 5/1/2003
9 // Version : 0.5
10 // Target MCU : Atmel AVR
11 // Editor Tabs : 4
12 //
13 // NOTE: This code is currently below version 1.0, and therefore is considered
14 // to be lacking in some functionality or documentation, or may not be fully
15 // tested. Nonetheless, you can expect most functions to work.
16 //
17 // This code is distributed under the GNU Public License
18 // which can be found at http://www.gnu.org/licenses/gpl.txt
19 //
20 //*****************************************************************************
21  
22  
23 #ifndef KS0108CONF_H
24 #define KS0108CONF_H
25  
26 // define LCD hardware interface
27 // -LCD_MEMORY_INTERFACE assumes that the registers of the LCD have been mapped
28 // into the external memory space of the AVR processor memory bus
29 // -LCD_PORT_INTERFACE is a direct-connection interface from port pins to LCD
30 // SELECT (UNCOMMENT) ONLY ONE!
31  
32 // *** NOTE: memory interface is not yet fully supported, but it might work
33  
34 //#define GLCD_MEMORY_INTERFACE
35 #define GLCD_PORT_INTERFACE
36  
37 // GLCD_PORT_INTERFACE specifics
38 #ifdef GLCD_PORT_INTERFACE
39 // make sure these parameters are not already defined elsewhere
40 #ifndef GLCD_CTRL_PORT
41 #define GLCD_CTRL_PORT PORTB // PORT for LCD control signals
42 #define GLCD_CTRL_DDR DDRB // DDR register of LCD_CTRL_PORT
43 #define GLCD_CTRL_RS PB0 // pin for LCD Register Select
44 #define GLCD_CTRL_RW PB1 // pin for LCD Read/Write
45 #define GLCD_CTRL_E PB2 // pin for LCD Enable
46 #define GLCD_CTRL_CS0 PB3 // pin for LCD Controller 0 Chip Select
47 #define GLCD_CTRL_CS1 PB4 // pin for LCD Controller 1 Chip Select(*)
48 #define GLCD_CTRL_CS2 PB6 // pin for LCD Controller 2 Chip Select(*)
49 #define GLCD_CTRL_CS3 PB7 // pin for LCD Controller 3 Chip Select(*)
50 #define GLCD_CTRL_RESET PB5 // pin for LCD Reset
51 // (*) NOTE: additonal controller chip selects are optional and
52 // will be automatically used per each step in 64 pixels of display size
53 // Example: Display with 128 hozizontal pixels uses 2 controllers
54 #endif
55 #ifndef GLCD_DATA_PORT
56 #define GLCD_DATA_PORT PORTC // PORT for LCD data signals
57 #define GLCD_DATA_DDR DDRC // DDR register of LCD_DATA_PORT
58 #define GLCD_DATA_PIN PINC // PIN register of LCD_DATA_PORT
59 #endif
60 #endif
61  
62 // GLCD_MEMORY_INTERFACE specifics
63 #ifdef GLCD_MEMORY_INTERFACE
64 // make sure these parameters are not already defined elsewhere
65 #ifndef GLCD_CONTROLLER0_CTRL_ADDR
66 // absolute address of LCD Controller #0 CTRL and DATA registers
67 #define GLCD_CONTROLLER0_CTRL_ADDR 0x1000
68 #define GLCD_CONTROLLER0_DATA_ADDR 0x1001
69 // offset of other controllers with respect to controller0
70 #define GLCD_CONTROLLER_ADDR_OFFSET 0x0002
71 #endif
72 #endif
73  
74  
75 // LCD geometry defines (change these definitions to adapt code/settings)
76 #define GLCD_XPIXELS 128 // pixel width of entire display
77 #define GLCD_YPIXELS 64 // pixel height of entire display
78 #define GLCD_CONTROLLER_XPIXELS 64 // pixel width of one display controller
79  
80 // Set text size of display
81 // These definitions are not currently used and will probably move to glcd.h
82 #define GLCD_TEXT_LINES 8 // visible lines
83 #define GLCD_TEXT_LINE_LENGTH 22 // internal line length
84  
85 #endif
{BLAME END}
{FOOTER START}

Powered by WebSVN v2.8.3