mikroC - C Compiler for Microchip PIC microcontrollers
Library Example (default pin settings)
char *text = "mikroElektronika";
void main() {
TRISB = 0;
TRISC = 0;
Lcd8_Init(&PORTB, &PORTC);
Lcd8_Cmd(Lcd_CURSOR_OFF);
Lcd8_Out(1, 1, text);
}
Hardware Connection
PIC MCU
any port (with 8 pins)
Control Port
PIN0
R/W
page
206
// PORTB is output
// PORTC is output
// Initialize LCD at PORTB and PORTC
// Turn off cursor
// Print text on LCD
PIN2
PIN3
E
RS
+5V
1
Vss
Vdd
Vee
MikroElektronika: Development tools - Books - Compilers
Data Port
PIN0
PIN1
PIN2
PIN3
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
making it simple...
PIN4
PIN5
PIN6
PIN7
mikroC
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?