CPC H04J 3/065 (2013.01) [G02B 27/017 (2013.01); G06F 1/10 (2013.01); G06F 1/12 (2013.01); G06F 13/24 (2013.01); G06F 13/4068 (2013.01); G02B 2027/0178 (2013.01); G06F 2213/0026 (2013.01); G06F 2213/0038 (2013.01)] | 20 Claims |
1. A method of synchronizing first and second systems-on-chip (SoCs) of an electronic eyewear device, the first and second SoCs having independent time bases, the method comprising:
(a) the first SoC asserting a shared general purpose input/output (GPIO) connection to the second SoC, assertion of the shared GPIO connection triggering an interrupt request (IRQ) at the second SoC;
(b) the first SoC recording a first timestamp for a time of assertion of the shared GPIO connection;
(c) the second SoC recording a second timestamp of receipt of the IRQ on the shared GPIO connection;
(d) the first SoC sending a message including the first timestamp to the second SoC over an inter-SoC interface;
(e) the second SoC calculating a clock offset between the first SoC and the second SoC as a difference between the first timestamp and the second timestamp; and
(f) the second SoC calculating a clock of the first SoC as a sum of the local timestamp and the calculated clock offset.
|