KR0174853B1 - Asynchronous Serial Communication Transmit / Receive Device Between Two Processors Using Other Memory - Google Patents

Asynchronous Serial Communication Transmit / Receive Device Between Two Processors Using Other Memory Download PDF

Info

Publication number
KR0174853B1
KR0174853B1 KR1019950009100A KR19950009100A KR0174853B1 KR 0174853 B1 KR0174853 B1 KR 0174853B1 KR 1019950009100 A KR1019950009100 A KR 1019950009100A KR 19950009100 A KR19950009100 A KR 19950009100A KR 0174853 B1 KR0174853 B1 KR 0174853B1
Authority
KR
South Korea
Prior art keywords
register
signal
data
processor
address
Prior art date
Application number
KR1019950009100A
Other languages
Korean (ko)
Other versions
KR960038645A (en
Inventor
김영구
김재곤
Original Assignee
김주용
현대전자산업주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 김주용, 현대전자산업주식회사 filed Critical 김주용
Priority to KR1019950009100A priority Critical patent/KR0174853B1/en
Priority to US08/634,020 priority patent/US5748887A/en
Priority to JP8096824A priority patent/JP2763871B2/en
Priority to CN96104639A priority patent/CN1060279C/en
Publication of KR960038645A publication Critical patent/KR960038645A/en
Application granted granted Critical
Publication of KR0174853B1 publication Critical patent/KR0174853B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)
  • Information Transfer Systems (AREA)
  • Communication Control (AREA)

Abstract

본 발명은 통신 시스템에서 상대방의 메모리를 이용하여 두 프로세서간 비동기 직렬 통신 방법으로 여러가지 모양의 데이터포맷을 전송할 때 사용하는 장치에 관한 것으로, 상대방의 메모리를 이용하여 데이터를 전송할때 웨이트(Wait)방식을 이용하게 된다. 메모리를 이용한 비동기 직렬 통신 방식으로 적은 가닥의 라인으로 구성되어 이에 필요한 드라이브의 감소로 경제적인 효과가 있을 뿐만 아니라, 물리적인 사용의 편리성을 갖고 있으며, 또한 상대방 메모리를 자신의 메모리처럼 사용할 수 있는 병렬 통신 방법의 논리적인 편리성을 제공한다.The present invention relates to an apparatus used to transmit various types of data formats by asynchronous serial communication method between two processors in a communication system using a memory of a counterpart, and a wait method when transmitting data using a memory of the counterpart. Will be used. It is an asynchronous serial communication method using memory, which is composed of a small number of lines, which is economical due to the reduction of the required drive, and also has the convenience of physical use, and the other memory can be used as its own memory. It provides the logical convenience of the parallel communication method.

Description

상대방 메모리를 이용한 두 프로세서간 비동기 직렬 통신 송/수신 장치Asynchronous Serial Communication Transmit / Receive Device Between Two Processors Using Other Memory

제1도는 본 발명 상대방 메모리를 이용한 두 프로세서간 비동기 직렬 통신 송/수신 장치의 블럭 구성도.1 is a block diagram of an asynchronous serial communication transmission / reception apparatus between two processors using a counterpart memory of the present invention.

제2도는 상대방 메모리를 이용한 두 프로세서간 비동기 직결 통신 송/수신 장치의 모드설정 어드레스 맵을 나타낸 구조도.2 is a structural diagram showing a mode setting address map of an asynchronous direct communication transmitting / receiving device between two processors using a counterpart memory;

제3도는 제1도의 프로세서B와 본 발명의 장치 사이의 데이터포맷을 나타내는 구조도로,3 is a structural diagram showing the data format between the processor B of FIG. 1 and the apparatus of the present invention;

(a)는 라이트(WRITE)시 TXD 데이터포맷을 나타낸 구조도.(a) is a structural diagram showing the TXD data format when writing.

(b)는 리드(READ)시 TXD 데이터포맷을 나타낸 구조도.(b) is a structural diagram showing the TXD data format at the time of read.

(c)는 모드(MODE)이용시 TXD 데이터포맷을 나타낸 구조도.(c) is a structural diagram showing TXD data format when using MODE.

(d)는 정상상태 일때 RXD 데이터포맷을 나타낸 구조도.(d) shows the structure of RXD data format in steady state.

(e)는 TXD의 패리티 에러시 RXD 데이터포맷을 나타낸 구조도.(e) is a structural diagram showing RXD data format in the case of TXD parity error.

제4도는 제1도의 프로세서A가 프로세서B로 데이터를 쓸 경우 프로세서A와 본 발명 장치와의 사이에서 이루어지는 신호의 타이밍도.4 is a timing diagram of signals made between processor A and the apparatus of the present invention when processor A in FIG. 1 writes data to processor B. FIG.

제5도는 제1도의 프로세서A가 프로세서B의 데이터를 읽을 경우 프로세서A와 본 발명 장치와의 사이에서 이루어지는 신호의 타이밍도이다.FIG. 5 is a timing diagram of signals generated between processor A and the apparatus of the present invention when processor A in FIG. 1 reads data of processor B. FIG.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

1 : 모드레지스터 2 : 어드레스레지스터1: Mode register 2: Address register

3 : 송신데이터레지스터 4 : 웨이트레지스터3: Transmission data register 4: Way register

5 : 제1논리게이트 6 : 제1카운터5: 1st logical gate 6: 1st counter

7 : 제2카운터 8 : 패리티발생기7: second counter 8: parity generator

9 : 제2논리게이트 10 : 병렬/직렬레지스터9: second logic gate 10: parallel / serial register

11 : 직렬/병렬레지스터 12 : 패리티체크레지스터11: Serial / Parallel Register 12: Parity Check Register

