/* LCD初始化 */
void LCD_CSH( void )
{
TRISD = 0x00; /* RD方向输出 */
__delay_ms( 20 );
LCD_WRITE_4( 0b0011, COM );
__delay_ms( 5 );
LCD_WRITE_4( 0b0011, COM );
__delay_ms( 10 );
LCD_WRITE_4( 0b0011, COM );
__delay_ms( 10 );
LCD_WRITE_4( 0b0010, COM );
LCD_BUSY();
LCD_WRITE( 0b00101000, COM );
LCD_WRITE( 0b00001100, COM );
LCD_WRITE( 0b00000001, COM );
__delay_ms( 2 );
LCD_WRITE( 0b00000110, COM );
}
|