KR20010106988A - Clock signal controling method of inter integrated circuit control device - Google Patents

Clock signal controling method of inter integrated circuit control device Download PDF

Info

Publication number
KR20010106988A
KR20010106988A KR1020000028115A KR20000028115A KR20010106988A KR 20010106988 A KR20010106988 A KR 20010106988A KR 1020000028115 A KR1020000028115 A KR 1020000028115A KR 20000028115 A KR20000028115 A KR 20000028115A KR 20010106988 A KR20010106988 A KR 20010106988A
Authority
KR
South Korea
Prior art keywords
clock signal
serial clock
serial
data
control
Prior art date
Application number
KR1020000028115A
Other languages
Korean (ko)
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 KR1020000028115A priority Critical patent/KR20010106988A/en
Publication of KR20010106988A publication Critical patent/KR20010106988A/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store
    • G11C7/22Read-write [R-W] timing or clocking circuits; Read-write [R-W] control signal generators or management 
    • G11C7/222Clock generating, synchronizing or distributing circuits within memory device
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store
    • G11C7/10Input/output [I/O] data interface arrangements, e.g. I/O data control circuits, I/O data buffers
    • G11C7/1048Data bus control circuits, e.g. precharging, presetting, equalising

Landscapes

  • Information Transfer Systems (AREA)

Abstract

여기에 개시된 내부 집적 회로 제어 디바이스에서 직렬 클럭 신호를 제어하는 방법은, 직렬 데이터를 송/수신한 후 자동으로 상기 직렬 클럭 신호의 발생을 디세이블시킨다. 그리고, 데이터 레지스터에 저장된 데이터를 독출한 후 상기 직렬 클럭 신호의 발생을 인에이블시킨다. 이러한 방법에 의하면, 인터럽트 신호에 의존하지 않고 자동으로 직렬 클럭 신호 발생이 억제된다. 그러므로, IIC 디바이스를 동작시키기 위해 버스 컨트롤 로직이 인에이블 레벨의 인터럽트 소스 신호를 발생하여, 직렬 클럭 신호 제어 레지스터 내의 제어 비트를 인에이블시키는 별도의 제어가 불필요하다. 더욱이, 인터럽트 디세이블 상태에서 IIC 디바이스를 동작시키는 문제가 전혀 발생되지 않는다.The method of controlling a serial clock signal in the internal integrated circuit control device disclosed herein automatically disables the generation of the serial clock signal after transmitting / receiving serial data. After reading the data stored in the data register, the generation of the serial clock signal is enabled. According to this method, the serial clock signal generation is automatically suppressed without depending on the interrupt signal. Therefore, bus control logic generates an enable level interrupt source signal to operate the IIC device, so that no separate control is needed to enable the control bits in the serial clock signal control register. Moreover, there is no problem of operating the IIC device in an interrupt disable state.

Description

내부 집적 회로 제어 디바이스의 클럭 신호 제어 방법{CLOCK SIGNAL CONTROLING METHOD OF INTER INTEGRATED CIRCUIT CONTROL DEVICE}CLOCK SIGNAL CONTROLING METHOD OF INTER INTEGRATED CIRCUIT CONTROL DEVICE}

본 발명은 내부 집적 회로 제어(inter IC control; IIC) 디바이스에 관한 것으로, 좀 더 구체적으로는 내부 집적 회로 제어 디바이스의 클럭 신호 제어 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an internal integrated circuit control (ICC) device, and more particularly to a method of controlling a clock signal of an internal integrated circuit control device.

IIC 디바이스는 버스에 연결된 2 개 이상의 디바이스들이 와이어(wire) 즉,직렬 데이터(serial data; SDA)와 직렬 클럭 신호(serial clock signal; SCL)를 이용해서 정보를 송수하는 것을 지원하는 모듈이다.An IIC device is a module that supports two or more devices connected to a bus to transmit information using wires, that is, serial data (SDA) and serial clock signal (SCL).