13 : 에러패턴검출기 14 : 라인드라이브13: error pattern detector 14: line drive

15 : 라인리시브15: line receive

본 발명은 통신 시스템에서 상대방의 메모리를 이용하여 두 프로세서간 비동기 직렬 통신 방법으로 데이터를 전송할 때 사용하는 장치에 관한 것으로, 상대방의 메모리를 이용할 때의 통신방식으로서는 웨이트(WAIT)방식을 이용하여 두 프로세서간 비동기 직렬 통신 송/수신을 하는 장치에 관한 것이다.The present invention relates to an apparatus used for transmitting data by asynchronous serial communication method between two processors using a memory of a counterpart in a communication system, and using a WAIT as a communication method when using a counterpart's memory. A device for asynchronous serial communication transmission and reception between processors.

종래에는 프로세서간 데이터를 전송할 때, 직렬 통신이나 병렬 통신을 해왔다. 그러나, 직렬 통신의 경우에는 적은 가닥의 라인으로 먼거리까지 데이터를 전송할 수 있는 장점이 있으나, 전송속도의 제한이 있어서, 그 사용이 제한되는 단점이 있었다. 한편, 병렬 통신인 경우에는 전송속도가 직렬 통신보다 빠르고, 그 사용이 편한 반면, 여러가닥의 전선라인이 필요하고, 또 먼거리까지 전송할 때 많은 드라이브가 필요한 단점이 있었다.Conventionally, serial or parallel communication has been performed when transferring data between processors. However, in the case of serial communication, there is an advantage in that data can be transmitted over a long distance with a small number of lines, but there is a disadvantage in that its use is limited due to the limitation of the transmission speed. On the other hand, in the case of parallel communication, the transmission speed is faster than the serial communication, and the use thereof is easy, while there are disadvantages in that many wire lines are required and many drives are required when transmitting at a long distance.

본 발명은 상기와 같은 종래의 문제점을 해결하기 위한 것으로, 병렬 통신처럼 상대방 프로세서의 원하는 어드레스의 데이터를 쓰거나 읽을 수 있고, 또 직렬 통신처럼 적은 가닥의 라인과 적은 수의 드라이브가 필요하고 먼 거리까지 데이터를 전송할 수 있도록 한 것이다.The present invention is to solve the above-mentioned conventional problems, it is possible to write or read the data of the desired address of the counterpart processor, such as parallel communication, and also requires a small number of lines and a small number of drives, such as serial communication to a long distance The data can be transferred.

이하 도면을 이용하여 상세히 설명하면, 제1도는 본 발명 상대방 메모리를 이용한 두 프로세서간 비동기 직렬 통신 송/수신 장치의 블럭 구성도로, 모드레지스터(1)와, 어드레스레지스터(2)와, 송신데이터레지스터(3)와, 웨이트레지스터(4)와, 제1논리게이트(5)와, 제1카운터(6)와, 제2카운터(7)와, 패리티 발생기(8)와, 제2논리게이트(9)와, 병렬/직렬레지스터(10)와, 직렬/병렬레지스터(11)와, 패리티체크레지스터(12)와, 에러패턴검출기(13)와, 라인드라이브(14)와, 라인리시브(15)를 포함하여 구성한다.1 is a block diagram of an asynchronous serial communication transmitting / receiving device between two processors using a counterpart memory of the present invention. The mode register 1, the address register 2, and the transmission data register are shown in FIG. (3), the wait register (4), the first logic gate (5), the first counter (6), the second counter (7), the parity generator (8), the second logic gate (9) ), Parallel / serial register 10, serial / parallel register 11, parity check register 12, error pattern detector 13, line drive 14, and line receive 15. It is configured to include.

