Papizo
Junior Member level 1
Hi bmb_10 thank you, yes I wanted because of the Schematic that's all, also another question I have LCD and I have connected everything, when I connect pickit2 I can see one line with block box but nothing is displaying, so I don't what I have done wrong,
LCD
PIN 1 --> Ground
PIN 2 --> +5V
PIN 3 --> POT 10K
PIN 4 - RS --> RD1
PIN 5 - R/W --> RD2
PIN 6 - E --> RD0
PIN 7 --> didn't connect
PIN 8 --> didn't connect
PIN 9 -->didn't connect
PIN 10 --> didn't connect
PIN 11 --> RD4
PIN 12 --> RD5
PIN 13 --> RD6
PIN 14 --> RD7
PIN 15 --> didn't connect
PIN 16 --> didn't connect
This is the code
Anything wrong with that code??Also am using MPLAB with pickit to run this code......
LCD
PIN 1 --> Ground
PIN 2 --> +5V
PIN 3 --> POT 10K
PIN 4 - RS --> RD1
PIN 5 - R/W --> RD2
PIN 6 - E --> RD0
PIN 7 --> didn't connect
PIN 8 --> didn't connect
PIN 9 -->didn't connect
PIN 10 --> didn't connect
PIN 11 --> RD4
PIN 12 --> RD5
PIN 13 --> RD6
PIN 14 --> RD7
PIN 15 --> didn't connect
PIN 16 --> didn't connect
This is the code
Code:
#include <16F877A.h>
#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //Crystal osc <= 20mhz for PCM/PCH , 3mhz to 10 mhz for PCD
#FUSES NOBROWNOUT //No brownout reset
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#use delay(clock=20000000)
#define LCD_DB4 PIN_D4
#define LCD_DB5 PIN_D5
#define LCD_DB6 PIN_D6
#define LCD_DB7 PIN_D7
#define LCD_E PIN_D0
#define LCD_RS PIN_D1
#define LCD_RW PIN_D2
void main(void)
{
lcd_init();
delay_ms(5);
lcd_putc("\f"); //Clear display
delay_ms(5);
lcd_gotoxy(1,1);
delay_ms(5);
lcd_putc("Champ"); // you want to send this to the lcd only once
while(TRUE)
{
// LCD Display //
delay_ms(1000);
}
}
Anything wrong with that code??Also am using MPLAB with pickit to run this code......