2-wire interface and reset method thereof
AssigneePixart Imaging Inc.
InventorYen-Hsiang Chew
Life of this patent
Estimating the term…
Abstract
There is provided an operation of a 2-wire interface including: performing, by a master device, at least one transaction with a slave device to compare a calculated expected value and a return value of a register to confirm whether an out-of-sync occurs, and resetting a state machine of the slave device to a reset_done state and receiving, by the maser device, an acknowledge byte from the slave device to recover a synchronization between the master device and the slave device when the out-of-sync occurs.
Claims15
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.
A 2-wire interface, comprising:
- a master device, comprising an SDO counter configured to count clocks of a clock signal;
- and
- a slave device, configured to perform transactions with the master device via a clock line, which is configured to transfer the clock signal, and an SDO line, wherein
- the master device is configured to identify an out-of-sync with the slave device, and change an SDO port thereof from output to input when identifying the out-of-sync and toggle the clocks to the slave device respectively within a first interval, a second interval and a third interval till receiving an acknowledge byte, and
- the slave device is configured to change an SDO port thereof to input when a current transaction is accomplished to pull up a voltage on the SDO line to logic high till reset is over, and send the acknowledge byte within the third interval.
Dependencies are inferred from the claim text.