즉, 프로세서B와 데이터 송/수신을 위한 칩선택신호(/CS), 리드신호(/RD), 라이트신호(/WR), 어드레스신호(ADDRESS), 데이터신호(DATA), CPU클럭신호(CPUCLK)등을 선택적으로 출력하고, 리셋신호(/RESET), 웨이트신호(/WAIT), 에러신호(/ERR)등을 입력받는 프로세서A와; 상기 프로세서A의 칩선택신호(/CS), 리드신호(/RD), 라이트신호(/WR)를 각각 선택적으로 입력받는 모드레지스터(1), 어드레스레지스터(2), 송신데이터레지스터(3)와; 상기 모드레지스터(1), 어드레스레지스터(2), 송신데이터레지스터(3)에서 출력되는 신호를 외부로부터 공급되는 클럭신호(CLK)에 동기시켜 라인드라이브(14)로 데이터포맷을 전송하는 병렬/직렬레지스터(10)와; 상기 병렬/직렬레지스터(10)로부터 전송된 데이터포맷을 프로세서B로 전송하는 라인드라이브(14)와; 데이터포맷의 최하위 부분에 들어가는 패리티비트를 발생하는 패리티 발생기(8)와; 상기 입력되는 데이터 값을 선택적으로 입력받아 시간지연 및 프로세서A에 리셋신호(/RESET)를 제공하며, 그 값을 제1카운터(6)에 출력하는 웨이트레지스터(4)와; CPU클럭신호를 카운트하여 웨이트신호를 만들어 내는 제1카운터(6)와; 프로세서B의 데이터를 프로세서A로 전송하기 위한 라인리시브(15)와; 상기 라인리시브(15)를 통해 입력된 데이터포맷을 데이터부분과 패리티비트 부분으로 분할하고, 데이터는 데이터라인을 통해 프로세서A로, 패리티비트는 패리티체크레지스터(12)로 출력하는 직렬/병렬레지스터(11)와; 상기 직렬/병렬레지스터(11)로부터 전송된 패리티비트에 오류가 발생하였나를 검색하여 제2논리게이트(9)로 출력하는 패리티체크레지스터(12)와; 상기 라인리시브(15)를 통해 입력되는 데이터포맷에 에러가 발생하였나를 체크하는 에러패턴검출기(13)와; 상기 패리티체크레지스터(12)와, 에러패턴검출기(13)에서 에러신호가 전송되면 이값을 논리연산하여 에러신호(/ERR)를 프로세서A로 출력하는 제2논리게이트(9)와; 상기 모드레지스터(1)와, 웨이트레지스터(4)의 출력신호와 CPU클럭신호(CPUCLK)를 입력받아 제1논리게이트(5)에 출력하는 제2카운터(7)와; 상기 제1카운터(6)와, 제2카운터(7)의 입력을 논리연산하여 웨이트신호(/WAIT)를 프로세서A에 출력하는 제1논리게이트(5)를 포함하여 구성됨을 특징으로 한다.That is, the processor B and the chip select signal (/ CS), read signal (/ RD), write signal (/ WR), address signal (ADDRESS), data signal (DATA), and CPU clock signal (CPUCLK) for data transmission / reception. Processor A for selectively outputting a signal, and receiving a reset signal (/ RESET), a weight signal (/ WAIT), an error signal (/ ERR), or the like; A mode register 1, an address register 2, a transmission data register 3 and a chip register signal / CS, a read signal / RD and a write signal / WR of the processor A ; Parallel / serial for transmitting the data format to the line drive 14 in synchronization with the clock signal CLK supplied from the mode register 1, the address register 2 and the transmission data register 3 from the outside. Register 10; A line drive 14 for transmitting the data format transmitted from the parallel / serial register 10 to the processor B; A parity generator 8 for generating parity bits falling into the lowest part of the data format; A wait register (4) for selectively receiving the input data value and providing a time delay and a reset signal (/ RESET) to the processor A, and outputting the value to the first counter 6; A first counter 6 that counts the CPU clock signal to produce a weight signal; A line receiver 15 for transmitting the data of the processor B to the processor A; A serial / parallel register for dividing the data format input through the line receive 15 into a data portion and a parity bit portion, and outputting data to the processor A and parity bits to the parity check register 12 through the data line. 11); A parity check register 12 which detects whether an error has occurred in the parity bit transmitted from the serial / parallel register 11 and outputs it to the second logic gate 9; An error pattern detector (13) for checking whether an error has occurred in the data format input through the line receive (15); A second logic gate 9 for logically calculating this value and outputting an error signal / ERR to the processor A when an error signal is transmitted from the parity check register 12 and the error pattern detector 13; A second counter 7 which receives the mode register 1, the output signal of the wait register 4 and the CPU clock signal CPUCLK, and outputs them to the first logic gate 5; And a first logic gate 5 which logically performs an input of the first counter 6 and the second counter 7 and outputs a weight signal / WAIT to the processor A.

제2도는 상대방 메모리를 이용한 두 프로세서간 비동기 직렬 통신 송/수신 장치의 모드설정 어드레스 맵을 나타낸 구조도로서, 제1도의 모드레지스터(1)에 입력되는 어드레스와, 리드할때의 신호(/RD)와, 라이트할때의 신호(/WR)에 의해 정해지는 모드 어드레스 영역으로, 즉, 송신(/WR=0) 및 수신(/RD=0)의 데이터 영역(21)과, 웨이트레지스터영역(22)과, 모드 0영역(23-0)에서 모드 n영역(23-n)까지 영역으로 구성된다.FIG. 2 is a structural diagram showing a mode setting address map of an asynchronous serial communication transmitting / receiving device between two processors using a counterpart memory. The address inputted to the mode register 1 of FIG. 1 and the signal at read time (/ RD) are shown in FIG. And the mode address area determined by the signal at write (/ WR), that is, the data area 21 of the transmission (/ WR = 0) and the reception (/ RD = 0) and the wait register area 22. ) And an area from the mode 0 area 23-0 to the mode n area 23-n.

제3도는 제1도의 프로세서B와 본 발명 상대방 메모리를 이용한 두 프로세서간 비동기 직렬 통신 송/수신장치와의 데이터통신을 위한 데이터포맷을 나타내는 구조도로, (A)는 라이트(WRITE)시 라인드라이브신호(TXD)의 데이터포맷을 나타낸 구조도이며, 이는 프로세서A에서 처리된 데이터를 프로세서B의 메모리에 저장하고자 할때 전송되는 데이터포맷이다.3 is a structural diagram showing the data format for data communication between the processor B of FIG. 1 and the asynchronous serial communication transmitting / receiving apparatus between two processors using the counterpart memory of the present invention, and (A) shows a line drive signal during write. (TXD) is a structural diagram showing the data format, which is a data format transmitted when the data processed by the processor A is to be stored in the memory of the processor B.

한편, (B)는 리드(READ)시 라인드라이브신호(TXD)의 데이터포맷을 나타낸 구조도이며, 이는 프로세서B의 메모리에 저장되어 있는 데이터를 리드하기 위해 프로세서B 메모리의 어드레스를 지정해 주기 위한 데이터포맷이다. 한편, (C)는 모드(MODE)이용시 라인드라이브신호(TXD)의 데이터포맷을 나타낸 구조도이며, 이는 프로세서A가 사용하고자 하는 모드를 지정하기 위한 데이터포맷이다. 한편, (D)는 정상상태일 때 라인리시브(RXD)의 데이터포맷을 나타낸 구조도이며, 이는 프로세서A에서 요구한 어드레스의 데이터를 프로세서B에서 출력한 데이터포맷이다. 한편, (E)는 라인드라이브신호(TXD)의 패리티 에러시 라인리시브(RXD) 데이터포맷을 나타내는 구조도이다.On the other hand, (B) is a structural diagram showing the data format of the line drive signal (TXD) at the time of the read (READ), which is a data format for specifying the address of the processor B memory to read data stored in the memory of the processor B to be. On the other hand, (C) is a structural diagram showing the data format of the line drive signal (TXD) when using the mode (MODE), which is a data format for specifying the mode to be used by the processor A. On the other hand, (D) is a structural diagram showing the data format of the line receive (RXD) in the steady state, which is the data format output from the processor B the data of the address requested by the processor A. On the other hand, (E) is a structural diagram showing the line receive (RXD) data format at the time of the parity error of the line drive signal TXD.