IIC 디바이스들 각각은 고유의 어드레스에 의해 인지되며, 와이어를 통해서 송신기 또는 수신기로 동작된다. 또한, IIC 디바이스들 각각은 마스터(master)와 슬래브(slave) 자격으로, 송신기 또는 수신기 동작을 수행하는데, 마스터는 버스 상의 데이터를 초기화하고, 동기시킬 직렬 클럭 신호(SCL)를 발생시키는데, 이 때 다른 디바이스들은 슬래브로써 동작을 수행한다.Each of the IIC devices is identified by a unique address and acts as a transmitter or receiver over the wire. In addition, each of the IIC devices performs a transmitter or receiver operation as a master and a slave, where the master generates a serial clock signal (SCL) to initialize and synchronize data on the bus. Other devices perform operations as slabs.

마스터가 IIC 디바이스 버스에 정보를 전달하기 위해, 직렬 클럭 신호(SCL)에 자신이 발생시킨 클럭을 싣게 되는데 이 때, 각 디바이스에서 발생된 클럭 신호는 직렬 클럭 신호(SCL)의 와이어드 앤드(wired-and)에 의해 클럭 신호의 동기가 발생된다.In order for the master to pass information to the IIC device bus, the clock is generated by the serial clock signal (SCL), and the clock signal generated by each device is wired and connected to the serial clock signal (SCL). and) the synchronization of the clock signal is generated.

즉, 직렬 클럭 신호(SCL)의 하이 레벨에서 로우 레벨로의 변화는, 관련된 IIC 디바이스의 로우 레벨 구간에 의해 좌우되며, 직렬 클럭 신호(SCL)의 짧은 로우 레벨 구간을 가진 IIC 디바이스는 직렬 클럭 신호(SCL)의 대기 상태(waite state)로 들어가, 가장 긴 로우 레벨 구간을 가진 IIC 디바이스에 의해 영향을 받아 직렬 클럭 신호(SCL)가 발생된다.That is, the change from the high level to the low level of the serial clock signal SCL depends on the low level period of the associated IIC device, and the IIC device having the short low level period of the serial clock signal SCL is a serial clock signal. It enters the wait state of SCL and is affected by the IIC device with the longest low level period to generate a serial clock signal SCL.

직렬 데이터(SDA) 전송 및 수신은 마스터에 의한 직렬 클럭 신호(SCL) 발생 후 스타트(state) 조건 즉, 직렬 클럭 신호(SCL)가 하이 레벨인 동안, 직렬 데이터(SDA)가 하이 레벨에서 로우 레벨로 천이하면, 직렬 데이터(SDA)의 전송 및 수신이 시작된다. 직렬 데이터(SDA)는 8-비트 단위로 전송 및 수신되며, 애크날리지 비트(acknowledge bit)가 연이어 발생되어 수신기가 직렬 데이터(SDA)의 수신 여부를 송신기에게 알려주도록 되어 있다.Serial data SDA transmission and reception is performed after the generation of the serial clock signal SCL by the master while the start condition, that is, the serial clock signal SCL is at a high level, while the serial data SDA is at a high level to a low level. When transitioning to, the transmission and reception of the serial data SDA starts. The serial data SDA is transmitted and received in 8-bit units, and an acknowledgment bit is generated in succession so that the receiver informs the transmitter whether the serial data SDA is received.

그러므로, 수신기가 다른 동작을 수행중 일 때에는 직렬 데이터(SDA)를 수신하지 못하게 되는데, 이러한 경우, 직렬 클럭 신호(SCL)를 로우 레벨로 유지시켜 송신기가 전송 대기 상태에서 직렬 데이터(SDA) 전송을 보류하도록 한다. 송신기의 전송 대기 상태가 해제(release)되면, 또다시 직렬 클럭 신호가 발생되어 직렬 데이터(SDA)가 전송된다.Therefore, the receiver cannot receive serial data (SDA) while performing other operations. In this case, the serial clock signal (SCL) is kept at a low level so that the transmitter can transmit the serial data (SDA) while waiting for transmission. Make a reservation. When the transmission standby state of the transmitter is released, a serial clock signal is generated again and serial data SDA is transmitted.

