FSL_TICS_Rita 发表于 2014-8-18 18:47 
楼主你好,很抱歉才给您回复,我们官网上使用的触摸屏没有使用RTS,这里建议你看一下你手上屏的RTS信息,看 ...
多谢回复, 我现在用的TP有两个IIC从地址,在上电的的时候,会判断从地址,然后设置INT引脚,但是RST引脚不会更改。
- void gtp_reset_guitar(struct i2c_client *client, s32 ms)
- {
- #if GTP_COMPATIBLE_MODE
- struct goodix_ts_data *ts = i2c_get_clientdata(client);
- #endif
- GTP_DEBUG_FUNC();
- GTP_INFO("Guitar reset");
- GTP_GPIO_OUTPUT(GTP_RST_PORT, 0); // begin select I2C slave addr
- msleep(ms); // T2: > 10ms
- // HIGH: 0x28/0x29, LOW: 0xBA/0xBB
- GTP_GPIO_OUTPUT(GTP_INT_PORT, client->addr == 0x14);
- msleep(2); // T3: > 100us
- GTP_GPIO_OUTPUT(GTP_RST_PORT, 1);
- msleep(6); // T4: > 5ms
- GTP_GPIO_AS_INPUT(GTP_RST_PORT); // end select I2C slave addr
- #if GTP_COMPATIBLE_MODE
- if (CHIP_TYPE_GT9F == ts->chip_type)
- {
- return;
- }
- #endif
- gtp_int_sync(50);
- #if GTP_ESD_PROTECT
- gtp_init_ext_watchdog(client);
- #endif
- }
需要10K的上拉电阻,看来我只能通过GPIO来输出高电平了。
|