1089 |
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 PA1 |
|
|
18 |
#define PORT_D0 PORTA |
|
|
19 |
#define DDR_D0 DDRA |
|
|
20 |
|
|
|
21 |
#define PIN_D1 PD3 |
|
|
22 |
#define PORT_D1 PORTD |
|
|
23 |
#define DDR_D1 DDRD |
|
|
24 |
|
|
|
25 |
#define PIN_D2 PA0 |
|
|
26 |
#define PORT_D2 PORTA |
|
|
27 |
#define DDR_D2 DDRA |
|
|
28 |
|
|
|
29 |
#define PIN_D3 PD2 |
|
|
30 |
#define PORT_D3 PORTD |
|
|
31 |
#define DDR_D3 DDRD |
|
|
32 |
|
|
|
33 |
#define PIN_E PD4 |
|
|
34 |
#define PORT_E PORTD |
|
|
35 |
#define DDR_E DDRD |
|
|
36 |
|
|
|
37 |
#define PIN_RS PD5 |
|
|
38 |
#define PORT_RS PORTD |
|
|
39 |
#define DDR_RS DDRD |
|
|
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 |
|