이와 같이, 8-비트 데이터와 애크날리지 데이터가 전송 및 수신된 후, IIC 인터럽트가 발생되어 송/수신된 정보가 이용된다. IIC 인터럽트가 발생되면 인터럽트 소스에 의해 직렬 클럭 신호(SCL) 발생이 억제됨으로써, 송/수신된 데이터가 IIC 디바이스의 데이터 레지스터에서 변화되지 않고 유지된다.As such, after the 8-bit data and the admission data are transmitted and received, the IIC interrupt is generated and the information transmitted / received is used. When an IIC interrupt is generated, the generation of the serial clock signal (SCL) is suppressed by the interrupt source so that the transmitted / received data remains unchanged in the data register of the IIC device.

도 1은 종래의 IIC 디바이스의 회로 구성을 보여주는 블럭도이다.1 is a block diagram showing a circuit configuration of a conventional IIC device.

도 1을 참조하면, 상기 IIC 디바이스는 프리스케일러 레지스터(10), 직렬 출력 신호 프리스케일러(20), 버스 컨트롤 로직(30), 쉬프트 데이터 레지스터(40), 어드레스 레지스터(50), 직렬 출력 신호 제어 레지스터(60) 그리고 직렬 데이터 제어 레지스터(70)로 구성된다.Referring to FIG. 1, the IIC device includes a prescaler register 10, a serial output signal prescaler 20, a bus control logic 30, a shift data register 40, an address register 50, and a serial output signal control register ( 60) and a serial data control register 70.

상기 직렬 클럭 신호 제어 레지스터(60)는 인터럽트 소스에 의해 설정되는 제어 비트를 포함한다. 상기 직렬 클럭 신호 제어 레지스터(60)의 제어 비트는 IIC 디바이스가 동작 중일 때 인에이블되고, 상기 버스 컨트롤 로직(30)에서 인터럽트 소스가 발생되면 디세이블된다.The serial clock signal control register 60 includes control bits set by the interrupt source. The control bits of the serial clock signal control register 60 are enabled when the IIC device is in operation and disabled when an interrupt source is generated in the bus control logic 30.

만일, IIC 인터럽트 디세이블 상태에서 IIC 디바이스를 동작시키면 1 바이트 데이터 송/수신 후에도 계속적으로 직렬 클럭 신호(SCL)가 발생되어 송/수신된 직렬 데이터가 저장된다. 이는 IIC 데이터 레지스터에 저장된 값을 변화시키므로, IIC 모듈의 의미가 없어진다.If the IIC device is operated in the IIC interrupt disable state, the serial clock signal (SCL) is continuously generated even after 1 byte data transmission / reception, and the serial data transmitted / received is stored. This changes the value stored in the IIC data register, making the IIC module meaningless.

그러므로, IIC 인터럽트 디세이블 상태에서 직렬 클럭 신호가 발생되지 않는 IIC 디바이스가 요구된다.Therefore, there is a need for an IIC device in which a serial clock signal is not generated in an IIC interrupt disable state.

따라서, 본 발명의 목적은 상술한 제반 문제점을 해결하기 위해 제안된 것으로, 송/수신 동작 완료 후 직렬 클럭 신호가 발생되지 않는 IIC 디바이스를 제공하는데 있다.Accordingly, an object of the present invention is to solve the above-mentioned problems, and to provide an IIC device in which a serial clock signal is not generated after a transmission / reception operation is completed.

도 1은 종래의 IIC 디바이스의 회로 구성을 보여주는 블럭도; 그리고1 is a block diagram showing a circuit configuration of a conventional IIC device; And

도 2는 본 발명의 바람직한 실시예에 따른 IIC 디바이스의 회로 구성을 보여주는 블럭도이다.2 is a block diagram showing a circuit configuration of an IIC device according to a preferred embodiment of the present invention.

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

