Kras (09.04.2008 12:59, просмотров: 5451)
Помогите победить индикатор TIC149 (на контроллере PCF8535). Инициируется успешно, неправильно выводит очередность строк. Шлю строки по очереди, а на индикаторе вижу
Line 1
Line 0
Line 3
Line 2
Line 5
Line 4
Line 7
Line 6
инициирую вот так
tic149CmdBuff[0] = TIC149_ADR;
tic149CmdBuff[1] = TIC149_CMD;
tic149CmdBuff[2] = SET_DEF_H;
tic149CmdBuff[3] = FUNC_SET(0);
tic149CmdBuff[4] = SET_H((1<<2) | (1<<1));
tic149CmdBuff[5] = DISP_CFG(D);
tic149CmdBuff[6] = EXT_DISP_CFG(0); // MX | MY
tic149CmdBuff[7] = SET_BIAS(5);
tic149CmdBuff[8] = DISP_SIZE(0); //IB
tic149CmdBuff[9] = MUX_RATE(4);
tic149CmdBuff[10] = SET_DEF_H;
tic149CmdBuff[11] = SET_H((1<<2) | (1<<0));
tic149CmdBuff[12] = HV_CTRL(HVE);// PRS |
tic149CmdBuff[13] = HV_STAG(0);
tic149CmdBuff[14] = TEMP_COEF(2);
tic149CmdBuff[15] = VLCD_CTRL(24);
tic149CmdBuff[16] = SET_DEF_H;
tic149CmdBuff[17] = STATE_CTRL(0); //DM
tic149CmdBuff[18] = SET_H((1<<1) | (1<<0));
tic149CmdBuff[19] = COG_TCP(0); // BRS | TRS
i2cMasterStart(tic149CmdBuff, 20, 0);
проверил на двух индикаторах, результат одинаковый.