主要是刷屏都不干净!
时序:
void write_com_Lcd(uchar8 byte, uchar8 chip)
{
TS_EN = 0;
TS_RW = 0;
/* 选中那一块 */
if(chip == LEFT)
{
CS_A = 0;
CS_B = 1;
CS_C = 1;
}else if(chip == MID)
{
CS_A = 1;
CS_B = 0;
CS_C = 1;
}else
{
CS_A = 1;
CS_B = 1;
CS_C = 0;
}
TS_DI = 0;
TS_EN = 1;
TS_DATA = byte;
_nop_();
_nop_();
_nop_();
TS_EN = 0;
TS_RW = 1;
TS_EN = 1;
CS_A = 1;
CS_B = 1;
CS_C = 1;
} |