110 : 프리스케일러 레지스터 120 : 직렬 출력 신호 프리스케일러110: prescaler register 120: serial output signal prescaler

130 : 버스 컨트롤 로직 140 : 쉬프트 데이터 레지스터130: bus control logic 140: shift data register

150 : 어드레스 레지스터 160 : 직렬 클럭 신호 제어 레지스터150: address register 160: serial clock signal control register

170 : 직렬 데이터 제어 레지스터170: serial data control register

상술한 바와 같은 본 발명의 목적을 달성하기 위한 본 발명의 특징에 의하면, 내부 집적 회로 제어 디바이스에서 직렬 클럭 신호를 제어하는 방법은: 직렬 데이터를 송/수신하는 단계, 상기 직렬 클럭 신호의 발생을 디세이블시키기는 단계, 데이터 레지스터에 저장된 데이터를 독출 단계, 그리고 상기 직렬 클럭 신호의 발생을 인에이블시키는 단계를 포함한다.According to a feature of the present invention for achieving the object of the present invention as described above, a method for controlling a serial clock signal in an internal integrated circuit control device comprises: transmitting / receiving serial data, generating the serial clock signal. Disabling includes reading data stored in a data register, and enabling generation of the serial clock signal.

(작용)(Action)

이와 같은 방법에 의해서, 인터럽트 신호에 의존하지 않고 자동으로 직렬 클럭 신호 발생이 억제되는 IIC 디바이스를 구현할 수 있다.In this way, an IIC device can be implemented in which the generation of the serial clock signal is automatically suppressed without depending on the interrupt signal.

(실시예)(Example)

이하 본 발명에 따른 실시예를 첨부된 도면 도 2를 참조하여 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

IIC 디바이스의 인터럽트는 다음과 같은 세 가지 경우에 발생된다.Interrupts in an IIC device occur in three cases:

첫째, 1 바이트 데이터 송신 또는 수신 동작이 종료될 때,First, when the one-byte data transmission or reception operation ends,

둘째, 일반적인 콜 또는 슬래브 어드레스가 매치될 때, 그리고Second, when a general call or slab address is matched, and

셋째, 버스 중재 오류(bus arbitration fails)시 이다.Third, when bus arbitration fails.

상술한 바와 같은 경우에 인터럽트가 발생되면 직렬 클럭 신호(SCL) 발생이 억제되어야 송/수신된 직렬 데이터를 메인 프로그램에서 사용할 수 있다.In the case described above, when an interrupt is generated, the generation of the serial clock signal SCL must be suppressed so that the transmitted / received serial data can be used in the main program.

본 발명에서는 인터럽트 신호에 의존하지 않고 자동으로 직렬 클럭 신호 발생을 억제하는 방법이 제시된다.In the present invention, a method for automatically suppressing serial clock signal generation without depending on the interrupt signal is provided.

도 2는 본 발명의 바람직한 실시예에 따른 IIC 디바이스의 회로 구성을 보여주는 블럭도이다.2 is a block diagram showing a circuit configuration of an IIC device according to a preferred embodiment of the present invention.