즉, 상기 각 경우에 있어서 최초 스타트 비트 입력 후 (a)도와 같이 라이트(WRITE)시 라인드라이브신호(TXD)의 데이터포맷은 모드, 어드레스, 데이터, 패리티비트가 순서적으로 나타나고, (b)도와 같이 리드(READ)시 라인드라이브신호(TXD)의 데이터포맷은 모드, 어드레스, 패리티비트가 순서적으로 나타난다.That is, in each of the above cases, the data format of the line drive signal TXD in the write mode after the initial start bit input as shown in (a) is shown in order of mode, address, data, and parity bits. Likewise, the mode, address, and parity bits of the line drive signal TXD are sequentially displayed during the read operation.

한편, (c)도와 같이 모드(MODE)이용시 라인드라이브신호(TXD)의 데이터포맷은 모드, 패리티비트가 순서적으로 나타나고, (d)도와 같이 정상상태 일 때 라인리시브(RXD)의 데이터포맷은 데이터, 패리티비트가 순서적으로 나타나며, (e)도와 같이 라인드라이브신호(TXD)의 패리티 에러시 라인리시브(RXD)의 데이터포맷은 에러패턴이 나타난다.On the other hand, as shown in (c), when the mode is used, the data format of the line drive signal TXD is displayed in the order of mode and parity bits.In the case of (d), the line format of the RXD is Data and parity bits appear sequentially, and as shown in (e), an error pattern appears in the data format of the line receive RXD when a parity error of the line drive signal TXD occurs.

제4도는 제1도의 프로세서A가 프로세서B로 데이터를 쓸 경우 프로세서A와 본 발명 상대방 메모리를 이용한 두 프로세서간 비동기 직렬 통신 송/수신 장치와의 사이에서 이루어지는 신호들의 타이밍도이다. CPU클럭신호(CPUCLK)의 변화에 따른 칩선택신호(/CS), 라이트신호(/WR), 어드레스신호(ADDRESS), 데이터신호(DATA), 웨이트신호(/WAIT)의 레벨 변화를 나타내었으며, 여기서 어드레스신호(ADDRESS)와 데이터신호(DATA)의 타이밍도에서 중앙하단부의 직사각형으로 표현되는 부분은 각각 유용한 어드레스 영역과 유용한 데이터 영역을 나타낸다.FIG. 4 is a timing diagram of signals generated between processor A and the asynchronous serial communication transmission / reception apparatus using the counterpart memory of the present invention when processor A of FIG. 1 writes data to processor B. FIG. Changes in the level of the chip select signal (/ CS), the write signal (/ WR), the address signal (ADDRESS), the data signal (DATA) and the weight signal (/ WAIT) according to the change of the CPU clock signal (CPUCLK) are shown. In the timing diagrams of the address signal ADDRESS and the data signal DATA, portions represented by the rectangles in the lower center of the address represent useful address areas and useful data areas, respectively.

제5도는 제1도의 프로세서A가 프로세서B의 데이터를 리드할 경우 프로세서A와 본 발명 상대방 메모리를 이용한 두 프로세서간 비동기 직렬 통신 송/수신장치와의 사이에서 이루어지는 신호들의 타이밍도로, 클럭신호(CLK)의 변화에 따른 칩선택신호(/CS), 리드신호(/RD), 어드레스신호(ADDRESS), 데이터신호(DATA), 라인리시브신호(RXD), 웨이트신호(/WAIT)의 레벨 변화를 나타내었다.FIG. 5 is a timing diagram of signals generated between processor A and an asynchronous serial communication transmitter / receiver between two processors using the counterpart memory of the present invention when processor A of FIG. ), The level change of the chip selection signal / CS, read signal / RD, address signal ADDRESS, data signal DATA, line receive signal RXD, and weight signal / WAIT It was.

제1도의 프로세서A에서 프로세서B로 데이터를 라이트할 경우, 먼저 프로세서A에서 제4도의 타이밍도처럼 칩선택신호(/CS), 라이트신호(/WR)의 상태가 '로우'상태가 되고, 어드레스가 제2도의 송/수신 데이터 영역(21) 가운데 있을때에 모드레지스터(1)에 라이트모드(WRITE MODE)값이 입력된다. 동시에 어드레스값이 어드레스레지스터(2)에 입력되고, 데이터라인에 있는 데이터값이 송신데이터레지스터(3)에 입력된다.When writing data from the processor A to the processor B of FIG. 1, first, the state of the chip select signal / CS and the write signal / WR becomes 'low' state as shown in the timing diagram of FIG. Is in the transmit / receive data area 21 of FIG. 2, the WRITE MODE value is input to the mode register 1. At the same time, the address value is input to the address register 2, and the data value in the data line is input to the transmission data register 3.

