Sharing of the indirect addressing of the registers of a...

Electrical computers and digital data processing systems: input/ – Intrasystem connection – Bus access regulation

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C710S120000, C712S228000, C703S024000, C703S025000

Reexamination Certificate

active

06223241

ABSTRACT:

FIELD OF THE INVENTION
The present invention is directed to the area of microcontrollers, and, more particularly, to a microcontroller including a battery of hidden registers.
BACKGROUND OF THE INVENTION
A microcontroller is a circuit comprising essentially, on one and the same integrated circuit, a microprocessor also called a central processing unit, and a program memory. This program memory is specific to each microprocessor. It contains a set of instructions that must be adapted to a specified program, that is, an application that the microcontroller must execute. These sets of instructions may be efficient in varying degrees. Consequently, the programs are also important in varying degrees depending on the application for which they are designed.
Furthermore, these applications are numerous and varied. They are found in compatible type microcomputers, for example, for the control of hard disks. They may also be found in applications related to the control of any device, such as, for example, for flasher lights in the field of automobiles.
During the phase for the setting of the control program, the microcontroller is linked to a host circuit. This connection falls within the framework of the monitoring of the functioning of the microcontroller. In this context, it should be possible to read the electrical states of the microcontroller at certain steps and especially those steps where an operating defect is noted. It should also be possible to set the operation of the microcontroller and, in this case, the host circuit will write states in certain registers of the microcontroller.
These read and write operations between the registers of the microcontroller and the host circuit are achieved by means of an interface. More generally, this interface is used to exchange information elements with the outside world. These information elements are essentially data elements to be received and commands to be sent corresponding to the future use of the microcontroller.
To this end, the interface comprises a control bus and, more generally, two data and address exchange registers. Indeed, the number of exchange registers is generally small because, for reasons of cost, it is accepted that the structure of exchange with the external world will be reduced to the strict minimum. This makes the use of the microcontroller more tedious, especially during the stage for the setting of the control program.
The places in the memory of the microcontroller where it is necessary to read or write are varied. The term “memory” of the microcontroller may designate the memory proper, but may also designate operating registers of the microcontroller. Thus, this memory may be a program memory, namely the place in which the instructions to be executed in the microprocessor are stored. It may also be a data memory in which there are stored measured data elements of the controlled parameters of the microcontroller.
Finally, this memory may represent a set of parameter-setting registers or registers for the operation of the microcontroller, in particular, a batch of registers for setting the parameters of its peripherals. These registers are called special function registers (SFR). They are peripheral control registers that are indispensable for setting the parameters of these peripherals. The interface itself, owing to the different protocols that it is liable to accept, must have its parameters set by states stored in these registers. Other peripherals, like internal counters or clock frequency registers, are controlled by such registers.
In the context of emulation, a number of registers are used to program the different parts of a peripheral dedicated to emulation, known as an “on-chip emulator”. This peripheral will hereinafter be called an OCE. To control the working of the microcontroller, a host circuit external to the microcontroller must be capable of accessing these registers, thereby enabling the programming of the different parts of the OCE. The central processing unit of the microcontroller, for its part, must also be capable of accessing these registers. It is therefore necessary that these registers should have an address in the memory space of the microprocessor.
The addressing space of the microcontroller is represented by the length of an address word that can be conveyed on the address bus of the microcontroller. This addressing space, according to its definition, is limited. However, in the framework of emulation, the number of operations to be controlled is becoming ever greater. These controls are obtained by means of registers. In these registers, certain electrical states of the microcontroller are copied, or their contents are compared with other electrical states of the microcontroller. Consequently, the number of monitoring registers needed, especially during emulation, becomes great. Some of these registers, and even many of them, therefore, cannot be addressed directly. Indeed, it is not possible to associate, with each of them, an address corresponding to an SFR, namely a peripheral control register, that would enable these supplementary registers to be accessed directly.
SUMMARY OF THE INVENTION
In view of the foregoing background, it is an object of the invention to resolve this problem of access to these hidden registers. In the invention, an indirect addressing is provided. An address bus, a data bus, and a control bus coming either from the host circuit or from the central processing unit of the microprocessor, switches over to the supplementary emulation monitoring registers or towards the normal memory, as the case may be. The invention includes the sharing of the indirect addressing mechanism developed for access to the host circuit with the central processing unit of the microcontroller.
To do this, the invention allocates two SFR addresses to the registers that can be accessed by the host circuit. These two SFRs can also be accessed by the central processing unit. A priority between these two possible accesses is envisaged. One of the two SFRs allocated will contain the address of the supplementary register to be accessed. The other allocated SFR will contain the data element read in one of the additional registers if the system is in the read mode. If the system is in the write mode, it will contain the data element to be written in the supplementary register, and whose address will be read in the first reserved SFR.
This battery of supplementary registers for use in the field of emulation thus makes it possible to release SFRs that were hitherto occupied. Thus, certain SFRs are now vacant. The invention proposes the copying into these vacant registers, of the contents of those supplementary registers dedicated to emulation that are most often used by the host circuit or by the central processing unit of the microcontroller.
An object of the invention therefore is a microcontroller comprising a central processing unit, and initial peripheral control registers that are limited in number owing to their addressing means. The microcontroller comprises hidden supplementary registers being accessible by means of a first peripheral control register and a second peripheral control register. The first access register is for an indirect addressing of the address of any one hidden supplementary register. The second access register is for an indirect addressing of a data element to be recorded or written in this hidden supplementary register. These additional registers are designed for use essentially in emulation. In a preferred application of the invention, they govern a peripheral designed for emulation.


REFERENCES:
patent: 5537562 (1996-07-01), Gallup et al.
patent: 5867649 (1999-02-01), Larson
patent: 5898859 (1999-04-01), Kardach et al.
““Shadow”Diagnostic Register for Gate Array Circuit Testing,” IBM Technical Disclosure Bulletin, vol. 30, No. 9, Feb. 1988, pp. 187-188.
J. Altenburg, “Applikationen Mit Dem CMOS-Micro-Controller ST6 Teil 1,” Radio Fernsehen Elektronik, vol. 43, No. 2, Feb. 1, 1994, pp. 47-50.
T. Barron, “Protected-Mode Debugging Using In-Circuit Emulat

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Sharing of the indirect addressing of the registers of a... does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Sharing of the indirect addressing of the registers of a..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Sharing of the indirect addressing of the registers of a... will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-2455543

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.