Search found 2 matches

by kle0ps
Thu Nov 22, 2012 12:57 am
Forum: C and ASM Programming
Topic: Convert lcd code for pic18f1220 to pic18f2520
Replies: 3
Views: 7986

Re: Convert lcd code for pic18f1220 to pic18f2520

Thank you very much. I changed this and its working fine!
by kle0ps
Wed Nov 21, 2012 10:31 pm
Forum: C and ASM Programming
Topic: Convert lcd code for pic18f1220 to pic18f2520
Replies: 3
Views: 7986

Convert lcd code for pic18f1220 to pic18f2520

Hello I use this code to connect pic18f1220 and with lcd (HITACHI HD44780 ) and its working fine.

//E on A7, RS on A6, D4-7 on A0-3.
#include <p18f1220.h>
#pragma config WDT=OFF , OSC=INTIO2 , PWRT = ON, LVP=OFF, MCLRE = OFF

#include <delays.h>
#define CLEAR_SCREEN 0b00000001
#define FOUR ...