만일, 프로세서A의 CPU속도가 본 발명 상대방 메모리를 이용한 두 프로세서간 비동기 직렬 통신 송/수신장치의 억세스 타이밍보다 빠를때에는 웨이트할 CPU클럭신호(CPUCLK)의 갯수를 제2도의 웨이트레지스터영역(22)으로 하고, 제1도의 웨이트레지스터(4)에 입력한다. 이 웨이트레지스터(4)의 리셋값은 이 레지스터의 최대값이 된다.If the CPU speed of processor A is faster than the access timing of the asynchronous serial communication transmitter / receiver between the two processors using the counterpart memory of the present invention, the number of CPU clock signals CPUCLK to be weighted is shown in the wait register region 22 of FIG. It inputs to the wait register 4 of FIG. The reset value of this wait register 4 becomes the maximum value of this register.

이 웨이트레지스터(4)값 만큼 어드레스값과 데이터값이 지연되어 어드레스레지스터(2), 송신데이터레지스터(3)에 입력된다.The address value and the data value are delayed by the value of the wait register 4 and input to the address register 2 and the transmission data register 3.

모드레지스터(1), 어드레스레지스터(2), 송신데이터레지스터(3)로 입력된 정보들은 병렬/직렬레지스터(10)에 의해 제3도에 도시된 라이트(WRITE)시 라인드라이브신호(TXD)의 데이터포맷처럼 모드, 어드레스, 데이터, 패리티비트의 순으로 구성되어 레지스터의 병렬값이 직렬값 라인드라이브(TXD)가 되어 프로세서B로 출력된다.Information inputted to the mode register 1, the address register 2, and the transmission data register 3 is inputted by the parallel / serial register 10 to the line drive signal TXD at the time of the write WRITE shown in FIG. Like the data format, it consists of the mode, address, data, and parity bits, and the parallel value of the register becomes a serial value line drive (TXD) and is output to the processor B.

이때, 병렬/직렬레지스터(10)에 입력되는 정보들은 패리티 발생기(8)에서 발생된 패리티비트를 데이터포맷의 최하위부분에 덧붙이게 된다.At this time, the information input to the parallel / serial register 10 adds the parity bit generated by the parity generator 8 to the lowest part of the data format.

상기 병렬/직렬레지스터(10)에서 출력된 데이터는 먼거리까지 드라이브하기 위해 라인드라이브(14)를 사용하여 보낸다.The data output from the parallel / serial register 10 is sent using the line drive 14 to drive a long distance.

한편, 프로세서A가 프로세서B의 메모리에 저장되어 있는 데이터를 리드하고자할 경우, 먼저 제5도에 도시된 타이밍도에서 처럼 칩선택신호(/CS)와, 리드신호(/RD)의 상태가 '로우'상태가 되고, 어드레스값이 제2도의 송/수신 데이터 영역가운데 있을 때에 모드레지스터(1)에 리드모드(READ MODE)값이 입력된다. 이때 동일한 순간에 어드레스 라인에 있는 값은 어드레스레지스터(2)에 입력된다.On the other hand, when the processor A wants to read data stored in the memory of the processor B, first, as shown in the timing diagram of FIG. 5, the state of the chip select signal / CS and the read signal / RD is' The read mode value is input to the mode register 1 when the address is in the low 'state and the address value is in the middle of the transmit / receive data area of FIG. At this time, the value in the address line is input to the address register 2.

이때 웨이트신호는 웨이트레지스터(4)값과는 무관하게 '로우'상태로 하고, 제5도의 라인리시브신호(RXD)가 라인리시브(15)를 통해 입력된다. 상기 라인리시브신호(RXD)가 제3도의 정상상태일 때의 데이터포맷을 가지게 되면 이때의 스타트비트를 제1도의 제2카운터(7)에 입력한다. 상기 라인리시브신호(RXD)가 직렬/병렬레지스터(11)에 입력되어 병렬데이터가 직렬데이터로 분리될 때면 /WAIT 신호를 '로우'에서 '하이'로 만든다. 이때 데이터라인에 실린 데이터를 프로세서A가 읽어가게 된다.At this time, the weight signal is set to a 'low' state regardless of the value of the weight register 4, and the line receive signal RXD of FIG. 5 is input through the line receive 15. When the line receive signal RXD has a data format in the normal state of FIG. 3, the start bit at this time is input to the second counter 7 of FIG. When the line receive signal RXD is input to the serial / parallel register 11 and parallel data is separated into serial data, the / WAIT signal is made 'low' to 'high'. At this time, the processor A reads the data on the data line.

만약, 직렬/병렬레지스터(11)에서 출력된 병렬데이터를 패리티체크레지스터(12)에서 패리티를 체크했을 때, 패리티 에러가 발생하게 되면 제2논리게이트(9)를 통해 에러신호(/ERR)를 '로우'로 만든다.If a parity error occurs when the parity check register 12 checks the parallel data output from the serial / parallel register 11, an error signal / ERR is transmitted through the second logic gate 9. Make it low.

그리고, 라인리시브(15)에서 출력된 라인리시브신호(RXD)가 에러 패턴을 가질 때 에러검출기(13)를 통해 에러를 체크하고, 제2논리게이트(9)를 통해 에러신호(/ERR)를 '로우'로 만들어 준다.When the line receive signal RXD output from the line receive 15 has an error pattern, an error is checked through the error detector 13, and the error signal / ERR is received through the second logic gate 9. Make it low.

위의 리드(READ) 또는 라이트(WRITE)시 이외에 다른 모드를 사용할 때는 제3도의 모드(MODE) 이용시 TXD(C도)의 데이터포맷을 보낸다. 이는 상기 라이트모드(WRITE MODE)와 비슷하고, 어드레스 영역은 제2도의 모드 영역중 원하는 모드영역이다.When using a mode other than the above READ or WRITE, the data format of TXD (C) is sent when the MODE of FIG. 3 is used. This is similar to the write mode, and the address area is a desired mode area of the mode areas of FIG.

