DBI屏8位MCU接口,8位数据口无波形
static void LCM_get_params(LCM_PARAMS *params)
{
static void lcm_get_params(LCM_PARAMS *params)
{
memset(params, 0, sizeof(LCM_PARAMS));
params->type = LCM_TYPE_DBI;
params->ctrl = LCM_CTRL_PARALLEL_DBI;
params->width = FRAME_WIDTH;
params->height = FRAME_HEIGHT;
//params->physical_width = PHYSICAL_WIDTH;
//params->physical_height = PHYSICAL_HEIGHT;
params->io_select_mode= 1;
params->dbi.port = 0;
//params->dbi.clock_freq= LCM_DBI_CLOCK_FREQ_104M;
params->dbi.data_width = LCM_DBI_DATA_WIDTH_8BITS;
params->dbi.data_format.color_order = LCM_COLOR_ORDER_RGB;
params->dbi.data_format.trans_seq = LCM_DBI_TRANS_SEQ_MSB_FIRST;
params->dbi.data_format.padding = LCM_DBI_PADDING_ON_LSB;
params->dbi.data_format.format = LCM_DBI_FORMAT_RGB565;
params->dbi.data_format.width = LCM_DBI_DATA_WIDTH_8BITS;
params->dbi.cpu_write_bits = LCM_DBI_CPU_WRITE_8_BITS;
params->dbi.io_driving_current = LCM_DRIVING_CURRENT_8MA;
params->dbi.parallel.write_setup = 1;
params->dbi.parallel.write_hold = 10;
params->dbi.parallel.write_wait = 15;
params->dbi.parallel.read_setup = 1;
params->dbi.parallel.read_hold = 10;
params->dbi.parallel.read_latency = 45;
params->dbi.parallel.wait_period = 1;
params->dbi.te_mode = LCM_DBI_TE_MODE_DISABLED;
//params->dbi.te_edge_polarity = LCM_POLARITY_RISING;
}
已经点亮。OK
说一下改了哪里才点亮的啊
我们第一次没经验也是,走了很多弯路。没波形是因为,dws配置错了。后来是一个参数配置错了 params->dbi.data_format.format = LCM_DBI_FORMAT_RGB66;
你们DWS怎么配置的?能否分享下,谢谢。