Hardware Connection - mikroElektronika PIC Microcontrollers PIC12 User Manual

Mikroc user's manual
Table of Contents

Advertisement

mikroC
making it simple...
Library Example (default pin settings)
char *text = "mikroElektronika";
void main() {
TRISB = 0;
Lcd_Init(&PORTB);
Lcd_Cmd(Lcd_CLEAR);
Lcd_Cmd(Lcd_CURSOR_OFF);
Lcd_Out(1, 1, text);
}//~!

Hardware Connection

PIC
PIN7
PIN6
PIN5
PIN4
PIN3
PIN2
PIN1
PIN0
MikroElektronika: Development tools - Books - Compilers
// PORTB is output
// Initialize LCD connected to PORTB
// Clear display
// Turn cursor off
// Print text to LCD, 2nd row, 1st column
PIC MCU
any port (with 8 pins)
PIN0
+5V
LCD
D7
D6
D5
1
Vss
D4
E
RS
mikroC - C Compiler for Microchip PIC microcontrollers
PIN1
PIN2
PIN3
PIN4
Vdd
Vee
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
PIN5
PIN6
PIN7
201
page

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?

This manual is also suitable for:

Pic microcontrollers pic16Pic microcontrollers pic18

Table of Contents