Microcomputer incorporating peripheral circuits

Electrical computers and digital data processing systems: input/ – Input/output data processing – Peripheral configuration

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C710S316000

Reexamination Certificate

active

06826633

ABSTRACT:

BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to a microcomputer provided with a plurality of peripheral circuits.
2. Description of the Prior Art
A microcomputer is composed of a central processing unit (CPU) and various peripheral circuits such as data and program memories, I/O ports, and timer-counters. Microcomputers are classified into special-purpose and general-purpose models, of which special-purpose models are often called ASICs (application-specific integrated circuits).
With a special-purpose microcomputer, its peripheral circuits are designed according to a specific application, and therefore efficient processing performance can be expected. On the other hand, its newly designed portion requires extra development time, which sometimes makes it impossible to develop such a microcomputer in time for the development of the device in which the microcomputer is to be incorporated when its development schedule is tight.
A general-purpose microcomputer is designed to cope with a wide range of applications, and is therefore provided with various functions. However, those functions and their performance do not always satisfy the specifications required in a specific application. Therefore, it is necessary, first of all, to select a model that satisfies the desired specifications. However, it is difficult to judge whether a given model is provided with functions that satisfy the desired specifications or not, and improper selection of a model might invite, in the middle of the designing of a program, change of the model of the microcomputer to be used or alterations to the specifications of the application. In either way, improper selection of a model of a microcomputer leads to a delay in the development of an application.
A general-purpose microcomputer is so devised as to achieve intelligent functions through interlocked operation of a plurality of peripheral circuits. For example, there is known a function called “input capture,” which is realized through interlocked operation of a timer-counter and an I/O port.
This function permits the count value of a timer to be stored in a special-purpose register every time a rising or trailing edge is detected in an external input signal. Thus, this function is useful in measuring the period for which an external input signal remains at a high or low level.
Now, how the periods of an external input signal are measured will be described with reference to
FIG. 21
, taking up as an example a case in which a timer is operating on a system clock having a frequency of 4 [MHz] and, as an external input signal, a pulse is fed in that remains for 1.5 [&mgr;s] at a high level and for 0.5 [&mgr;s] at a low level. Every time the external input signal EXT_IN rises or falls, the count value T of the timer is stored in a special-purpose register R, then the count value T is reset, and then the timer start counting again.
Moreover, every time the external input signal EXT_IN rises or falls, an interrupt request occurs. In the software procedure, of which a flow chart is shown in
FIG. 22
, executed when an interrupt request has occurred due to the external input signal EXT_IN, first, whether the cause for the interrupt request is a rising edge in the external input signal EXT_IN or not is checked (S
801
).
If the cause is a rising edge in the external input signal EXT_IN (“Yes” in S
801
), the value in the register R is saved as the period (hereinafter the “low period”) for which the external input signal EXT_IN remains at a low level (S
802
). If not (“No” in S
801
), the value in the register R is saved as the period (hereinafter the “high period”) for which the external input signal EXT_IN remains at a high level (S
803
).
Here, the count value of the timer is written repeatedly to the same register, and therefore it is necessary, before the register is overwritten with a new value, to save the value in the register. In the example under discussion, only 0.5 [&mgr;s] is available for the saving of the high period of the external input signal. This corresponds to two states in a CPU that operates on a system clock having a frequency of 4 [MHz], and, within two states, it can be impossible to jump to the address of and complete the execution of the software interrupt procedure.
In this case, to make the measurement possible, it is necessary to use two input capture functions. Specifically, the signal to be measured are input to two I/O ports each having an input capture functions, and two timers are used to measure two separate times. This will be described with reference to FIG.
23
.
On every rising or trailing edge in the external input signal EXT_IN
1
fed to it, one input capture function stores the count value T
1
of one timer in a register R
1
, then the count value T
1
is reset, and then the timer start counting again. On every trailing edge in the external input signal EXT_IN
2
fed to it, the other input capture function stores the count value T
2
of the other timer in a register R
2
, then the count value T
2
is reset, and then the timer start counting again.
Moreover, on every rising or trailing edge in the external input signal EXT_IN
1
and on every trailing edge in the external input signal EXT_IN
2
, an interrupt request occurs. Flow charts of the software procedure executed on occurrence of an interrupt request is shown in
FIGS. 24 and 25
.
When an interrupt request has occurred due to the external input signal EXT_IN
1
, if the cause of the interrupt request is a rising edge in the external input signal EXT_IN
1
(“Yes” in S
901
), the value in the corresponding register R
1
is saved as the low period (S
902
). On the other hand, when an interrupt request has occurred due to the external input signal EXT_IN
2
, the value calculated by subtracting the low period saved in the register R
1
from the value in the corresponding register R
2
is saved as the high period (S
1001
).
However, in this method, an extra I/O port needs to be used in addition to an extra timer. Moreover, in a special-purpose microcomputer, a signal from a single terminal can be fed to different circuit blocks. More important, it takes long for a programmer to hit upon this method.
Even if a programmer hits upon this method, an extra I/O port having an input capture function needs to be free. In the course of the development of a device in which a microcomputer is to be incorporated, when the development of a program for the microcomputer is underway, the design of the circuitry including the microcomputer has, in most cases, already been determined.
For these reasons, if an alteration becomes necessary in the allocation for use of I/O ports having special functions in the middle of the designing of the program for the microcomputer, it may affect the development schedule of the device as a whole. Moreover, it is questionable whether one can foresee, at the stage of the selection of the model of the microcomputer, that the measurement of a single signal will require as many as two I/O ports having such special functions.
In this way, in a case where a general-purpose microcomputer is incorporated in a device including specialized operation, unexpected problems are likely to arise, which often leads to a delay in the development of the device as a whole.
In a situation where sufficient time for the development of a special-purpose microcomputer is not available, and in addition it is difficult to judge whether the peripheral circuit functions of a general-purpose microcomputer satisfy the specifications of the device as an end product or not, it is possible, as disclosed in Japanese Patent Application Laid-Open No. H5-127913, to develop simultaneously the desired peripheral circuit functions and the desired program by the use of a programmable gate array.
However, precisely because of the principles on which a programmable gate array is based, using one to realize peripheral circuit functions results in a larger circuit area than otherwise. Moreover, necessary perip

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

Microcomputer incorporating peripheral circuits does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Microcomputer incorporating peripheral circuits, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Microcomputer incorporating peripheral circuits will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-3362586

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