A method for operating an electronic device includes a touchscreen controller determining based on a frequency of a vertical synchronization signal (Vsync), whether a first display frame includes an idle time, the idle time being a duration of time remaining in the first display frame after an image displayed on a display of the electronic device is updated during the first display frame. The method further includes in response to determining that the first display frame includes the idle time, the touchscreen controller transmitting an uplink signal in the first display frame, the uplink signal being transmitted during the idle time of the first display frame.