Navigation device, navigation system including the same and operating method thereof
There is provided an operating method of a navigation system. The navigation system includes a master device and a slave device connected via a clock line and an SDIO/MOTION line. The operating method includes: setting a data direction of an SDIO/MOTION port of the slave device as an output state upon not receiving a clock signal from the master device via the clock line to be able to output a motion interrupt; and changing the data direction of the SDIO/MOTION port of the slave device to an input state upon receiving the clock signal from the master device via the clock line to be able to receive an address byte; and keeping the data direction at the output state after a data transaction completed.
1 . A navigation system, comprising:
a master device, configured to output a clock signal and an address byte; and
a slave device, communicating with the master device using an interface having only two lines to perform data transactions, the slave device configured to
set a data direction of an I/O port thereof as an output state to output a motion interrupt, which is configured to inform the master device that the slave device leaves a low power mode, upon not receiving the clock signal via a clock line of the interface, and
change the data direction of the I/O port to an input state to receive the address byte from the master device upon receiving the clock signal via the clock line of the interface,
wherein the clock signal is configured as a mode selector of
a data communication mode, which is configured to perform the data transactions, and
a data non-communication mode, which is configured to transmit the motion interrupt from the slave device to the master device.
2 . The navigation system as claimed in claim 1 , wherein the slave device comprises a counter and when the address byte indicates a read operation, the slave device is further configured to
change the data direction of the I/O port to the output state to output a data byte after the counter counts to 8, and
keep the data direction of the I/O port at the output state to output the motion interrupt after the counter counts to 16.
3 . The navigation system as claimed in claim 1 , wherein the slave device comprises a counter and when the address byte indicates a write operation, the slave device is further configured to
change the data direction of the I/O port to the output state to output the motion interrupt after the counter counts to 16.
4 . The navigation system as claimed in claim 1 , wherein the data direction of the I/O port of the slave device is preset as the output state.
5 . The navigation system as claimed in claim 1 , wherein the slave device is configured to identify the clock signal being received during the slave device not communicating with the master device and after identifying that the clock signal changes from a high level to a low level.
6 . The navigation system as claimed in claim 1 , wherein the interface is a serial peripheral interface.
7 . The navigation system as claimed in claim 2 , wherein upon the read operation containing burst read data, the slave device is further configured to
keep the data direction of the I/O port to the output state to output the motion interrupt after the counter counts to 16 or to more than 16, and
the slave device is a mouse device.
8 . A navigation device, configured to communicate with a master device via an interface having only two lines to perform data transactions, the navigation device comprising:
a clock port, configured to receive a clock signal via a clock line of the interface; and
an I/O port, wherein
a data direction of the I/O port is set as an output state to output a motion interrupt, which is configured to inform the master device that the navigation device leaves a low power mode, upon the clock port not receiving the clock signal via the clock line of the interface, and
the data direction of the I/O port is changed to an input state to receive an address byte from the master device upon the clock port receiving the clock signal via the clock line of the interface,
wherein the clock signal is configured as a mode selector of
a data communication mode, which is configured to perform the data transactions, and
a data non-communication mode, which is configured to transmit the motion interrupt from the navigation device to the master device.
9 . The navigation device as claimed in claim 8 , further comprising a counter, wherein when the address byte indicates a read operation, the navigation device is further configured to
change the data direction of the I/O port to the output state to output a data byte after the counter counts to 8, and
keep the data direction of the I/O port at the output state to output the motion interrupt after the counter counts to 16.
10 . The navigation device as claimed in claim 8 , further comprising a counter, wherein when the address byte indicates a write operation, the navigation device is further configured to
change the data direction of the I/O port to the output state to output the motion interrupt after the counter counts to 16.
11 . The navigation device as claimed in claim 8 , wherein the data direction of the I/O port of the navigation device is preset as the output state.
12 . The navigation device as claimed in claim 8 , wherein the navigation device is configured to identify the clock signal being received during the navigation device not communicating with the master device and after identifying that the clock signal changes from a high level to a low level.
13 . The navigation device as claimed in claim 8 , wherein the interface is a serial peripheral interface.
14 . The navigation device as claimed in claim 9 , wherein upon the read operation containing burst read data, the navigation device is further configured to
keep the data direction of the I/O port to the output state to output the motion interrupt after the counter counts to 16 or to more than 16.
15 . An operating method of a navigation system, the navigation system comprising a master device and a slave device performing a communication therebetween via an interface having only two lines, one of which is a clock line for sending a clock signal, to perform data transactions, the operating method comprising:
setting a data direction of an I/O port of the slave device as an output state to output a motion interrupt, which is configured to inform the master device that the slave device leaves a low power mode, via the interface upon the communication not occurring; and
setting the data direction of the I/O port of the slave device to an input state to receive an address byte from the master device via the interface upon the communication occurring,
wherein the clock signal is configured as a mode selector of
a data communication mode, which is configured to perform the data transactions, and
a data non-communication mode, which is configured to transmit the motion interrupt from the slave device to the master device.
16 . The operating method as claimed in claim 15 , wherein when the address byte indicates a read operation, the operating method further comprises:
changing the data direction of the I/O port of the slave device to the output state to output a data byte after a counter of the slave device counts to 8, and
keeping the data direction of the I/O port of the slave device at the output state to output the motion interrupt after the counter of the slave device counts to 16.
17 . The operating method as claimed in claim 15 , wherein when the address byte indicates a write operation, the operating method further comprises:
changing the data direction of the I/O port of the slave device to the output state to output the motion interrupt after a counter of the slave device counts to 16.
18 . The operating method as claimed in claim 15 , wherein the data direction of the I/O port of the slave device is preset as the output state.
19 . The operating method as claimed in claim 15 , wherein the interface is a serial peripheral interface.
20 . The operating method as claimed in claim 15 , wherein
the motion interrupt does not contain motion data detected by the slave device.