Open AhmedHamed00 opened 1 year ago
/*
/FUNCTIONS DEFINITIONS/
/*
Parameters: N/A */ void LCD_Init(void) {
SYSCTL_RCGCGPIO_R |=0x03; //passing the clock on the used ports (A,B) /*
}
/*
@Command: this is the commmand code to be sent */ void LCD_SendCommand(uint8 Command) { GPIO_PORTA_DATA_R= 0; //RS=RW=E=0 uint8 left_Half_Comm; left_Half_Comm= (Command & 0xF0); //RS,RW,E uint8 right_Half_Comm; right_Half_Comm= (Command & 0x0F); //Data pins
GPIO_PORTA_DATA_R= left_Half_Comm; //command parameter divided GPIO_PORTB_DATA_R= right_Half_Comm; //command parameter divided
GPIO_PORTA_DATA_R |=0x80; //Enable on GPIO_PORTA_DATA_R &=0x7F; //Enable off
}
/*
}
/*
}
/*
}
/*
}
/*
}
modify the LCD driver files and add the definition of the following functions: