Uživatel:Emredogan

Z MAM wiki

Přejít na: navigace, hledání

Project Name : LCD, MikroC Pro, and ISIS Proteus

Name : Emre Dogan Basak

PROJECT 

Goal : - Obtaining EMRE DOAN title on the LCD (LM016L).


Method : - MikroC Pro for PIC and ISIS Proteus software programmes were used to reach the 

goal :

- During the work connections and configurations between LCD (LM016L) ,PIC(16F877) and Variable Resistor (POT HG) were realized on ISIS Proteus.

- C codes for software connections between these devices were ensured by coding on MikroC Pro.

Works :

      At the beginnig at my work i checked suitable PIC for my work and i decided on PIC(16F877).PIC16F877 is one of the most commonly used microcontroller especially in automotive, industrial, appliances and consumer applications. It has High performance RISC CPU.

Soubor:PIC16F877.jpg


I used LM016L LCD to obtain Emre Doan title. Soubor:LCD1.jpg ‎


All connections between LCD and PIC were found on Pick Devices menu on ISIS Proteus. Connection between these devices were realized under their features. Only RB0/INT,RB1,RB2,RB3/PGM,RG4,RG5 ports were contacted to LCD devices. In conclusion, i obtained this circuit. Soubor:Pin connections.jpg


2. step of my report consist c-codes which i wrote for connections and definitions for devices ports which have connections bettween ground-ports, variable resistor-ports, variable resitstor-ground. I used this C code for coding LCD pinout setting and pin direction.,


// LCD pinout setting 

sbit LCD_RS at RB0_bit;

sbit LCD_EN at RB1_bit;

sbit LCD_D4 at RB2_bit;

sbit LCD_D5 at RB3_bit;

sbit LCD_D6 at RB4_bit;

sbit LCD_D7 at RB5_bit;


//pin direction 

sbit LCD_RS_Direction at TRISB0_bit;

sbit LCD_EN_Direction at TRISB1_bit;

sbit LCD_D4_Direction at TRISB2_bit;

sbit LCD_D5_Direction at TRISB3_bit;

sbit LCD_D6_Direction at TRISB4_bit;

sbit LCD_D7_Direction at TRISB5_bit;


void main() { 

Lcd_Init();

Lcd_Out(1, 1, "EMRE DOAN" );

Lcd_Cmd(_LCD_CURSOR_OFF);

}

After i saved as the file. I built to see performance of code and it was working. After this step i turn to circuit on ISIC Proteus. After i clicked right buton of mouse on PIC16F877. I chose Edit Properties selection and uploaded .hex documents to the Edit Component – Program File.

After i ran the circuit. I obtained my goal and i have the EMRE DOAN title on LCD.

Soubor:Last screen.jpg ‎

Osobní nástroje