Over the past week I am puzzled that how to interface a lcd with pic18f452 microcontroller atlast i got it working Softwares Used 1. mikroc for pic pro 2. proteus vsm simulator (demo version) Hardwares Used 1. 16*4 LCD 2. PIC18F452 3. 8Mhz Crystal Oscillator 4. and resistors, capacitors, power supply etc. The Following is the schematic The Following is the working code LCD sbit Lcd_RS at RA0_bit; sbit Lcd_EN at RA2_bit; sbit Lcd_D7 at RB7_bit; sbit Lcd_D6 at RB6_bit; sbit Lcd_D5 at RB5_bit; sbit Lcd_D4 at RB4_bit; sbit Lcd_D3 at RB3_bit; sbit Lcd_D2 at RB2_bit; sbit Lcd_D1 at RB1_bit; sbit Lcd_D0 at RB0_bit; sbit Lcd_RS_Direction at TRISA0_bit; sbit Lcd_EN_Direction at TRISA2_bit; sbit Lcd_D7_Direction at TRISB7_bit; sbit Lcd_D6_Direction at TRISB6_bit; sbit Lcd_D5_Direction at TRISB5_bit; sbit Lcd_D4_Direction at TRISB4_bit; sbit Lcd_D3_Direction at TRISB3_bit; sbit Lcd_D2_Direction at TRISB2_bit; sbit Lcd_D1_Direction at TRISB1_bit; sbit Lcd_D0_Direction at TRISB0...
Challenge Your Limits