16FXlib
lcd.cfg.h
Go to the documentation of this file.
1 
2 //*****************************************************************************
3 // Author : Christian Illy
4 // Created : 20.04.2009
5 // Revised : 04.06.2009
6 // Version : 0.1
7 // Target MCU : Fujitsu MB96300 series
8 //
9 // This program is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation, either version 3 of the License, or
12 // (at your option) any later version.
13 //
14 // This program is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with this program. If not, see <http://www.gnu.org/licenses/>.
21 //
27 //*****************************************************************************
29 #ifndef LCD_CFG_H_
30 #define LCD_CFG_H_
31 
33 #define LCD_FRAMEBUFFER_MODE 0
34 
36 #define LCD_DATA_PORT PDR01
37 #define LCD_DATA_DDR DDR01
39 #define LCD_DATA_PIER PIER01
41 
43 #define LCD_CTRL_PORT PDR02
44 #define LCD_CTRL_DDR DDR02
46 #define LCD_CTRL_PIER PIER02
48 #define LCD_CTRL_DI 0
50 #define LCD_CTRL_RW 1
52 #define LCD_CTRL_E 2
54 #define LCD_CTRL_CS1 3
56 #define LCD_CTRL_CS2 4
58 #define LCD_CTRL_RESET 5
60 
61 
66 
68 #define LCD_CMD_ON 0x3f
69 #define LCD_CMD_OFF 0x3e
71 #define LCD_CMD_SETADDRESS 0x40
73 #define LCD_CMD_SETPAGE 0xb8
75 #define LCD_CMD_STARTLINE 0xc0
77 
79 
80 
82 #define LCD_WIDTH 128
83 #define LCD_HEIGHT 64
85 
86 #endif /* LCD_CFG_H_ */
87