Hello, I have a sample program that is written in micro-c and shows examples of how to write data to an LCD connected to the 8051 micro-controller. Could someone please explain what the following function is doing?
void WriteCommon( unsigned char value ) { clrbit(READ); value = value & 0x0F; value = value 4) & 7 ) ); delay(1); WriteCtrl(pos & 0x0F); delay(1); } void CursorHome() { /* Cursor home */ WriteCtrl(0); delay(1); WriteCtrl(2); delay(1); } void WriteLCD( unsigned char* message ) { unsigned char i; for( i=0; i> 4 ); WriteCommon( value ); } void WriteCommon( unsigned char value ) { clrbit(READ); value = value & 0x0F; value = value