T C E E T: Embedded System Lab Experiment #4 LCD Programming
T C E E T: Embedded System Lab Experiment #4 LCD Programming
T C E E T: Embedded System Lab Experiment #4 LCD Programming
Experiment #4
Lcd Programming
Objective:
Writing a program in mikroc and designing the application circuit in proteus.
Students will implement different programs to program the lcd.
Programs Practice
1st program
void main() {
DDRD=0xff;
DDRB=0x00;
while(1) {
if(PINB.B0){
PORTD.B0=1;
PORTD.B1=1;
}
else if(PINB.B1){
PORTD.B2=1;
PORTD.B3=1;
}
else{
PORTD.B0=0;
PORTD.B1=0;
PORTD.B2=0;
PORTD.B3=0;
}
}
}