1118 |
mija |
1 |
/* mija 2008 |
|
|
2 |
|
|
|
3 |
*.h file for defines lcd.c |
|
|
4 |
|
|
|
5 |
data PIN_D0 |
|
|
6 |
PIN_D1 |
|
|
7 |
PIN_D2 |
|
|
8 |
PIN_D3 |
|
|
9 |
write PIN_E |
|
|
10 |
commamnd/data PIN_RS |
|
|
11 |
|
|
|
12 |
!!!!NOTE must be set PIN with PORT and DDR |
|
|
13 |
*/ |
|
|
14 |
|
|
|
15 |
//************************************************************* |
|
|
16 |
|
|
|
17 |
#define PIN_D0 PD2 |
|
|
18 |
#define PORT_D0 PORTD |
|
|
19 |
#define DDR_D0 DDRD |
|
|
20 |
|
|
|
21 |
#define PIN_D1 PD3 |
|
|
22 |
#define PORT_D1 PORTD |
|
|
23 |
#define DDR_D1 DDRD |
|
|
24 |
|
|
|
25 |
#define PIN_D2 PD4 |
|
|
26 |
#define PORT_D2 PORTD |
|
|
27 |
#define DDR_D2 DDRD |
|
|
28 |
|
|
|
29 |
#define PIN_D3 PD5 |
|
|
30 |
#define PORT_D3 PORTD |
|
|
31 |
#define DDR_D3 DDRD |
|
|
32 |
|
|
|
33 |
#define PIN_E PA0 |
|
|
34 |
#define PORT_E PORTA |
|
|
35 |
#define DDR_E DDRA |
|
|
36 |
|
|
|
37 |
#define PIN_RS PA1 |
|
|
38 |
#define PORT_RS PORTA |
|
|
39 |
#define DDR_RS DDRA |
|
|
40 |
|
|
|
41 |
//************************************************************* |
|
|
42 |
|
|
|
43 |
void LCD_init(void); |
|
|
44 |
void LCD_putc(uint8_t data); |
|
|
45 |
void LCD_gotoxy( uint8_t x, uint8_t y); |
|
|
46 |
void LCD_clear(void); |
|
|
47 |
|
|
|
48 |
void LCD_send_data(uint8_t data); |
|
|
49 |
void LCD_send_command(uint8_t data); |
|
|
50 |
void LCD_send(uint8_t data); |
|
|
51 |
void LCD_send_nibble(uint8_t data); |
|
|
52 |
void LCD_init_IO_PIN(void); |
|
|
53 |
|
|
|
54 |
//************************************************************* |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|