도 2를 참조하면, 상기 IIC 디바이스는 프리스케일러 레지스터(110), 직렬 출력 신호 프리스케일러(120), 버스 컨트롤 로직(130), 쉬프트 데이터 레지스터(140), 어드레스 레지스터(150), 직렬 출력 신호 제어 레지스터(160) 그리고 직렬 데이터 제어 레지스터(170)로 구성된다.Referring to FIG. 2, the IIC device includes a prescaler register 110, a serial output signal prescaler 120, a bus control logic 130, a shift data register 140, an address register 150, and a serial output signal control register ( 160 and serial data control register 170.

상기 직렬 클럭 신호 제어 레지스터(160)는 인터럽트 소스에 의해 설정되는 제어 비트를 포함한다. 상기 직렬 클럭 신호 제어 레지스터(160)의 제어 비트는 상기 직렬 클럭 신호(SCL)의 발생을 디세이블시키기 위해, 직렬 데이터의 송/수신 후 자동으로 디세이블된다. 사용자(프로그래머)는 상기 직렬 데이터 제어 레지스터(70)에 저장된 데이터를 독출한다. 다음, 상기 직렬 클럭 신호(SCL)의 발생을 인에이블시키기 위해, 상기 직렬 클럭 신호 제어 레지스터(60)의 제어 비트를 인에이블시킨다.The serial clock signal control register 160 includes control bits set by an interrupt source. The control bits of the serial clock signal control register 160 are automatically disabled after sending / receiving serial data to disable the generation of the serial clock signal SCL. The user (programmer) reads the data stored in the serial data control register 70. Next, to enable the generation of the serial clock signal SCL, the control bit of the serial clock signal control register 60 is enabled.

종래에는 IIC 디바이스를 동작시키기 전에 버스 컨트롤 로직(130)이 인에이블 레벨의 인터럽트 소스 신호를 발생하여, 직렬 클럭 신호 제어 레지스터(160) 내의 제어 비트를 인에이블시켰다. 만일, 인터럽트 디세이블 상태에서 IIC 디바이스를 동작시키면, 1-바이트 데이터를 송/수신한 후에도 계속적으로 직렬 클럭 신호(SCL)가 발생되어 직렬 데이터 제어 레지스터(70)에 저장된 직렬 데이터(SDA)가 변화되기 때문이다.Conventionally, bus control logic 130 generated an enable level interrupt source signal prior to operating the IIC device to enable control bits in serial clock signal control register 160. If the IIC device is operated in the interrupt disable state, the serial clock signal SCL is continuously generated even after transmitting / receiving 1-byte data, thereby changing the serial data SDA stored in the serial data control register 70. Because it becomes.

그러나, 본 발명에서는 1 바이트 데이터를 송/수신한 후 자동으로 상기 직렬 클럭 신호 제어 레지스터(160)의 제어 비트를 디세이블함으로써 직렬 클럭 신호(SCL)가 발생되지 않도록 하였다. 그리고, 상기 직렬 클럭 신호 제어 레지스터(60)에 저장된 상태 값을 사용자가 독출하여 사용한 후에는 상기 직렬 클럭 신호 제어 레지스터(160)의 제어 비트를 인에이블함으로써 계속해서 직렬 데이터가 송/수신되도록 하였다.However, in the present invention, the serial clock signal SCL is not generated by automatically disabling the control bit of the serial clock signal control register 160 after transmitting / receiving 1 byte data. After the user reads and uses the state value stored in the serial clock signal control register 60, the serial data is continuously transmitted / received by enabling the control bit of the serial clock signal control register 160.

그러므로, IIC 디바이스를 동작시키기 위해 버스 컨트롤 로직(130)이 인에이블 레벨의 인터럽트 소스 신호를 발생하여, 직렬 클럭 신호 제어 레지스터(160) 내의 제어 비트를 인에이블시키는 별도의 제어가 불필요하다. 더욱이, 인터럽트 디세이블 상태에서 IIC 디바이스를 동작시키는 문제가 전혀 발생되지 않는다.Therefore, bus control logic 130 generates an enable level interrupt source signal to operate the IIC device, so that no separate control is needed to enable the control bits in serial clock signal control register 160. Moreover, there is no problem of operating the IIC device in an interrupt disable state.

이상에서, 본 발명에 따른 회로의 구성 및 동작을 상기한 설명 및 도면에 따라 도시하였지만 이는 예를 들어 설명한 것에 불과하며 본 발명의 기술적 사상을 벗어나지 않는 범위 내에서 다양한 변화 및 변경이 가능함은 물론이다.In the above, the configuration and operation of the circuit according to the present invention are shown in accordance with the above description and drawings, but this is merely described, for example, and various changes and modifications are possible without departing from the spirit of the present invention. .

이상과 같은 본 발명에 의하면, 인터럽트 신호에 의존하지 않고 자동으로 직렬 클럭 신호 발생이 억제된다. 그러므로, IIC 디바이스를 동작시키기 위해 버스 컨트롤 로직이 인에이블 레벨의 인터럽트 소스 신호를 발생하여, 직렬 클럭 신호 제어 레지스터 내의 제어 비트를 인에이블시키는 별도의 제어가 불필요하다. 더욱이, 인터럽트 디세이블 상태에서 IIC 디바이스를 동작시키는 문제가 전혀 발생되지 않는다.According to the present invention as described above, the serial clock signal generation is automatically suppressed without depending on the interrupt signal. Therefore, bus control logic generates an enable level interrupt source signal to operate the IIC device, so that no separate control is needed to enable the control bits in the serial clock signal control register. Moreover, there is no problem of operating the IIC device in an interrupt disable state.

Claims (1)

내부 집적 회로 제어 디바이스에서 직렬 클럭 신호를 제어하는 방법에 있어서:A method of controlling a serial clock signal in an internal integrated circuit control device: 직렬 데이터를 송/수신하는 단계와;Transmitting / receiving serial data; 상기 직렬 클럭 신호의 발생을 디세이블시키기는 단계와;Disabling generation of the serial clock signal; 데이터 레지스터에 저장된 데이터를 독출 단계; 그리고Reading data stored in a data register; And 상기 직렬 클럭 신호의 발생을 인에이블시키는 단계를 포함하는 것을 특징으로 하는 내부 집적 회로 제어 디바이스의 직렬 클럭 신호 제어 방법.Enabling the generation of said serial clock signal.
KR1020000028115A 2000-05-24 2000-05-24 Clock signal controling method of inter integrated circuit control device KR20010106988A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020000028115A KR20010106988A (en) 2000-05-24 2000-05-24 Clock signal controling method of inter integrated circuit control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020000028115A KR20010106988A (en) 2000-05-24 2000-05-24 Clock signal controling method of inter integrated circuit control device

Publications (1)

Publication Number Publication Date
KR20010106988A true KR20010106988A (en) 2001-12-07

Family

ID=19670080

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020000028115A KR20010106988A (en) 2000-05-24 2000-05-24 Clock signal controling method of inter integrated circuit control device

Country Status (1)

Country Link
KR (1) KR20010106988A (en)

Similar Documents

Publication Publication Date Title
US20190146944A1 (en) Dynamically adjustable multi-line bus shared by multi-protocol devices
JP2008118342A (en) Asynchronous serial communication method and asynchronous serial communication device
KR20010106988A (en) Clock signal controling method of inter integrated circuit control device
KR100580179B1 (en) Method and integrated circuit apparatus for reducing simultaneously changing output
US6901529B2 (en) Timer apparatus which can simultaneously control a plurality of timers
KR100619353B1 (en) I2C bus control system which double data transmission is possible
JPH08316973A (en) Communication processing means
JP2006304011A (en) Interface circuit
JP2004266335A (en) Start-stop synchronization-type serial communication circuit and semiconductor integrated circuit having the same circuit
KR20070102823A (en) Device for controlling address in a i2c protocol
KR19990008189A (en) Method and apparatus for reducing the latency of an interface by overlapping transmitted packets
TWI398778B (en) Data communication system
JP2000276435A (en) Method and device for data transfer
KR100962306B1 (en) Bidirectional data transmission apparatus and the method thereof for embedded system
JPH10207834A (en) Serial input/output circuit
KR100698303B1 (en) Serial Communication Bus direction Controller
KR20050107159A (en) Bus controller for serial interface of system
JP2001154644A (en) Display driving circuit
JP2000099195A (en) Timer device
KR100260538B1 (en) Method of transmitting data between central processing unit and peripheral device and apparatus thereof
JP2008093355A (en) Interface circuit
KR970003140B1 (en) Parallel synchronization control
KR900001618Y1 (en) Speed conversion selective circuits of cpu
KR920010336B1 (en) Serial data interface circuit between high speed computer and low speed computer
KR0169789B1 (en) Method and circuit for transmitting data of blocks

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination