ABL electronic PIC16 Personal Computer User Manual


 
MikroElektronika:
Development
tools
-
Books
-
Compilers
20 1
page
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
Library Example (default pin settings)
Hardware Connection
char *text = "mikroElektronika";
void main() {
TRISB = 0;
// PORTB is output
Lcd_Init(&PORTB);
// Initialize LCD connected to PORTB
Lcd_Cmd(Lcd_CLEAR);
// Clear display
Lcd_Cmd(Lcd_CURSOR_OFF);
// Turn cursor off
Lcd_Out(1, 1, text);
// Print text to LCD, 2nd row, 1st column
}//~!
1
R/W D4ERS D3D2D1D0 D7D6D5VeeVddVss
+5V
LCD contrast
PIN1 PIN7PIN0 PIN6PIN5PIN4PIN3PIN2
PIC MCU
any port (with 8 pins)
PIC
PIN7
PIN6
PIN5
PIN4
PIN3
PIN2
PIN1
PIN0
LCD
D7
D6
D5
D4
RS
E
mikroe
lEk
t
r
on i
k
a