ABL electronic PIC16 Personal Computer User Manual


 
MikroElektronika:
Development
tools
-
Books
-
Compilers
20 7
page
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
Library Example (custom pin settings)
Hardware Connection
char *text = "mikroElektronika";
void main() {
TRISB = 0;
// PORTB is output
TRISD = 0;
// PORTD is output
// Initialize LCD at PORTB and PORTD with custom pin settings
Lcd8_Config(&PORTB,&PORTD,3,2,0,0,1,2,3,4,5,6,7);
Lcd8_Cmd(Lcd_CURSOR_OFF);
// Turn off cursor
Lcd8_Out(1, 1, text);
// Print text at 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