상술한 바와 같이 본 발명은 메모리를 이용한 비동기 직렬 통신 방식으로 적은 가닥의 라인으로 구성되어, 이에 필요한 드라이브의 감소로 경제적인 효과가 있을 뿐만 아니라, 이 밖에도 물리적인 사용의 편리성을 갖고 있다. 또, 상대방 메모리를 자신의 메모리처럼 사용할 수 있는 병렬 통신 방법의 논리적인 편리성을 제공한다.As described above, the present invention is composed of a small number of lines in the asynchronous serial communication method using a memory, not only economical effect by reducing the drive required for this, but also has the convenience of physical use. In addition, it provides the logical convenience of the parallel communication method that can use the counterpart memory as its own memory.

Claims (5)

프로세서B와 데이터 송/수신을 위한 칩선택신호(/CS), 리드신호(/RD), 라이트신호(/WR), 어드레스신호(ADDRESS), 데이터신호(DATA), CPU클럭신호(CPUCLK)를 선택적으로 출력하고, 리셋신호(/RESET), 웨이트신호(/WAIT), 에러신호(/ERR)등을 입력받는 프로세서A와; 상기 프로세서A의 칩선택신호(/CS), 리드신호(/RD), 라이트신호(/WR)를 각각 선택적으로 입력받는 모드레지스터(1), 어드레스레지스터(2), 송신데이터레지스터(3)와; 상기 모드레지스터(1), 어드레스레지스터(2), 송신데이터레지스터(3)에서 출력되는 신호를 외부로부터 공급되는 클럭신호(CLK)에 동기시켜 라인드라이브(14)로 데이터포맷을 전송하는 병렬/직렬레지스터(10)와; 상기 병렬/직렬레지스터(10)로부터 전송된 데이터포맷을 프로세서B로 전송하는 라인드라이브(14)와; 데이터포맷의 최하위 부분에 들어가는 패리티비트를 발생하는 패리티 발생기(8)와; 상기 입력되는 데이터 값을 선택적으로 입력받아 시간지연 및 프로세서A에 리셋신호(/RESET)를 제공하며, 그 값을 제1카운터(6)에 출력하는 웨이트레지스터(4)와; CPU클럭신호를 카운트하여 웨이트신호를 만들어 내는 제1카운터(6)와; 프로세서B의 데이터를 프로세서A로 전송하기 위한 라인리시브(15)와; 상기 라인리시브(15)를 통해 입력된 데이터포맷을 데이터부분과 패리티비트 부분으로 분할하고, 데이터는 프로세서A로, 패리티비트는 패리티체크레지스터(12)로 출력하는 직렬/병렬레지스터(11)와; 상기 직렬/병렬레지스터(11)로부터 전송된 패리티비트에 오류가 발생하였나를 검색하여 제2논리게이트로 출력하는 패리티체크레지스터(12)와; 상기 라인리시브(15)를 통해 입력되는 데이터포맷에 에러가 발생하였나를 체크하는 에러패턴검출기(13)와; 패리티체크레지스터(12)와, 에러패턴검출기(13)에서 에러신호가 전송되면 이값을 논리연산하여 에러신호(/ERR)를 프로세서A로 출력하는 제2논리게이트(9)와; 상기 모드레지스터(1)와, 웨이트레지스터(4)에서 출력되는 신호와 CPU클럭신호(CPUCLK)를 입력받아 제1논리게이트(5)로 출력하는 제2카운터(7)와; 상기 제1카운터(6)와, 제2카운터(7)에서 출력되는 신호를 논리연산하여 웨이트신호(/WAIT)를 프로세서A로 출력하는 제1논리게이트(5)를 포함하여 구성함을 특징으로 하는 상대방 메모리를 이용한 두 프로세서간 비동기 직렬 통신 송/수신 장치.Chip select signal (/ CS), read signal (/ RD), write signal (/ WR), address signal (ADDRESS), data signal (DATA), and CPU clock signal (CPUCLK) A processor A which selectively outputs and receives a reset signal / RESET, a weight signal / WAIT, an error signal / ERR, and the like; A mode register 1, an address register 2, a transmission data register 3 and a chip register signal / CS, a read signal / RD and a write signal / WR of the processor A ; Parallel / serial for transmitting the data format to the line drive 14 in synchronization with the clock signal CLK supplied from the mode register 1, the address register 2 and the transmission data register 3 from the outside. Register 10; A line drive 14 for transmitting the data format transmitted from the parallel / serial register 10 to the processor B; A parity generator 8 for generating parity bits falling into the lowest part of the data format; A wait register (4) for selectively receiving the input data value and providing a time delay and a reset signal (/ RESET) to the processor A, and outputting the value to the first counter 6; A first counter 6 that counts the CPU clock signal to produce a weight signal; A line receiver 15 for transmitting the data of the processor B to the processor A; A serial / parallel register 11 for dividing the data format input through the line receive 15 into a data portion and a parity bit portion, outputting data to processor A and parity bits to a parity check register 12; A parity check register (12) for detecting whether an error has occurred in the parity bit transmitted from the serial / parallel register (11) and outputting it to a second logic gate; An error pattern detector (13) for checking whether an error has occurred in the data format input through the line receive (15); A parity check register 12 and a second logic gate 9 for outputting an error signal / ERR to the processor A by logically calculating the value when an error signal is transmitted from the error pattern detector 13; A second counter 7 which receives the mode register 1, the signal output from the wait register 4 and the CPU clock signal CPUCLK and outputs the same to the first logic gate 5; And a first logic gate 5 for outputting a weight signal / WAIT to the processor A by performing a logic operation on the signal output from the first counter 6 and the second counter 7. Asynchronous serial communication transmitter / receiver between two processors using the other's memory. 제1항에 있어서, 상기 프로세서A에서 프로세서B로 데이터를 라이트할 경우는 프로세서A에서 칩선택신호(/CS)와, 라이트신호(/WR)를 '로우'상태로 만들고, 어드레스(ADDRESS)값이 송/수신 데이터 영역가운데 있을 때에 모드레지스터(1)에 라이트(WRITE) 모드값을 입력하고, 한편, 어드레스 라인에 있는 어드레스값을 어드레스레지스터(2)에 입력하며, 데이터라인에 있는 데이터값은 송신데이터레지스터(3)에 입력한후, 프로세서A의 CPU속도가 악세스 타이밍보다 빠를때에는 웨이트할 CPU클럭신호(CPUCLK)의 갯수를 웨이트레지스터 영역으로 하여 웨이트레지스터(4)에 입력하고, 웨이트레지스터(4)의 리셋값이 최대값이 되도록 하며, 상기 웨이트레지스터(4)값 만큼 지연되어 어드레스레지스터(2), 송신데이터레지스터(3)에 입력되면, 병렬/직렬레지스터(10)에서 모드, 어드레스, 데이터, 패리티비트순의 데이터포맷 형식의 직렬값 라인드라이브의 신호(TXD)가 되어 출력되도록 함을 특징으로 하는 상대방 메모리를 이용한 두 프로세서간 비동기 직렬 통신 송/수신 장치.The method of claim 1, wherein when writing data from the processor A to the processor B, the chip select signal / CS and the write signal / WR are set to 'low' state in the processor A, and the address value is determined. When the transmit / receive data area is in the middle, the WRITE mode value is input to the mode register 1, while the address value on the address line is input to the address register 2, and the data value on the data line is After inputting to the transmission data register 3, when the CPU speed of the processor A is faster than the access timing, the number of CPU clock signals CPUCLK to be weighted is input to the wait register 4 as the wait register area, and the wait register ( When the reset value of 4) becomes the maximum value and is delayed by the value of the wait register 4 and input to the address register 2 and the transmission data register 3, the mode / adjustment in the parallel / serial register 10 is performed. An asynchronous serial communication transmission / reception device between two processors using a counterpart memory, characterized in that it is output as a signal (TXD) of a serial value line drive in a data format in the order of address, data, and parity bits. 제2항에 있어서, 상기 병렬/직렬레지스터(10)에 들어오는 입력 데이터들은 동시에 패리티발생기(8)로도 입력되고, 상기 패리티발생기(8)에서는 패리티비트를 만들어 병렬/직렬레지스터(10)에 입력하고, 병렬/직렬레지스터(10)에서 출력된 데이터포맷을 먼거리까지 전송하기 위해 라인드라이브(14)를 사용하여 프로세서B로 전송함을 특징으로 하는 상대방 메모리를 이용한 두 프로세서간 비동기 직렬 통신 송/수신 장치.3. The input data of the parallel / serial register (10) is simultaneously input to the parity generator (8), and the parity generator (8) generates a parity bit and inputs it to the parallel / serial register (10). Asynchronous serial communication between the two processors using the other party's memory, characterized in that for transmitting the data format output from the parallel / serial register 10 to a long distance to the processor B using a line drive 14 . 제1항에 있어서, 프로세서A가 프로세서B의 데이터를 리드하고자할 경우는 프로세서A에서 칩선택신호(/CS)와 리드신호(/RD)를 '로우'상태로 만들고, 어드레스값이 송/수신 데이터 영역가운데 있을때에 모드레지스터(1)에 리드모드(READ)값을 입력하고, 동시에 어드레스 라인에 있는 어드레스값을 어드레스레지스터(2)에 입력하며, 웨이트신호는 웨이트레지스터(4)값과는 무관하게 '로우'로 하여, 라인리시브신호(RXD)가 라인리시브(15)를 통해 입력되도록 하고, 라인리시브신호(RXD)가 정상상태 일 때 스타트비트를 제2카운트(7)에 입력하여, 상기 라인리시브신호(RXD)가 직렬/병렬레지스터(11)에 입력되어 병렬데이터가 모두 출력될 때 웨이트신호(/WAIT)를 '로우'에서 '하이'로 만들어서, 데이터라인에 실린값을 프로세서A가 리드하도록 함을 특징으로 하는 상대방 메모리를 이용한 두 프로세서간 비동기 직렬 통신 송/수신 장치.The processor A of claim 1, wherein when the processor A intends to read the data of the processor B, the processor A sets the chip select signal / CS and the read signal / RD to a 'low' state, and an address value is transmitted / received. When the data area is in the middle, the read mode READ value is input to the mode register 1 and the address value on the address line is input to the address register 2 at the same time. The weight signal is independent of the wait register 4 value. In this case, the line receive signal RXD is inputted through the line receive 15, and the start bit is input to the second count 7 when the line receive signal RXD is in the normal state. When the line receive signal RXD is input to the serial / parallel register 11 and all the parallel data is output, the weight signal / WAIT is made from 'low' to 'high'. Lead to Asynchronous serial communication transmission / reception device between the two processors using a Li. 제4항에 있어서, 상기 직렬/병렬레지스터(11)에서 출력된 병렬데이터가 패리티체크레지스터(12)를 통해 패리티비트를 체크했을 때, 상기 패리티비트에 에러가 발생하게 되면 제2논리게이트(9)를 통해 에러신호(/ERR)를 '로우'로 만들고, 라인리시브(15)에서 출력된 라인리시브신호가 에러패턴을 가질 때 에러검출기(13)를 통해 에러를 체크하고, 제2논리게이트(9)를 통해 에러신호(/ERR)를 '로우'로 만들어 줌으로서 에러를 검출하도록 함을 특징으로 하는 상대방 메모리를 이용한 두 프로세서간 비동기 직렬 통신 송/수신 장치.The second logic gate according to claim 4, wherein when an error occurs in the parity bit when the parallel data output from the serial / parallel register 11 checks the parity bit through the parity check register 12. The error signal / ERR is set to 'low', and when the line receive signal output from the line receive 15 has an error pattern, the error is checked through the error detector 13, and the second logic gate 9) Asynchronous serial communication transmitting / receiving device between two processors using a counterpart memory characterized by detecting an error by making an error signal (/ ERR) low.
KR1019950009100A 1995-04-18 1995-04-18 Asynchronous Serial Communication Transmit / Receive Device Between Two Processors Using Other Memory KR0174853B1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1019950009100A KR0174853B1 (en) 1995-04-18 1995-04-18 Asynchronous Serial Communication Transmit / Receive Device Between Two Processors Using Other Memory
US08/634,020 US5748887A (en) 1995-04-18 1996-04-17 Inter-processor asynchronous serial communication transmission/reception apparatus using each other's memories
JP8096824A JP2763871B2 (en) 1995-04-18 1996-04-18 Transmitter / receiver for asynchronous serial communication between two processors using counterpart memory
CN96104639A CN1060279C (en) 1995-04-18 1996-04-18 Inter-processor asynchronous serial communication transmissoin/reception apparatus using each other's memories

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950009100A KR0174853B1 (en) 1995-04-18 1995-04-18 Asynchronous Serial Communication Transmit / Receive Device Between Two Processors Using Other Memory

