Mikroc, Making it simple, Page – ABL electronic PIC Microcontrollers PIC16 User Manual
Page 210

mikroC - C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
202
MikroElektronika: Development tools - Books - Compilers
page
Library Example (custom pin settings)
Hardware Connection
char
*text = "mikroElektronika";
void
main() {
TRISD = 0;
// PORTD is output
Lcd_Config(&PORTD,1,2,0,3,5,4,6);
// Initialize LCD on PORTD
Lcd_Cmd(Lcd_CURSOR_OFF);
// Turn off cursor
Lcd_Out(1, 1, text);
// Print Text at LCD
}
1
R/W
D4
E
RS
D3
D2
D1
D0
D7
D6
D5
Vee
Vdd
Vss
+5V
LC
D
c
ont
ra
s
t
PIN1
PIN7
PIN0
PIN6
PIN5
PIN4
PIN3
PIN2
PIC MCU
PORTD
PIC
PIN7
PIN6
PIN5
PIN4
PIN3
PIN2
PIN1
PIN0
LCD
D7
D6
D5
D4
RS
E
m i k r o e l E k t r o n i k a
This manual is related to the following products: