'LCD doesn't show any values
I've created a project in Proteus and I have the following code in mikroC:
sbit LCD_RS at RC0_bit;
sbit LCD_EN at RC1_bit;
sbit LCD_D4 at RC4_bit;
sbit LCD_D5 at RC5_bit;
sbit LCD_D6 at RC6_bit;
sbit LCD_D7 at RC7_bit;
sbit LCD_RS_Direction at TRISCO_bit;
sbit LCD_EN_Direction at TRISC1_bit;
sbit LCD_D4_Direction at TRISC4_bit;
sbit LCD_D5_Direction at TRISC5_bit;
sbit LCD_D6_Direction at TRISC6_bit;
sbit LCD_D7_Direction at TRISC7_bit;
int waver_000=0;
char pulseCount[15];
void main() {
TRISD.FO = 1;
Lcd_Init();
Lcd_Cmd(_LCD_CURSO_OFF);
Lcd_Out(1,1,"Pulse count");
delay_ms(2000);
Lcd_Out(1,1,"Pulse Counter");
while(1) {
if(PORTD.RD7==1) {
while(PORTD.RD7==1)
waver_000++;
}
if(RD0_bit==1) {
waver_000 = 0;
}
IntToStr(waver_000, pulseCount);
Lcd_Out(2,1,pulseCount);
}
}
And the following scheme in Proteus:
The Lcd powers up but nothing is shown on it.
Any ideas what I have done wrong?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