Publications (2)

Publication Number Publication Date
KR960038645A KR960038645A (en) 1996-11-21
KR0174853B1 true KR0174853B1 (en) 1999-04-01

Family

ID=19412432

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950009100A KR0174853B1 (en) 1995-04-18 1995-04-18 Asynchronous Serial Communication Transmit / Receive Device Between Two Processors Using Other Memory

Country Status (4)

Country Link
US (1) US5748887A (en)
JP (1) JP2763871B2 (en)
KR (1) KR0174853B1 (en)
CN (1) CN1060279C (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6332173B2 (en) * 1998-10-31 2001-12-18 Advanced Micro Devices, Inc. UART automatic parity support for frames with address bits
KR100465157B1 (en) * 2002-10-16 2005-01-13 (주)씨앤에스 테크놀로지 Asynchronous interfacing apparatus
US20060031596A1 (en) * 2004-08-05 2006-02-09 International Business Machines Corporation Method and apparatus for providing an alternate route to system memory
US7243173B2 (en) * 2004-12-14 2007-07-10 Rockwell Automation Technologies, Inc. Low protocol, high speed serial transfer for intra-board or inter-board data communication
US7792196B2 (en) * 2004-12-28 2010-09-07 Intel Corporation Single conductor bidirectional communication link
US7650561B1 (en) * 2005-07-12 2010-01-19 Seagate Technology Llc Method of switching from parallel to serial MAP detector
US7831754B1 (en) * 2006-10-20 2010-11-09 Lattice Semiconductor Corporation Multiple communication channel configuration systems and methods
CN103425611B (en) * 2013-05-20 2016-05-18 万高(杭州)科技有限公司 For the serial port communication method of metering field

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4377843A (en) * 1979-04-19 1983-03-22 Wescom Switching, Inc. Data distribution interface
GB2101859A (en) * 1981-04-22 1983-01-19 Pitney Bowes Inc Display processor for use in a word processing system
CN1038363A (en) * 1988-06-03 1989-12-27 成都科技大学 The time-sharing communication interface of multi-micro processor system
CN1024963C (en) * 1989-04-04 1994-06-08 横河电机株式会社 Duplex computer system
JP3149518B2 (en) * 1992-04-17 2001-03-26 住友電気工業株式会社 Communication mechanism between in-vehicle electronic control unit and test equipment
US5349611A (en) * 1992-11-13 1994-09-20 Ampex Systems Corporation Recovering synchronization in a data stream

Also Published As

Publication number Publication date
CN1060279C (en) 2001-01-03
JPH09102808A (en) 1997-04-15
US5748887A (en) 1998-05-05
JP2763871B2 (en) 1998-06-11
CN1142637A (en) 1997-02-12
KR960038645A (en) 1996-11-21

Similar Documents

Publication Publication Date Title
US7328399B2 (en) Synchronous serial data communication bus
US5561771A (en) System for transmitting data between systems using selected subsets of plural interconnecting bus lines and including selection of a compatible transmission speed
KR910010315A (en) 2-way data transfer device
GB1507761A (en) Asynchronous communication interface adaptor
KR0174853B1 (en) Asynchronous Serial Communication Transmit / Receive Device Between Two Processors Using Other Memory
KR0174855B1 (en) Asynchronous Serial Communication Transmit / Receive Device Between Two Processors Using Other Memory
US5815673A (en) Method and apparatus for reducing latency time on an interface by overlapping transmitted packets
US7030655B2 (en) Memory interface system
KR100249171B1 (en) Method for detecting error in non-syncronus type data transmit and receive device
US5802595A (en) Serial data transfer apparatus
JP4054394B2 (en) Data communication method and data communication system
JP2912210B2 (en) Asynchronous serial data transmission device
KR0128197Y1 (en) Pulse adding value input circuit of distributed control system
SU1725188A1 (en) Device for input of control program
JPS61270952A (en) Data transmitting system
JPS61150181A (en) First-in first-out system register control system
SU1591030A2 (en) Device for interfacing two computers
SU602934A1 (en) Interface
SU1675888A1 (en) Device to check data on transfer
JPS6049465A (en) Data transfer method between microcomputers
JPH023345B2 (en)
JPH01307329A (en) Reception circuit
JPS61170142A (en) Serial data processing unit
JPS6251544B2 (en)
JPS60237562A (en) Control system for data transmission and reception

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20061031

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee