İ can drive my glcd without any problem with fast_glcd function. But when try to drive it without fast_glcd function, characters in glcd are engaging and it doesn't display properly.
Does anyone have an idea?
tigiyko
Joined: 05 Dec 2011 Posts: 3
Posted: Mon Dec 05, 2011 5:04 am
i found the solution. According to brand of glcd, time of responses change. For example the glcd which i'm using has 25ns rising and fall time. İf you dont add delay after enable and cs signal, glcd's controller couldn't catch mcu's speed. İ added delays which marked with *** symbols.
output_low(GLCD_RW); // Set for writing
if(side) // Choose which side to write to
output_high(GLCD_CS2);
else
output_high(GLCD_CS1);
delay_us(1);
output_d(data); // Put the data on the port
delay_us(1);
output_high(GLCD_E); // Pulse the enable pin
delay_us(1);
output_low(GLCD_E);
delay_cycles(5); // ***i added this delay
output_low(GLCD_CS1);// Reset the chip select lines
delay_cycles(5); //*** i added this delay
output_low(GLCD_CS2);
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum