US 12,216,609 B2
2-wire interface and reset method thereof
Yen-Hsiang Chew, Penang (MY)
Assigned to PIXART IMAGING INC., Hsin-Chu County (TW)
Filed by PIXART IMAGING INC., Hsin-Chu County (TW)
Filed on Nov. 3, 2022, as Appl. No. 17/979,762.
Prior Publication US 2024/0152482 A1, May 9, 2024
Int. Cl. G06F 13/42 (2006.01)
CPC G06F 13/4291 (2013.01) [G06F 13/4221 (2013.01)] 15 Claims
OG exemplary drawing
 
1. A reset method of a 2-wire interface, the 2-wire interface comprising a master device and a slave device coupled by a clock line and a serial data out (SDO) line, the reset method comprising:
changing an SDO port of the master device from output to input when the master device identifies an out-of-sync occurring at a first time, and resetting an SDO counter of the master device;
changing an SDO port of the slave device to input when the slave device accomplishes a current transaction at a second time to pull up a voltage on the SDO line to logic high;
invoking reset of the slave device after toggling 16 clocks behind the second time and transferring an acknowledge byte to the master device in a reset_done state of the slave device; and
identifying, by the master device, whether the acknowledge byte is correct,
wherein the master device continuously toggles clocks to the slave device after the first time till the acknowledge byte is over.