mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
20 6
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
Library Example (default pin settings)
Hardware Connection
char *text = "mikroElektronika";
void main() {
TRISB = 0;
// PORTB is output
TRISC = 0;
// PORTC is output
Lcd8_Init(&PORTB, &PORTC);
// Initialize LCD at PORTB and PORTC
Lcd8_Cmd(Lcd_CURSOR_OFF);
// Turn off cursor
Lcd8_Out(1, 1, text);
// Print text on LCD
}
1
R/W D4ERS D3D2D1D0 D7D6D5VeeVddVss
+5V
LCD contrast
PIN1
PIN7
PIN0
PIN6PIN5PIN4PIN3
PIN2
PIC MCU
any port (with 8 pins)
mikroe
lEk
t
r
on i
k
a
Data Port
Control Port
PIN0
PIN3
PIN2
RS
E
R/W