mikroC
making it simple...
Library Example (custom pin settings)
char *text = "mikroElektronika";
void main() {
TRISB = 0;
TRISD = 0;
// 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);
Lcd8_Out(1, 1, text);
}
Hardware Connection
PIC MCU
any port (with 8 pins)
Control Port
PIN0
R/W
MikroElektronika: Development tools - Books - Compilers
// PORTB is output
// PORTD is output
// Turn off cursor
// Print text at LCD
PIN2
PIN3
E
RS
+5V
1
Vss
Vdd
Vee
mikroC - C Compiler for Microchip PIC microcontrollers
Data Port
PIN3
PIN0
PIN1
PIN2
RS
R/W
E
D0
D1
D2
D3
D4
D5
D6
D7
m i k r o e l E k t r o n i k a
PIN4
PIN5
PIN6
PIN7
page
207
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?