Method and apparatus for dynamically changing bus size using address register means and comparator means as bus size detectors
First Claim
Patent Images
1. A microcomputer comprising:
- an address bus;
a data bus including a plurality of data lines;
a data input and output circuit coupled to said data bus;
external data terminals coupled to said data input and output circuit, wherein the external data terminals and said plurality of data lines are equal in number;
a processor unit coupled to said address bus and to said data bus, said processor unit accessing an address in a predetermined address space by using said address bus;
register means for defining a specific address area within said predetermined address space designating an address data of a plurality of devices each having an equal bus size; and
a comparator coupled to said address bus and to said register means for comparing said address data with an address signal outputted from the processor unit to said address bus and for providing to said processor unit a comparison result indicating whether an address designated by said address signal is in said specific address area,wherein the register means and the comparator are disposed within the microcomputer which includes means for receiving address data through the data lines from the data input and output circuit, andwherein said processor unit controls said data input and output circuit in response to the comparison result indicating that the address designated by said address signal is in said specific address area so that the plurality of data lines of said data bus are coupled to a first set of said external data terminals, thereby accessing the address in said specific address area by a first data bus size, andwherein said processor unit controls said data input and output circuit in response to the comparison result indicating that the address designated by said address signal is not in said specific address area so that the plurality of data lines of said data bus are coupled to a second set of said external data terminals, respectively, thereby accessing the address which is not in said specific address area by a second data bus size different from the first data bus size.
1 Assignment
0 Petitions
Accused Products
Abstract
A microcomputer includes one or more registers therein. These registers are provided for defining a specific address area. When a processor unit in the microcomputer accesses an address in the specific address area, it acknowledges the access to change the bus width and/or bus cycle of the microcomputer dynamically.
37 Citations
25 Claims
-
1. A microcomputer comprising:
-
an address bus; a data bus including a plurality of data lines; a data input and output circuit coupled to said data bus; external data terminals coupled to said data input and output circuit, wherein the external data terminals and said plurality of data lines are equal in number; a processor unit coupled to said address bus and to said data bus, said processor unit accessing an address in a predetermined address space by using said address bus; register means for defining a specific address area within said predetermined address space designating an address data of a plurality of devices each having an equal bus size; and a comparator coupled to said address bus and to said register means for comparing said address data with an address signal outputted from the processor unit to said address bus and for providing to said processor unit a comparison result indicating whether an address designated by said address signal is in said specific address area, wherein the register means and the comparator are disposed within the microcomputer which includes means for receiving address data through the data lines from the data input and output circuit, and wherein said processor unit controls said data input and output circuit in response to the comparison result indicating that the address designated by said address signal is in said specific address area so that the plurality of data lines of said data bus are coupled to a first set of said external data terminals, thereby accessing the address in said specific address area by a first data bus size, and wherein said processor unit controls said data input and output circuit in response to the comparison result indicating that the address designated by said address signal is not in said specific address area so that the plurality of data lines of said data bus are coupled to a second set of said external data terminals, respectively, thereby accessing the address which is not in said specific address area by a second data bus size different from the first data bus size. - View Dependent Claims (2, 3, 4)
-
-
5. In a microcomputer system including:
-
a microcomputer having an internal address bus, and internal data bus, a plurality of external data terminals and a data input and output circuit coupled between said internal data bus and said external data terminals, an external address bus coupled to said internal address bus of said microcomputer, an external data bus coupled to said external data terminals of said microcomputer, a first external device coupled to said external address bus and having a plurality of external data terminals coupled to said external data bus, wherein a number of said external data terminals of said first external device is less in number than said plurality of external data terminals of said microcomputer, and wherein said first external device has a first predetermined address area assigned thereto, a second external device coupled to said external address bus and having a plurality of external data terminals coupled to said external data bus, wherein said external data terminals of said second external device are identical in number to said plurality of external data terminals of said microcomputer, and wherein said second external device has a second predetermined address area assigned thereto, a method of coupling said internal data bus of said microcomputer to said external data bus to transfer data between said microcomputer and said first and second external devices comprising the steps of; storing address data defining said first predetermined address area in a register included in said microcomputer by a processor unit in said microcomputer; comparing an address signal outputted from said processor unit in said microcomputer to said internal address bus with said address data stored in said register by a comparator in said microcomputer; if a result of said comparing step indicates that an address indicated by said address signal is in said first predetermined address area, controlling the data input and output circuit by said processor unit in response to a result of the comparing step so that first and second parts of said internal data bus are coupled to said external data terminals of said first external device via said external data bus in time division; and
,if a result of the comparing step indicates that an address indicated by said address signal is in said second predetermined address area, controlling the data input and output circuit by said processor unit in response to a result of the comparing step so that said internal data bus is coupled to said external data terminals of said second external device via said external data bus.
-
-
6. A single chip microcomputer comprising:
-
an address bus including a plurality of address lines; external address terminals coupled to the address bus; a data bus including first data lines and second data lines; first and second external data terminals, a number of which is identical to that of the first and second data lines; a data multiplexer circuit coupled between the data bus and the first and second external data terminals; a processor unit coupled to the address bus and to the data bus and for providing an address signal to the address bus to access an address designated by the address signal, wherein the processor unit can access an address in a predetermined address space which is defined by the address bus; first register means coupled to the address bus and the data bus and for storing first address data defining a first address area in the predetermined address space, wherein the first address data is written by the processor unit; and first comparator means coupled to the address bus and an output of the first register means and for providing a first output signal when the address designated by the address signal is in the first address area, and providing a second output signal when the address designated by the address signal is not in the first address area, wherein the processor unit is responsive to the first output signal and controls the data multiplexer circuit to couple the first and second data lines to the first external data terminals in a first clock cycle so that the single-chip microcomputer has a first data bus size, and wherein the processor unit is responsive to the second output signal and controls the data multiplexer to couple the first and second data lines to the first and second external data terminals, respectively, in a second clock cycle so that the single-chip microcomputer has a second data bus size. - View Dependent Claims (7, 8, 9, 10, 11, 12)
-
-
13. A data processor system comprising:
-
an external address bus; an external data bus having first and second parts; a first external device coupled to the external address bus and to the first part of the external data bus, wherein the first external device has a first predetermined address area assigned thereto; a second external device coupled to said external address bus and to the first and second parts of the external data bus, wherein the second external device has a second predetermined address area assigned thereto; and
,a microcomputer comprising; address terminals coupled to the external address bus, an internal address bus coupled to the address terminals, first and second data terminals coupled to the first and second parts of the external data bus, an internal data bus including first data lines and second data lines, a data multiplexer circuit coupled between the internal data bus and the first and second data terminals, a processor unit coupled to the internal address bus and to the internal data bus and for providing an address signal to the internal address bus to access an address designation by the address signal, wherein the processor can access an address in a predetermined address space which is defined by the internal address bus, first register means coupled to the internal address bus and the internal data bus and for storing first address data defining the first predetermined address area in the predetermined address space, wherein the first address data is written by the processor unit, and first comparator means coupled to the internal address bus and an output of the first register means and for providing a first output signal when the address designated by the address signal is in the first predetermined address area, and providing a second output signal when the address designated by the address signal is not in the first predetermined address area, wherein the processor unit is responsive to the first output signal and controls the data multiplexer circuit so that the microcomputer has a first data bus size where the first and second data lines are coupled to the first part of the external data bus in time division, and wherein the processor unit is responsive to the second output signal and controls the data multiplexer circuit so that the microcomputer has a second data bus size where the first and second data lines are coupled to the first and second parts of the external data bus, respectively. - View Dependent Claims (14, 15, 16, 17, 18)
-
-
19. A processor on a semiconductor substrate comprising:
-
first and second data terminals; a data bus including first and second data lines, a number of the first and second data lines being identical to that of the first and second data terminals; address terminals; an address bus coupled to the address terminals; a bus master coupled to the data bus and to the address bus and for providing an address signal to the address bus, thereby accessing an address designated by the address signal; address detecting means disposed within the processor including; first register means for storing first address data defining a first address area; and first comparator means coupled to an output of the first address means and to the address bus and for providing a first output signal when the address is in the first address area, and providing a second output signal when the address is not in the first address area; and data multiplexer means coupled between the data bus and the first and second data terminals, for coupling the first and second data lines to the first data terminals in a first clock cycle in response to the first output signal, and coupling the first and second data lines to the first and second data terminals, respectively, in a second clock cycle in response to the second output signal. - View Dependent Claims (20, 21, 22, 23, 24, 25)
-
Specification