Книга: Advanced PIC Microcontroller Projects in C

Connecting the LCD

Connecting the LCD

The mikroC compiler assumes by default that the LCD is connected to the microcontroller as follows:

LCD Microcontroller port
D7  Bit 7 of the port
D6  Bit 6 of the port
D5  Bit 5 of the port
D4  Bit 4 of the port
E   Bit 3 of the port
RS  Bit 2 of the port

where port is the port name specified using the Lcd_Init statement.

For example, we can use the statement Lcd_Init(&PORTB) if the LCD is connected to PORTB with the default connection.

It is also possible to connect the LCD differently, using the command Lcd_Config to define the connection.

Оглавление книги


Генерация: 1.093. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз