Microcomputer having a program mode setting circuit
First Claim
1. A microcomputer comprising a program memory storing a plurality of instructions for a program, a program counter for accessing said program memory to read an instruction from an address location of said program memory designated by address information of said program counter, a central processing unit executing the instruction read from said program memory, a reset terminal supplied with a reset pulse signal made of a variable width of single pulse, an initialization circuit coupled to said reset terminal and said central processing unit and initializing said central processing unit in response to said reset pulse signal, a pulse width measuring circuit having an input node coupled to said reset terminal and a plurality of output nodes provided in correspondence with different pulse widths of said reset signal, said pulse width measuring circuit measuring the pulse width of said reset pulse signal and producing a selection signal at one of said output nodes in response to the measured pulse width of said reset pulse signal, and an address generating circuit storing a plurality of program start addresses and coupled between each of said output nodes of said pulse width measuring circuit and said program counter, said address generating circuit selectively applying one of said program start addresses to said program counter in response to said selection signal produced at said one of said output nodes, whereby said central processing unit is initialized by the received reset pulse signal and thereafter starts to execute the instructions stored in said program memory from an instruction that is stored in an address location of said program memory designated by the program start address which is applied to said program counter in accordance with the pulse width of said received reset pulse signal.
1 Assignment
0 Petitions
Accused Products
Abstract
A microcomputer comprises at least one external terminal through which a plurality of pulse signals, each of which as different pulse widths, are received, a pulse width measuring circuit measuring a pulse width of a received pulse signal, and an address generating circuit generating a plurality of addresses, a selecting circuit selecting one of the plurality of addresses. The microcomputer executes a program designated by the selected address.
-
Citations
15 Claims
- 1. A microcomputer comprising a program memory storing a plurality of instructions for a program, a program counter for accessing said program memory to read an instruction from an address location of said program memory designated by address information of said program counter, a central processing unit executing the instruction read from said program memory, a reset terminal supplied with a reset pulse signal made of a variable width of single pulse, an initialization circuit coupled to said reset terminal and said central processing unit and initializing said central processing unit in response to said reset pulse signal, a pulse width measuring circuit having an input node coupled to said reset terminal and a plurality of output nodes provided in correspondence with different pulse widths of said reset signal, said pulse width measuring circuit measuring the pulse width of said reset pulse signal and producing a selection signal at one of said output nodes in response to the measured pulse width of said reset pulse signal, and an address generating circuit storing a plurality of program start addresses and coupled between each of said output nodes of said pulse width measuring circuit and said program counter, said address generating circuit selectively applying one of said program start addresses to said program counter in response to said selection signal produced at said one of said output nodes, whereby said central processing unit is initialized by the received reset pulse signal and thereafter starts to execute the instructions stored in said program memory from an instruction that is stored in an address location of said program memory designated by the program start address which is applied to said program counter in accordance with the pulse width of said received reset pulse signal.
- 4. A microcomputer comprising a memory storing a plurality of programs, a program counter coupled to said memory for accessing said memory to read a program therefrom by use of address information of said program counter, a central processing unit executing the program read from said memory, an external terminal for receiving a control pulse signal made of a variable width of a single pulse, means coupled to said external terminal for detecting the pulse width of said control pulse signal to produce a detection signal representative of the pulse width of said control pulse signal, storing means provided independently of said memory for storing a plurality of program start addresses, means coupled to said detecting means and said storing means for outputting one of said program start addresses from said storing means in response to said detection signal, and means for applying said one of said program start addresses read from said storing means to said program counter, whereby said central processing unit stops executing one of said programs by the application of said control pulse signal and thereafter starts to execute another one of said programs in response to the program start address which is applied to said program counter determined in accordance with the pulse width of said control pulse signal.
-
7. A microcomputer comprising:
a program execution unit, a program memory storing a plurality of programs with program start addresses, each of said programs operating said program execution unit, first means for receiving any one of a plurality of external pulse signals which have different pulse widths, each of said pulse widths of said external pulse signals corresponding to a respective one of said program start addresses, second means coupled to said first means for measuring a pulse width of the received external pulse signal, third means for designating one of said program start addresses of said program memory in accordance with the measured pulse width of said received external pulse signal, and fourth means coupled to said first means and said program execution unit for operatively initializing said program execution unit at a predetermined state in response to application of any one of said external pulse signals to said first means, whereby the external pulse signal received by said reset terminal initializes said program execution unit and designates one of the program start addresses corresponding to the pulse width of the received external pulse signal. - View Dependent Claims (8, 9, 10)
-
11. A microcomputer comprising:
a program execution unit, a program memory storing a plurality of programs with program start addresses, each of said programs operating said program execution unit, a first means for receiving an external pulse signal of a variable width of a single pulse, a pulse width measuring circuit coupled to said first means for measuring the pulse width of the external pulse signal received by said first means, said pulse width measuring circuit producing an output signal indicative of said measured pulse width of the received external pulse signal, an address generating circuit connected to said pulse width measuring circuit and said program memory for designating one of said program start addresses in accordance with the output signal produced by said pulse width measuring circuit, and an initialization circuit coupled to said first means and said program execution unit for initializing said program execution unit for initializing said program execution unit at a predetermined state in response to the receipt of said external pulse signal to said first means, whereby said program execution unit is initialized in response to the received external pulse signal and one of said program start addresses is designated in accordance with the measured pulse width of said received external pulse signal. - View Dependent Claims (12, 13, 14)
-
15. A microcomputer comprising:
a program execution unit, a program memory storing a plurality of programs with program start addresses, each of said programs operating said program execution unit, an external terminal for receiving any one of a plurality of single pulse type interrupt signals which have different pulse widths, interrupt control circuit means coupled to said external terminal and said program execution unit, said interrupt control circuit means interrupting an operation performed by said program executing unit each time an interrupt signal is received at said external terminal, pulse width measuring means coupled to said external terminal for measuring a pulse width of the interrupt signal received by said external terminal, and address generating means coupled to said pulse width measuring means and said program memory for designating one of said program start addresses of said program memory in correspondence with the pulse width of the received interrupt signal measured by said pulse width measuring means, whereby the operation of said program execution unit is interrupted in response to the received interrupt signal and one of the program start addresses of said program memory is designated in accordance with the pulse width of said received interrupt signal.
Specification