IP Library Granted Patent US 8,656,063
Granted Patent B1
US 8,656,063 · App. 13/672,720 · Granted Feb 18, 2014

Method of detecting addressing mode and electronic system thereof

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,656,063
App. No.
13/672,720
Granted
Feb 18, 2014
Kind
B1
Abstract

The present invention discloses a method for determining an addressing mode of a storage device. The method comprises issuing a first address and a second address in a first addressing mode; converting the first address and the second address as a first device address and a second device address, respectively, according to the addressing mode of the storage device; acquiring a first data according to the first device address; acquiring a second data according to the second device address; and determining whether the addressing mode of the storage device is the first addressing mode or a second addressing mode according to whether the first data and the second data are the same; wherein the first addressing mode comprises more bytes than the second addressing mode.

Claims (39)

1. A method for determining an addressing mode of a storage device, comprising:

issuing a first address and a second address in a first addressing mode;

converting the first address and the second address as a first device address and a second device address, respectively, according to the addressing mode of the storage device;

acquiring a first data according to the first device address;

acquiring a second data according to the second device address; and

determining whether the addressing mode of the storage device is the first addressing mode or a second addressing mode according to whether the first data and the second data are the same;

wherein the first addressing mode comprises more bytes than the second addressing mode.

2. The addressing mode detecting method of claim 1 , wherein the storage device is a serial peripheral interface flash memory.

3. The addressing mode detecting method of claim 1 , wherein the second address equals the first address plus a least significant bit with the first addressing mode.

4. The addressing mode detecting method of claim 1 , wherein the step of acquiring a first data according to the first device address comprises:

acquiring the first data by reading a first plurality of contiguous bytes starting from the first device address of the storage device.

5. The addressing mode detecting method of claim 4 , wherein the step of acquiring a second data according to the second device address comprises:

acquiring the second data by reading a second plurality of contiguous bytes starting from the second device address of the storage device;

wherein a number of bytes of the first plurality of contiguous bytes is the same with that of the second plurality of contiguous bytes.

6. The addressing mode detecting method of claim 4 , wherein the step of acquiring a first data according to the first device address comprises:

skipping the first device address by a specific amount of bytes until bytes of a first plurality of contiguous bytes are not all the same as a first detection address; and

acquiring the first data by reading the first plurality of contiguous bytes starting at the first detection address.

7. The addressing mode detecting method of claim 6 , wherein the step of acquiring a second data according to the second device address comprises:

skipping the second device address by the specific amount of bytes as a second detection address; and

acquiring the second data by reading a second plurality of contiguous bytes starting at the second detection address.

8. The addressing mode detecting method of claim 1 , wherein the addressing mode of the storage device is the first addressing mode when the first data does not equal the second data.

9. The addressing mode detecting method of claim 1 , wherein the addressing mode of the storage device is the first addressing mode when a sequence of the first data does not equal a sequence of the second data.

10. The addressing mode detecting method of claim 1 , wherein the addressing mode of the storage device is the second addressing mode when the first data equals the second data.

11. An electronic system, comprising:

a processing module, for outputting an addressing signal;

a storage device for storing execution data; and

an accessing module, for accessing execution data stored in the storage device according to the addressing signal, comprising:

a detection unit, coupled to the processing module for outputting a plurality of commands comprising a first address and a second address to acquire a first data and a second data, detecting an addressing mode of the storage device by comparing a first data and a second data acquired from the storage device, outputting a control signal according to whether the addressing mode of the storage device is detected and outputting a mode control signal according to the detected addressing mode

a multiplexer, coupled to the processing module and the detection unit, for switching connections of the detection unit, the processing module and a data terminal according to the control signal; and

a storage device controller, coupled to the multiplexer and the storage device, for exchanging signals between the data terminal and the storage device according to the mode control signal.

12. The electronic system of claim 11 , wherein the storage device is a serial peripheral interface flash memory.

13. The electronic system of claim 11 , wherein the detection unit detects the addressing mode of the storage device when the electronic system boots up and the addressing mode of the storage device is not determined by the detection unit.

14. The electronic system of claim 11 , wherein the detection unit detects the addressing mode of the storage device when the detection unit receives the addressing signal from the processing module and the addressing mode is not determined by the detection unit.

15. The electronic system of claim 11 , wherein the second address equals the first address plus a least significant bit.

16. The electronic system of claim 11 , wherein when the detection unit determines the addressing mode, the detection unit outputs the control signal for instructing the multiplexer to connect the detection unit and the storage device controller for transmitting the plurality of commands to the storage device controller and outputs the mode control signal for instructing the storage device to transmit the plurality of commands in a specific addressing mode for acquiring the first data and the second data.

17. The electronic system of claim 11 , wherein when the first data does not equal the second data, the detection unit determines the addressing mode of the storage device is the first addressing mode.

18. The electronic system of claim 11 , wherein when a sequence of the first data does not equal a sequence of the second data, the detection unit determines the addressing mode of the storage device is the first addressing mode.

19. The electronic system of claim 11 , wherein when the first data equals the second data, the detection unit determines the addressing mode of the storage device is the second addressing mode.

20. The electronic system of claim 11 , wherein when the addressing mode of the storage device is determined by the detection unit, the detection unit accordingly outputs the control signal for instructing the multiplexer to connect the processing module and the storage device controller and outputs the mode control signal for instructing the storage device controller exchanging signals between the processing module and the storage device according to the detected addressing mode.

Assignments (2)
MERGER Recorded Jul 10, 2014
From: RALINK TECHNOLOGY CORP.
To: MEDIATEK INC.
Reel/Frame 033291/0551 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 9, 2012
From: LIN, CHAN-SHIH
To: RALINK TECHNOLOGY CORP.
Reel/Frame 029267/0908 →