KR920001615B1 - Micro computer - Google Patents
Micro computer Download PDFInfo
- Publication number
- KR920001615B1 KR920001615B1 KR1019910003060A KR910003060A KR920001615B1 KR 920001615 B1 KR920001615 B1 KR 920001615B1 KR 1019910003060 A KR1019910003060 A KR 1019910003060A KR 910003060 A KR910003060 A KR 910003060A KR 920001615 B1 KR920001615 B1 KR 920001615B1
- Authority
- KR
- South Korea
- Prior art keywords
- input
- output
- task
- register
- data
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/22—Microcontrol or microprogram arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Microcomputers (AREA)
Abstract
내용 없음.No content.
Description
제1도는 본원 발명에 의한 입출력처리부의 블록도.1 is a block diagram of an input / output processing unit according to the present invention.
제2도는 본원 발명에 의한 싱글칩 마이크로콤퓨터의 블록도.2 is a block diagram of a single chip microcomputer according to the present invention.
제3도는 본원 발명에 의한 타스크명령의 포맷.3 is a format of a task command according to the present invention.
제4도는 제1도의 입출력연산부의 동작타이밍도.4 is an operation timing diagram of the input / output operation unit of FIG.
제5도는 제3도의 포맷을 사용한 입력처리의 예(전송후 리세트).5 is an example of input processing (reset after transmission) using the format of FIG.
제6도는 제3도의 포맷을 사용한 입력처리의 예(전송후 리세트 없음).6 shows an example of input processing using the format of FIG. 3 (no reset after transmission).
제7도는 제3도의 포맷을 사용한 입력처리의 예(일치 후 리세트).7 is an example of input processing using the format of FIG. 3 (reset after matching).
제8도는 제3도의 포맷을 사용한 입력처리의 예(일치 후 리세트 없음).8 is an example of input processing using the format of FIG. 3 (no reset after matching).
본원 발명은 마이크로콤퓨터에 관한 것이며, 특히 카운터/타이머에 의한 펄스입력처리 및 펄스출력처리를 행하는 싱글칩 마이크로콤퓨터의 카운터/타이머에 적합한 마이크로콤퓨터에 관한 것이다.The present invention relates to a microcomputer, and more particularly, to a microcomputer suitable for a counter / timer of a single chip microcomputer that performs pulse input processing and pulse output processing by a counter / timer.
종래, 싱글칩 마이크로콤퓨터의 카운터/타이머에 대해서는 VLSI 마이크로프로세서의 저의 및 디자인(IEEE MICRO, 1984년 2월, J.M.Sibigtroth에 의한 “Motorola′s MC 68 HC 11:Definition and Design of a VLSI Microprocessor”)이라는 제목의 문헌에서 거론되고 있다. 이 문헌에 기술되어 있는 카운터/타이머의 기능은 카운터/타이머의 개수나 펄스입력을 계수한 데이터를 유지하는 캡쳐레지스터의 개수, 펄스출력발생의 시간폭을 결정하는 데이터를 유지하는 콤페어레지스터의 개수가 고정되어 있으며, 각종 기기의 제어에 응용했을 경우, 자유도라고 하는 점에 대해서는 배려되어 있지 않았다.Conventionally, for the counter / timer of a single-chip microcomputer, the design and design of a VLSI microprocessor (“Motorola's MC 68 HC 11: Definition and Design of a VLSI Microprocessor” by IEEE MICRO, February 1984, JMSibigtroth) It is mentioned in the literature titled. The functions of the counters / timers described in this document include the number of counters / timers, the number of capture registers that hold the data that counts the pulse inputs, and the number of the comparators that hold the data that determine the time width of the pulse output generation. Is fixed, and when applied to the control of various devices, the degree of freedom is not considered.
또한, I/O의 핀배치에 대해서도 고정되어 있다.In addition, the pin arrangement of the I / O is also fixed.
본원 발명의 목적은 종래 배려되어 있지 않았던 카운터/타이머의 개수, 캡쳐레지스터의 개수 및 콤페어레지스터의 개수에 자유도를 갖게하고, 각종 기기의 제어에 응용가능한 싱글칩 마이크로콤퓨터를 제공하는데 있다.SUMMARY OF THE INVENTION An object of the present invention is to provide a single chip microcomputer which has freedom in the number of counter / timers, the number of capture registers and the number of comparators, which is not considered in the related art, and which is applicable to the control of various devices.
카운터/타이머는 AU(Arithmetic Unit)와 레지스터군의 지정된 레지스터로 구성되며, AU에 의해 인크리멘트하여 데이터를 원래대로 귀환시킴으로써 행하는 것이다. 캡쳐레지스터는 카운터/타이머와 같은 레지스터군의 지정된 레지스터에 카운터/타이머의 데이터를 전송함으로써 행하는 것이다. 또한, 콤페어레지스터에 대해서도 마찬가지로 레지스터군의 지정된 레지스터의 데이터와 카운터/타이머의 데이터를 AU에 의해 비교함으로써 행한다.The counter / timer is composed of an AU (Arithmetic Unit) and a designated register of a register group, which is incremented by the AU to return the data to its original state. The capture register is performed by transferring the counter / timer data to a designated register in the register group such as the counter / timer. Similarly, the comp register is performed by comparing the data of the designated register in the register group with the data of the counter / timer by AU.
또한, 카운터/타이머, 캡쳐레지스터 및 콤페어레지스터의 개수에 자유도를 갖게 하기 위해, CPU의 프로그램의 이니셜라이즈시에 기능을 설정하는 명령을 가지며, 어떤 레지스터군에 원하는 기능을 설정하므올써 입출력처리를 실행한다.In addition, in order to give the number of counter / timers, capture registers, and comp registers to have a degree of freedom, the CPU has instructions for setting functions at the time of initializing the program of the CPU. Run
제2도는 본원 발명의 일실시예를 도시한 싱글칩 마이크로콤퓨터의 구성을 나타내는 것이다. 마이크로콤퓨터부(100)는 중앙연산처리부(CPU)(200), 데이터메모리부(RAM)(201) 및 프로그램메모리부(ROM)(202)로 구성된다.2 shows a configuration of a single chip microcomputer showing an embodiment of the present invention. The
카운터/타이머장치인 입출력처리부(100′)는 입출력타스크레지스터부(205), 타스크디코더부(206) 및 입출력연산부(207)로 구성되어 있다.The input /
마이크로콤퓨터부(100)와 입출력처리부(100′)의 인터페이스는 데이터버스(203), 어드레스 및 콘크롤버스(204)에 의해 행한다.The interface between the
입출력타스크레지스터부(205)는 입출력기능을 규정하는 소프트웨어를 가지고 있는 레지스터군이며, 마이크로콤퓨터부(100)는 데이터버스(203)를 통해 입출력타스크레지스터부(205)에 입출력기능을 규정하는 상기 소프트웨어를 기입하는 것이다. 입출력타스크레지스터부(205)에 기입된 상기 소프트웨어는 기본적인 입출력 기능을 형성하는 입출력타스크마다 순차 독출되며, 그 입출력타스크에 따라 타스크디코더부(206)를 통해 입출력연산부(207)를 제어한다.The input / output
타스크디코더부(206)는 입출력타스크와 입력군(208)의 신호상태에 의해 입출력연산부(207)를 제어하기 위한 신호를 발생하는 기능을 갖는다.The
입출력연산부(207)는 카운터/타이머를 위한 인크리멘트, 카운터/타이머의 데이터를 캡쳐레지스터로의 전송, 카운터/타이머의 데이터와 콤페어레지스터에 데이터와의 비교나 출력군(209)에의 출력신호발생등을 행한다. 따라서, 입출력처리부(100′)는 입출력전용, 입력 또는 출력전용의 펄스처리기능을 행할 수 있고, 또한 카운터/타이머장치로서 카운터/타이머동작을 행할 수 있다.The input /
여기서, 카운터/타이머장치인 입출력처리부(100′)의 상세한 블록구성을 제1도에 나타낸다. 입출력타스크레지스터부(205)는 입출력타스크 신호발생회로(101), 타스크 어드레스디코더(102) 및 타스크레이지스터군(103)으로 구성된다. 각종 기기를 제어하기 위해서는 다수의 입출력처리타스크를 실행할 필요가 있다. 타스크레지스터군(103)에 많은 입출력처리가 기억되어 있다. 따라서, 입출력타스크 신호발생회로(101)에서 타스크번호를 발생하며, 타스크어드레스디코더(102)를 통해 타스크레지스터군(103)에서 타스크번호에 대응한 입출력타스크를 독출하여 실행한다. 이 타스크레지스터군(103)은 각 입출력터미널핀에 대해 각 선택된 레지스터를 사용하여 각 입출력기능을 행하도록 각 입출력기능을 규정한 입출력타스크를 RLDR하는 기억부와, 입출력연산부(207)에 대한 제어기능을 규정한 입출력타스크에 상응하는 제어부를 포함하는 구성으로 할수도 있다. 각각의 입출력타스크는 제3도에 도시한 바와같이 입출력타스크번호, 입출력지정, 카운터/타이머의 레지스터번호, 캡쳐/콤페어의 레지스터번호, 계수조건, 캡쳐/콤페어의 조건, 클록입력의 핀번호, 캡쳐/리세트입력의 핀번호 및 출력의 핀번호를 정한 데이터이며, 독출된 입출력타스크는 입출력연산디코더(104)를 통해 입출력연산부(207)J의 제어신호(113) 및 입출력핀제어신호(114)를 생성한다. (115)는 입력군(208)을 입력하기 위한 핀번호 제어회로이다. 이 핀번호제어회로(115)와 입출력연산부(207)는 입출력처리연산부를 구성한다.Here, the detailed block structure of the input / output processing part 100 'which is a counter / timer device is shown in FIG. The input / output
입출력연산부(207)는 카운터/타이머, 캡쳐레지스터 및 콤페어레지스터로 이루어지는 복수의 범용 레지스터를 포함한 레지스터군(105), 제1의 소스래치(106), 제2의 소스래치(107), 입출력연산을 행하는 AU(108), 데스티네이션래치(109), 출력용 래치군(110), 라이트데이터버퍼(111) 및 리드데이터버퍼(112)로 구성된다.The input /
레지스터군(105)의 각 입출력타스크에 의해 지정된 레지스터가 액세스되어 입출력처리를 행한다. AI(108)는 인크린멘트, 비교등의 연산을 행한다.The register specified by each input / output task of the
또한, 레지스터군(105), 제1의 소스래치(106), 제2의 소스래치(107), AU(108), 데스티네이션래치(109), 라이트데이터버퍼(111) 및 리드데이터버퍼(112)는 각각 제1도에 도시한 바와같이 제1의 입출력용리드버스(116), 제2의 입출력용리드버스(117), 입출력용 라이트버스(118), 마이크로콤퓨터부(100)의 데이터버스(203)와 인터페이스되는 입출력용 인터페이스버스(119)에 접속되어 있다. 라이트데이터버퍼(111)와 리드데이터버퍼(112)는 마이크로콤퓨터부(100)로부터의 라이트데이터 및 리드데이터를 레지스터군(105)의 레지스터에 기입하여 독출을 행하기 위한 버퍼이다. 상기 라이트데이터버퍼(111), 리드데이터버퍼(112) 및 입출력용 인터페이스버스(119)는 입출력용 인터페이스버스수단을 구성한다.In addition, the
출력용 래치군(110)은 비교를 행했을 때의 비교결과를 유지하는 래치이며, 이 래치의 출력이 출력핀에 접속되어 출력군(209)에 신호를 출력한다.The output latch group 110 is a latch which holds a comparison result when a comparison is made, and the output of this latch is connected to an output pin, and outputs a signal to the
제4도는 입출력연산부(207)의 타이밍도이다. 입출력연산부(207)는 (a)로 표시되는 제1의 클록신호 ψ1와 (b)로 표시되어 제2의 클록신호 ψ2 의 중첩이 없는 2상클록신호에 의해 동작한다. 또한, 제1의 클록신호 ψ1(a)는 마이크로콤퓨터부(100)의 내부클록신호이다(먼저, 카운터/타이머의 계수후에 콤페어레지스터의 데이터와 비교하는 모드에 대해 동작을 설명한다. 제 C0주기에 독출되는 제i번의 입출력타스크를 예로든다.). (c)는 제1의 입출력용 리드버스(116)의 상태를 나타낸다. 제1의 클록신호 ψ1(a)가 “1” 일때에, 즉 각 T1기간마다 제 1의 입출력용 리드버스(116)를 프리차지 한다.4 is a timing diagram of the input /
제2의 클록신호 ψ2(b)가 “1” 로 되면, 즉 제C1주기의 T3기간이 되면, 제i번의 입출력타스크에 의해 제1의 카운터/타이머로 지정된 레지스터군(105)의 제1의 레지스터(h-1)의 데이터 U에 따라서 제1의 입출력용 리드버스(116)는 디스차지가 시작되며, 제2의 클록신호 ψ2(b)가 “1”인 기간에, 즉 제C1주기의 T3기간중에 데이터 U가 확립된다. 제1의 입출력용 리드버스(116)상의 데이터 U는 제2의 클록신호 ψ2(b)가 “1”인 기간중에, 즉 제C1주기의 T3제1의 소스래치(106)에 래치된다. (d)에 제1의 소스래치(106)의 상태를 나타낸다. 파선의 시각에, 즉 제C1주기의 T3기간에서 T4기간으로의 전환시간에 제1의 소스래치(106)(d)에 데이터가 래치된다. 제1의 소스래치(106)(d)에 래치된 데이터 U는 제2의 클록신호 ψ2(b)가 “1”인 기간에, 즉 제C1주기의 T3기간에 프라차지된 AU(108)의 A단자에 입력된다. 한편, AU(108)의 B단자에 입력되는 데이터는 각 비트가 모두 0으로, 즉 2진수의 값이 0이고, AU(108)는 카운터/타이머에 필요한 계수동작을 입출력연산디코더(104)의 제어신호(113)에 따라 행한다.The clock signal of 2 ψ2 (b) is when a "1", that is, the first of the C1 when the T 3 duration of the cycle, the i-
즉, 카운터/타이머를 인크리멘트 한다. AU(108)의 상태는 (e)로서 도시되어 있다. AU(108)(e)에 의해 인크리멘트된 데이터 U+1는 데스티네이션래치(109)에 입력되어, 제1의 클록신호 ψ1(a)가 “1”인 기간중에, 즉 제C2주기의 T1기간중에 데스티네이션래치(109)에 래치된다. 그 데스티네이션래치(109)의 상태를 나타낸 것이 (f)이다. 다음에, 데스티네이션래치(109)의 출력은 제1의 클록신호 ψ1(a)가 “1”인 기간중에, 즉 제C2주기의 T1기간중에 프리차지되는 입출력용 라이트버스(118)와 제1의 입출력용 리드버스(116)에 입력된다. (g)와 (c)에 이것들의 상태를 나타낸다. 즉, 제2의 클록신호 ψ2(b)가 “1”인기간중에, 즉 제C2주기의 T3기간중에 데스티네이션래치(109)(f)의 데이터 U+1에 따라서 제1의 입출력용 리드버스(116)(c)와 입출력용 라이트버스(118)(g)를 디스차지하고, 각각의 버스상에 데이터가 확립된다. 제1의 입출력용 리드버스(116)(c)상의 데이터 U+1는 제1의 소스래치(106)(d)에 래치된다. 입출력용 라이트버스(18)(g)상의 데이터 U+1는 제1이 카운터/타이머로 지정된 레지스터군(105)의 제1의 레지스터(h-1)에 기입된다. 즉, 제1의 소스래치(106)(d)에는 비교를 위해 이 데이터 U+1를 기입한다. 레지스터군(105)의 제1의 레지스터(h-1)에는 그 레지스터 자신을 제1의 카운터/타이머로 하기 위해 이 데이터 U+1를 제C2주기의 T3기간에 기입한다.That is, it increments the counter / timer. The state of the
한편, 비교의 기준으로 되는 비교를 위한 기준데이터는 제i번의 입출력타스크에 의해 콤페어레지스터로 지정된 레지스터군(105)의 제4의 레지스터(m)로부터 독출되어 제2의 입출력용 리드버스(117)를 통해 제2의 소스래치(107)에 기입된다. 그 동작을 (j), (k)에 의해 설명한다.On the other hand, the reference data for comparison, which is the basis of the comparison, is read out from the fourth register m of the
제1의 클록신호 ψ1(a)가 “1”인 기간중에, 즉 제C2주기의 T1기간중에 제2의 입출력용 리드버스(117)를 프리차지한다. 다음의 제2의 클록신호 ψ2(b)가 “1”인 기간중에, 즉 제C2주기의 T3기간중에 기준데이터를 유지하고 있는 레지스터군(105)의 제4의 레지스터(m)의 데이터 W에 따라서 디스차지되며, 제2의 입출력용 리드버스(117)(j)상에 기준데이터가 확립된다. 제2의 입출력용 리드버스(117)(j)상의 데이터 W는 제2의 클록신호 ψ2(b)가 “1”인 기간중에, 즉 제C2주기의 T3기간중에 제2의 소스래치(107)(k)에 기입된다.The second input / output read
제1의 소스래치(106)의 출력과 제2의 소스래치(107)의 출력은 각각 AU(108)의 A단자, B단자에 입력되며, 제i번의 입출력타스트에 의해 지시된 비교동작이 제1의 클록신호 ψ1(a)가 “1”인 기간중에, 즉 C3주기의 T1기간중에 종료되는 동시에, 그 비교결과는 제i번의 입출력타스크에 의해 지정된 출력군(209)의 핀번호에 대응하는 출력용 래치군(110)의 래치에 유지된다.The output of the
다음에, 입력기능의 일예로서, 제i번의 입출력타스크에 이어서 C2주기에 독출되어 있는 제i+1번의 입출력타스크가 제2의 카운터/타이머의 계수후에 카운터/타이머의 데이터를 캡쳐레지스터에 전송하는 동작을 설명한다.Next, as an example of the input function, the i + 1th I / O task read out at the C2 cycle following the ith I / O task transfers the data of the counter / timer to the capture register after counting the second counter / timer. Describe the operation.
제i+1번의 입출력타스크에 있어서의 제2의 카운터/타이머의 계수는 계수의 후에 비교하는 상기의 제i번의 입출력타스크에 있어서의 제1의 카운터/타이머의 계수와 같은 동작이다. 이 계수에 의해 제2의 카운터/타이머의 데이터는 V로부터 V+1로 제C4주기의 T3기간에 변경된다. 제i+1번의 입출력타스크에 의해 제2의 카운터/타이머로 지정된 레지스터군(105)의 제2의 레지스터(h-2)의 계수의ㅣ 후의ㅏ 데이터 V+1를 이 입출력타스크에 의해 캡쳐레지스터로 지정된 레지스터군(105)의 제3의 레지스터(i)로 전송하기 위해서는 이 입출력타스크의 계수의 과정에서 이 계수된 데이터 V+1가 일시적으로 유지되어 있는 데스티네이션래치(109)(f)로부터 제C4주기의 T3기간에 제1의 입출력용 리드버스(116)(c)를 통하여 레지스터군(105)의 제3의 레지스터(i)에 계수된 데이터 V+1를 기입하는 것에 의해 행하는 것이다.The coefficient of the second counter / timer in the i + 1th input / output task is the same operation as the coefficient of the first counter / timer in the i-th input / output task to be compared after the coefficient. By this coefficient, the data of the second counter / timer is changed from V to V + 1 in the period T 3 of the C4th cycle. The data register V + 1 after the count of the second register (h-2) of the
이것에 대해 좀더 상세히 설명하면 다음과 같다. 제1의 입출력용 리드버스(116)(c)상에 제2의 클록신호ψ2(b)가 “1”인 기간중에, 즉 제C4주기의 T3기간중에 데스티네이션래치(109)(f)의 출력에 따라 데이터 V+1를 확립해서, 제1의 소스래치(106)(d)에 그 데이터를 기입한다. 기입된 데이터 V+1는 AU(108)의 A단자에 입력되며, AU(108)(e)는 A단자에 입력된 데이터 V+1와 같은 데이터 V+1를 제C4주기의 T1기간에 데스티네이션래치(109)(f)에 기입한다. 다음에, 제1의 클록신호 ψ1(a)가 “1”인 기간중에, 즉 제C4주기의 T1기간에 프리차지된 입출력용 라이트버스(118)(g)는 제2의 클록신호 ψ2(b)가 “1”인 기간중에, 즉 제C4주기의 T3기간에 데스티네이션래치(109)(f)의 데이터 V+1에 따라서 디스차지되고, 데이터 V+1가 확립된다. 입출력용 라이트버스(118)(g)상의 데이터 V+1는 제i+1번의 입출력타스크에 의해 캡쳐레지스터로 지정된 레지스터군(105)의 제3의 레지스터에 기입된다.If this is explained in more detail as follows. Destination latch 109 (f) during the period when the second clock signal ψ 2 (b) is "1" on the first input / output lead bus 116 (c), that is, during the period T 3 of the C4 period. The data V + 1 is established in accordance with the output of the data, and the data is written into the first source latch 106 (d). The written data V + 1 is input to the A terminal of the
상기한 동작의 설명을 정리하면, CPU(200)에 의해 타스크레지스터군(103)에 기입된 복수의 입출력타스크는 2주기에 하나의 비율로 순번으로 독출되고, 각각의 입출력타스크는 실행에 4주기를 필요로 한다. 여기서, 어떤 입출력타스크에 대한 동작이 종료된 구성요소로부터 다음의 입출력타스크에 대한 동작을 개시한다고 하는 연속작업적 수법을 이용하여 외관상의 2주기마다 실행되도록 했다. 입출력처리부(100′)는 복수의 입출력타스크를를 차차로 실행하고, 일순하면 다시 제1번의 입출력타스크로부터 반복실행한다. 이 반복에 의해 타이머에 필요한 일정기간마다다의 계수가 달성된다. 또, 입력군(208)에 있어서 동시에 복수의 상태변화가 발생해도 설정되어 있는 모든 입출력타스크가 제1번으로부터의 순번에 따라 반복하여 실행되기 때문에, 이들 모든 상태변화에 대응하는 입출력타스크가 반드시 실행되며, 원하는 입출력기능이 달성된다.In summary, the plurality of I / O tasks written in the
이상의 입출력연산부(207)를 제어하는 것이 상기한 제3도의 입출력타스크이다. 다음에, 상세하게 지정의 형식을 나타낸다.The above-described input / output task of FIG. 3 controls the input /
입출력타스크번호란 타스크레지스터군(103)에 할당된 어드레스이다. 입출력지정은 카운터/타이머의 데이터를 캡쳐레지스터에 전송하는 입력기능과 카운터/타이머의 데이터와 콤페어레지스터의 데이터를 비교하는 출력기능을 지정한다. 그 지정을 다음에 나타낸다.The input / output task number is an address assigned to the
입출력지정=0………입력기능지정I / O designation = 0. … … Input function specification
입출력지정=1………출력기능지정I / O designation = 1. … … Output function specification
카운터/타이머레지스터번호는 레지스터군(105)중에서 카운터/타이머로 되는 레지스터의 번호를 나타낸다. 예를들면, 카운터/타이머레지스터번호가 “3”일때, 레지스터군(105)의 세번째의 레지스터가 그 입출력타스크의 카운터/타이머로 된다.The counter / timer register number represents the number of the register to be the counter / timer in the
캡쳐/콤페어레지스터번호는 레지스터군(105)중에서 캡쳐레지스터 또는 콤페어레지스터로 되는 레지스터번호를 나타낸다. 예를들면, 캡쳐/콤페어레지스터번호가 “5”일때, 레지스터군(105)의 다섯번째의 레지스터가 그 입출력타스크의 캡쳐레지스터(입력기능의 경우) 또는 콤페어레지스터(출력기능의 경우)로 된다.The capture / compartment register number represents a register number which becomes a capture register or a comparator in the
계수조건은 카운터/타이머의 계수를 위한 조건이다. 그 내용은 클록지정, 계수제어 및 리세트제어이다.The counting condition is a condition for counting a counter / timer. The contents are clock designation, counting control and reset control.
클록지정=0………내부클록신호.Clock designation = 0... … … Internal clock signal.
클록지정=1………외부클록신호.Clock designation = 1... … … External clock signal.
계수제어=0………계수동작 없음.Coefficient control = 0... … … No counting operation.
계수제어=1………계수동작 있음.Coefficient control = 1... … … Counting operation
리세트제어=0………리세트동작 없음.Reset control = 0... … … No reset operation.
리세트제어=1………리세트동작 있음.Reset control = 1... … … There is a reset operation.
캡쳐/콤페어조건은 카운터/타이머데이터의 전송조건(입력기능의 경우) 또는 카운터/타이머데이터의 비교조건(출력기능의 경우)이다. 그 내용은 전송조건으로서 전송후 제어이다.The capture / compart condition is a transfer condition of the counter / timer data (in case of an input function) or a comparison condition of a counter / timer data (in the case of an output function). The content is post transfer control as a transfer condition.
전송후 제어=0………전송후 리세트동작 없음.Control after transmission = 0. … … No reset operation after transmission.
전송후 제어=1………전송후 리세트동작 있음.Control after transmission = 1... … … Reset operation after transmission.
또한, 비교조건으로서 일치후 제어, 결과논리지정이다.As a comparison condition, control after matching is performed and result logic is determined.
일치후 제어=0………카운터/타이머의 데이터와 콤페어레지스터의 데이터가 일치한 다음 리세트동작 없음.Control after matching = 0. … … There is no reset operation after the counter / timer data matches the data of the comparator.
일치후 제어=1………카운터/타이머의 데이터와 콤페어레지스터의 데이터가 일치한 다음 리세트동작 있음.Control after match = 1... … … There is a reset operation after the counter / timer data matches the data in the comparator register.
결과논리지정=0………카운터/타이머의 데이터가 콤페어레지스터의 데이터와 일치 또는 이상으로 되었을때, 출력용 래치군(110)에 “0”을 출력한다.Logical result = 0. … … When the data of the counter / timer coincides with or exceeds the data of the comparator, "0" is output to the output latch group 110.
결과논리지정=1………카운터/타이머의 데이터가 콤페어레지스터의 데이터와 일치 또는 이상으로 되었을때, 출력용 래치군(110)에 “1”을 출력한다.Logical result = 1... … … When the data of the counter / timer coincides with or exceeds the data of the comparator, a "1" is output to the output latch group 110.
클록입력핀번호는 어느 입출력타스크에 있어서 외부클록이 지정되었을 때, 입력군(208)용으로 준비된 핀중에서 외부클록신호로 되는 핀번호이다.The clock input pin number is a pin number that becomes an external clock signal among the pins prepared for the
캡쳐/리세트입력핀번호도 클록입력핀번호와 마찬가지로 어느 입출력타스크에 있어서 캡쳐신호(입력기능의 경우) 또는 리세트신호(출력기능의 경우)를 입력군(208)용으로 또는 출려군(209)용으로 준비된 핀중에서 지정하기 위한 핀번호이다.Like the clock input pin number, the capture / reset input pin number is used for the
출력핀번호는 어느 출력기능의 입출력타스크에 있어서, 출력군(209)용으로 준비된 핀중에서 출력핀으로되는 핀번호이다.The output pin number is a pin number which becomes an output pin among the pins prepared for the
다음에, 제3도의 입출력타스크를 사용하여, 실현할 수 있는 입출력기능을 제5동, 제6동, 제7도 및 제8도에 도시한다.Next, the input / output functions that can be realized using the input / output task of FIG. 3 are shown in FIG. 5, 6, 7, and 8. FIG.
제5도는 입출력타스크를 다음과 같이 설정한 경우에 동작을 나타낸다. 도면은 디지털량을 아날로그적으로 표현한 도면이다.5 shows the operation when the input / output task is set as follows. The figure shows the analog amount of the digital quantity.
즉, 타스크레지스터군(103)의 k1번째의 입출력타스크는 입력기능이며, 카운터/타이머는 레지스터군(105)의 레지스터 n1, 캡쳐레지스터군(105)의 레지스터 m1이다.That is, the k1-th input / output task of the
계수는 핀 p1의 신호(p1)를 외부클록입력신호로하여 행하며, 핀 q1을 캡쳐입력신호로 하고, 핀 q1의 신호(q1)가 “0”으로 되었을 때, 카운터/타이머(레지스터 n1)의 데이터를 캡쳐레지스터(레지스터 m1)로 전송하며, 그후 카운터/타이머(레지스터 n1)의 데이터를 리세트한다.Counting is performed using the signal p1 of the pin p1 as an external clock input signal, the pin q1 as the capture input signal, and when the signal q1 of the pin q1 becomes "0", the counter / timer (register n1) The data is transferred to the capture register (register m1), and then the data of the counter / timer (register n1) is reset.
제6도는 입출력타스크를 다음과 같이 설정한 경우의 동작을 나타낸다.6 shows the operation when the input / output task is set as follows.
즉, 제5도와 동작은 대략 같지만, 전송후에 카운터/타이머의 데이터를 리세트하지 않고, 계수를 속행한다.That is, although the operation in Fig. 5 is approximately the same, the count is continued without resetting the counter / timer data after the transfer.
제7도는 일정한 인터벌의 발생등에서 사용하는 출력기능이며, 입출력타스크를 다음과 같이 설정한 경우의 동작이다.7 is an output function for use in generating a certain interval, etc., and is an operation when the input / output task is set as follows.
제7도는 다음과 같다. 이 입출력타스크는 타스크레지스터군(103)의 k3번째의 입출력타스크이며, 출력기능으로 설정되어 있다. 카운터/타이머는 레지스터군(105)의 레지스터 n3, 콤페어레지스터는 레지스터군(105)의 레지스터 m3이다.7 is as follows. This input / output task is the k3th input / output task of the
계수는 내부클록입력신호를 사용하여 행한다. 비교한 결과는 카운터/타이머(레지스터 n3)의 데이터가 콤페어레지스터(레지스터 m3)의 데이터와 일치 또는 이상으로 되었을 때에, 논리 “0”을 출력핀 o3에 출력하는 동시에 카운터/타이머(레지스터 n3)의 데이터를 리세트한다.Counting is performed using an internal clock input signal. The comparison result shows that when the data of the counter / timer (register n3) matches or exceeds the data of the comparator (register m3), the logic “0” is output to the output pin o3 and the counter / timer (register n3) Reset the data.
제8도는 듀티제어등에 사용하는 출력기능이며, 입출력타스크를 다음과 같이 설정한 경우이다.8 is an output function used for duty control and the like, and the input / output task is set as follows.
입출력타스크는 타스크레지스터군(103)의 k4번째의 입출력타스크이며, 출력기능으로 설정되어 있다. 카운터/타이머는 레지스터군(105)의 레지스터 n4, 콤페어레지스터는 레지스터군(105)의 레지스터 m4이다.The input / output task is the k4th input / output task of the
계수는 내부클록입력신호를 사용하여 행한다. 카운터/타이머(레지스터 n4)의 데이터는 리세트입력신호가 입력되어 있는 핀 q4에 의해 리세트된다.Counting is performed using an internal clock input signal. The data of the counter / timer (register n4) is reset by pin q4 to which the reset input signal is input.
비교한 결과는 카운터/타이머(레지스터 n4)의 데이터가 콤페어레지스터(레지스터 m4)의 데이터와 일치 또는 이상으로 되었을 때, 논리 “0”을 출력핀 o4에 출력한다.As a result of comparison, when the data of the counter / timer (register n4) matches or exceeds the data of the comparator (register m4), a logic "0" is output to the output pin o4.
타스크레지스터군(103)은 레지스터가 아니라 RAM, EPROM, EEPROM, ROM이라도 좋다.The
본원 발명에 의하면 입출력기능에 있어서, 카운터/타이머의 계수, 캡쳐레지스터 및 콤페어레지스터의 개수가 고정되어 있지 않고, 기본적으로 입출력기능을 실현하는 입출력타스크를 복수개 조합한 간단한 소프트웨어로 자유롭게 설정할 수 있으므로, 각종 기기의 제어에 응용가능하다는 효과가 있다.According to the present invention, in the input / output function, the counter / timer count, the number of capture registers and the comparator registers are not fixed, and can be set freely by simple software combining a plurality of input / output tasks that realize the input / output function basically. There is an effect that it can be applied to the control of various devices.
또한, 입력핀의 개수와 그 역할, 그리고 출력핀의 개수와 그 역할에 대해서도 기본적인 입출력기능을 실현하는 입출력타스크를 복수개 조합한 간단한 소프트웨어로 자유롭게 명령으로 설정할 수 있기 때문에, 핀을 유효하게 활용할 수 있는 효과가 있다.In addition, the number of input pins and their roles, and the number of output pins and their roles can be freely set by commands using simple software that combines a plurality of input / output tasks that realize basic input / output functions. It works.
클록신호 ψ1,ψ2가 CPU(200)의 메모리사이클이 아니라, 머신사이클을 이용함으로써 더욱 고속화할 수 있고, 싱글칩 마이크로콤퓨터로서의 효과가 있다.The clock signals? 1 and? 2 can be further speeded up by using a machine cycle instead of the memory cycle of the CPU 200, and there is an effect as a single chip microcomputer.
기본적인 입출력기능을 실현하는 입출력타스크를 복수개 조합한 간단한 소프트웨어로 입출력처리의 기능을 설정할 수 있으며, 시스템으로서의 자유도를 가질 수 있다.Simple software that combines a plurality of input / output tasks that realize the basic input / output function can be used to set the function of the input / output processing, and can have a degree of freedom as a system.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019910003060A KR920001615B1 (en) | 1984-11-02 | 1991-02-26 | Micro computer |
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP84-230202 | 1984-11-02 | ||
JP59230202A JPH06103507B2 (en) | 1984-11-02 | 1984-11-02 | Pulse input / output processor and microcomputer using the same |
KR1019850008026A KR920008070B1 (en) | 1984-11-02 | 1985-10-30 | Microcomputer |
KR1019910003060A KR920001615B1 (en) | 1984-11-02 | 1991-02-26 | Micro computer |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019850008026A Division KR920008070B1 (en) | 1984-11-02 | 1985-10-30 | Microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
KR920001615B1 true KR920001615B1 (en) | 1992-02-20 |
Family
ID=27331622
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019910003060A KR920001615B1 (en) | 1984-11-02 | 1991-02-26 | Micro computer |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR920001615B1 (en) |
-
1991
- 1991-02-26 KR KR1019910003060A patent/KR920001615B1/en not_active IP Right Cessation
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR920008070B1 (en) | Microcomputer | |
US4591979A (en) | Data-flow-type digital processing apparatus | |
EP0409285B1 (en) | Method and apparatus for data transfer between processor elements | |
US4371924A (en) | Computer system apparatus for prefetching data requested by a peripheral device from memory | |
JPS63291134A (en) | Logically integrated circuit | |
US5089955A (en) | Programmable counter/timer device with programmable registers having programmable functions | |
US5784624A (en) | Multiple asynchronous event arbitrator | |
KR920001615B1 (en) | Micro computer | |
US3644895A (en) | Buffer store arrangement for obtaining delayed addressing | |
US5724399A (en) | Timer device | |
US4888685A (en) | Data conflict prevention for processor with input/output device | |
KR910002930B1 (en) | Apparatus for processing input/output pulses for use in microcomputers | |
US5826063A (en) | Apparatus and method for programming the setup, command and recovery time periods within a transaction cycle | |
US20220391336A1 (en) | Semiconductor device | |
JP2561308B2 (en) | Data stacking device | |
JP3630350B2 (en) | Memory data comparison method | |
JP2870812B2 (en) | Parallel processor | |
SU1539787A1 (en) | Multichannel processor-to-subscribers interface | |
SU1283780A1 (en) | Interface for linking microcomputer with peripheral unit | |
RU2023291C1 (en) | Device for distribution of jobs in terminal network | |
JP2669028B2 (en) | Command register circuit | |
JP2003036248A (en) | Small scale processor to be used for single chip microprocessor | |
SU907550A1 (en) | Variable priority controller | |
JP3388509B2 (en) | Data processing device | |
SU1439605A1 (en) | Processor to storage interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A107 | Divisional application of patent | ||
A201 | Request for examination | ||
G160 | Decision to publish patent application | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20041112 Year of fee payment: 14 |
|
EXPY | Expiration of term |