mikroC - C Compiler for Microchip PIC microcontrollers
Library Example (custom pin settings)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 |
} |
|
mikroC
making it simple...
Hardware Connection
PIC LCD
PIN7
PIN6 D4
PIN5D6
PIN4D5
PIN3D7
PIN2E
PIN1 RS
PIN0
PIC MCU
PORTD
PIN0 PIN1 PIN2 PIN3 PIN4 PIN5 PIN6 PIN7
LCD contrast | +5V |
|
1
Vss Vdd Vee RS R/W E D0 D1 D2 D3 D4 D5 D6 D7
m i k roel E kt ron i k a
page |
|
202 | MikroElektronika: Development tools - Books - Compilers |
|