KR20070024826A - Method for detecting systems connected to micom - Google Patents

Method for detecting systems connected to micom Download PDF

Info

Publication number
KR20070024826A
KR20070024826A KR1020050080351A KR20050080351A KR20070024826A KR 20070024826 A KR20070024826 A KR 20070024826A KR 1020050080351 A KR1020050080351 A KR 1020050080351A KR 20050080351 A KR20050080351 A KR 20050080351A KR 20070024826 A KR20070024826 A KR 20070024826A
Authority
KR
South Korea
Prior art keywords
microcomputer
systems
serial bus
control signal
counter
Prior art date
Application number
KR1020050080351A
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 KR1020050080351A priority Critical patent/KR20070024826A/en
Publication of KR20070024826A publication Critical patent/KR20070024826A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Microcomputers (AREA)

Abstract

A system detecting method for a microcomputer is provided to improve compatibility of the microcomputer by controlling the system with one microcomputer irrespective of the number of the systems, as the microcomputer and a standard serial interface detects the system connected to the microcomputer after a wakeup operation, and operate a program matched with the detected system. The number of systems to be controlled by a control signal of the microcomputer is received through the serial bus after the wakeup operation(105). A counter is increased after the received number of systems is stored and it is checked up whether an increased value of the counter is a set value or not(109). In case that the value increased of the counter is over the set value, the control signal of the system is generated by operating the program for operating the system connected through the microcomputer(111).

Description

마이컴의 시스템 감지 방법{METHOD FOR DETECTING SYSTEMS CONNECTED TO MICOM}METHOD FOR DETECTING SYSTEMS CONNECTED TO MICOM}

도 1은 본 발명에 따른 마이컴의 시스템 감지 방법을 적용하기 위한 장치의 구성이 도시된 도면이다.1 is a diagram showing the configuration of an apparatus for applying a system detection method of a microcomputer according to the present invention.

도 2는 도 1에 도시된 직렬 버스의 입출력 신호를 보인 파형도이다.FIG. 2 is a waveform diagram illustrating input and output signals of the serial bus shown in FIG. 1.

도 3은 도 1에 도시된 마이컴의 시스템 감지 과정을 보인 흐름도이다.3 is a flowchart illustrating a system detection process of the microcomputer shown in FIG. 1.

〈도면의 주요 부분에 관한 부호의 설명〉<Explanation of symbols about main part of drawing>

10 : 마이컴 20 : 직렬버스(SPI)10: microcomputer 20: serial bus (SPI)

30 : 시스템 30: system

본 발명은 마이컴의 시스템 감지 방법에 관한 것으로서, 보다 상세하게는, 직렬 버스를 통해 수신된 하나의 마이컴의 제어 신호를 이 제어 신호에 따라 작동하는 시스템의 수를 감지할 수 있는 방법에 관한 것이다.The present invention relates to a method of sensing a system of a microcomputer, and more particularly, to a method of sensing the number of systems operating a control signal of one microcomputer received through a serial bus according to the control signal.

우선, 마이컴은 마이크로컴퓨터(microcomputer)를 일컫는 것으로서 1개 또는 여러 개의 LSI로서 구성되어진 CPU 마이크로프로세서를 중심으로 구성된 초소형 컴 퓨터 시스템을 의미한다. 다음, 마이컴은 그 구조가 보통 CPU, 메모리(ROM, RAM),스탠다드 직렬 인터페이스(SPI), 입출력장치, 보조기억장치와 제어회로 등으로 이루어져 있고, 스탠다드 직렬 인터페이스(SPI)의 버스(BUS)라 불리는 자료 라인과 제어 데이터 라인으로 결선시켜 조립하게 된다. 여기서, 출력 인터페이스 회로는 시스템(예를 들어 자동차의 경우 전조등 등을 말한다)을 작동시키기 위한 마이컴의 제어 데이터를 시스템에 전송하는 장치로서, 출력 구동 장치라고도 한다.First, a microcomputer refers to a microcomputer, which means a microcomputer system centered on a CPU microprocessor configured as one or several LSIs. Next, the microcomputer is composed of a CPU, a memory (ROM, RAM), a standard serial interface (SPI), an input / output device, an auxiliary memory device, a control circuit, and the like. It is assembled by connecting data line and control data line. Here, the output interface circuit is a device that transmits the control data of the microcomputer to the system for operating the system (for example, headlights in the case of automobiles), also referred to as an output driving device.

이러한 마이컴의 제어 데이터를 시스템에 제공하여 시스템을 동작시키기 위한 직렬버스(SPI)는 마이컴의 외부에 마이컴의 제어 데이터를 출력하기 위한 다수개의 출력 핀이 장착되고, 이 출력 핀에 이 마이컴의 제어 데이터에 따라 작동/변환되는 시스템(미도시됨)이 접속된다.The serial bus (SPI) for providing the microcomputer's control data to the system to operate the system is provided with a plurality of output pins for outputting the microcomputer's control data to the outside of the microcomputer. A system (not shown) that is actuated / converted in accordance with is connected.

그런데, 이와 같은 종래의 마이컴에는 직렬 버스를 통해 차종에 따라 다수개의 시스템이 접속되고, 이러한 차종에 따라 마이컴은 이러한 시스템을 구동시키기 위한 제어 신호를 발생하기 위한 프로그램이 각각 다르게 설정되어 있다. 즉, 마이컴에 접속되는 시스템의 수가 미리 정해지고, 그에 대응되는 인쇄회로기판이 디자인되며, 그에 대응되는 프로그램이 마이컴에 저장된다. 따라서, 차종이 변경될 때마다 프로그램을 일일이 재설정 또는 재제조하여야 하는 불편함과 제조 원가가 향상되는 문제점이 있었다.By the way, a plurality of systems are connected to such a conventional microcomputer according to a vehicle type through a serial bus, and according to the vehicle type, the programs for generating a control signal for driving such a system are set differently. That is, the number of systems connected to the microcomputer is predetermined, a printed circuit board corresponding thereto is designed, and a program corresponding thereto is stored in the microcomputer. Therefore, there is a problem in that the inconvenience and the manufacturing cost of having to reset or remanufacture the program every time the vehicle model is changed.

본 발명은 상기한 종래 기술의 문제점을 해결하기 위하여 안출된 것으로서, 그 목적은 마이컴 및 스탠다드 직렬 인터페이스가 웨이크업 된 후 마이컴에 접속된 시스템을 미리 감지한 후 감지된 시스템에 대응되는 프로그램을 구동시킴으로써, 하나의 마이컴으로 시스템 수의 변경과 무관하게 시스템의 제어가 가능하여 마이컴의 호환성을 더욱 향상시킬 수 있는 마이컴의 시스템 감지 방법을 제공하고자 함에 있다.The present invention has been made to solve the above-mentioned problems of the prior art, the object of which is to detect the system connected to the microcomputer after the microcomputer and the standard serial interface wakes up in advance to drive the program corresponding to the detected system Therefore, it is to provide a system detection method of the microcomputer which can improve the compatibility of the microcomputer by controlling the system irrespective of the change of the number of systems with a single microcomputer.

상기한 과제를 해결하기 위한 본 발명에 의한 마이컴의 시스템 감지 방법은, The system detection method of the microcomputer according to the present invention for solving the above problems,

마이컴을 통해 제어 가능한 시스템의 수를 감지하는 방법에 있어서,In the method of detecting the number of systems that can be controlled through the microcomputer,

a) 웨이크업된 후 직렬 버스를 통해 상기 마이컴의 제어 신호에 의해 제어 가능한 시스템의 수를 수신하는 단계;a) receiving the number of systems controllable by the control signal of the microcomputer via a serial bus after waking up;

b) 상기 a) 단계를 통해 수신된 시스템의 수를 저장한 후 카운터를 증가하고, 증가된 카운터의 값이 설정치인 지를 체크하는 단계; 및b) incrementing a counter after storing the number of systems received through step a) and checking whether the value of the increased counter is a set value; And

c) 상기 b) 단계를 통해 설정치 이상인 경우 마이컴을 통해 상기 접속된 시스템을 구동시키기 위한 프로그램을 구동하여 상기 시스템에 제어 신호를 발생하는 단계를 포함한다.c) generating a control signal to the system by driving a program for driving the connected system through a microcomputer when the value is equal to or greater than the set value through the step b).

본 발명에 의하면, 직렬 버스를 통해 마이컴에 접속된 시스템을 미리 감지하여 그에 대응되는 시스템의 제어신호를 발생하기 위한 프로그램이 작동되므로, 시스템의 수 변경에 따른 마이컴의 프로그램의 재설정 없이 마이컴에 접속되는 시스템이 작동되므로, 마이컴의 호환성을 향상시킬 수 있게 된다.According to the present invention, since a program for detecting a system connected to the microcomputer through a serial bus in advance and generating a control signal of the system corresponding thereto is operated, the microcomputer is connected to the microcomputer without resetting the program of the microcomputer according to the number of systems. As the system works, Microcom's compatibility can be improved.

이하, 본 발명의 바람직한 실시 예를 첨부된 도면을 참조하여 상세히 설명하면 다음과 같다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

먼저, 도 1은 본 발명에 따른 마이컴의 시스템 감지 방법이 적용되는 마이컴의 구성을 보인 도면이고, 도 2은 도 1의 직렬 버스(20)의 출력 신호 및 입력 신호를 보인 파형도이다.First, FIG. 1 is a view showing the configuration of a microcomputer to which the system detection method of the microcomputer according to the present invention is applied. FIG. 2 is a waveform diagram showing an output signal and an input signal of the serial bus 20 of FIG.

다음, 본 발명의 마이컴(M)은 모든 기기에 적용되며, 본 발명에 따른 마이컴은, 도 1에 도시된 바와 같이, 시스템을 동작을 제어하기 위한 제어 데이터를 출력하는 마이컴(10)의 출력측에 접속되는 다수의 시스템(30)과, 상기 마이컴(10)과 시스템(30)의 데이터를 송수신하기 위한 직렬 버스(20)를 포함한다.Next, the microcomputer (M) of the present invention is applied to all devices, the microcomputer according to the present invention, as shown in Figure 1, to the output side of the microcomputer 10 for outputting control data for controlling the operation of the system A plurality of systems 30 are connected, and a serial bus 20 for transmitting and receiving data between the microcomputer 10 and the system 30.

여기서, 상기 시스템(30)은 직렬 버스(20)를 통해 수신된 하나의 마이컴(10)의 제어 데이터를 제공받아 동작되고, 상기 직렬 버스(20)는 상기 시스템(30)의 구동 데이터를 받아 마이컴(10)으로 전송하도록 구비된다.Here, the system 30 is operated by receiving control data of one microcomputer 10 received through the serial bus 20, and the serial bus 20 receives microcomputer driving data of the system 30. 10 to transmit.

이와 같이 구비된 마이컴(10)에 있어, 우선 상기 마이컴(10), 직렬 버스(20), 및 시스템(30)은 웨이크업된 후 상기 마이컴(10)은 직렬버스(20)를 통해 도 2의 A)에 도시된 SPI 명령 신호를 출력하고, 이 SPI 명령 신호를 받은 다수의 시스템(30)은 도 2의 B)에 도시된 응답 신호를 각각 출력한다. 이 응답신호는 직렬 버스(20)를 통해 마이컴(10)에 전송된다. 상기 마이컴(10)은 각 시스템(30)으로부터 공급되는 응답신호를 기초로 마이컴(10)에 의해 제어 가능한 시스템의 수를 감지하고, 이 감지된 시스템에 대응되는 프로그램을 구동하여 상기 시스템(30)을 작동시키기 위한 제어 신호를 발생한다.In the microcomputer 10 provided as described above, first, the microcomputer 10, the serial bus 20, and the system 30 are woken up, and then the microcomputer 10 is connected via the serial bus 20 of FIG. The SPI command signal shown in A) is output, and the plurality of systems 30 which have received this SPI command signal output the response signal shown in B) of FIG. This response signal is transmitted to the microcomputer 10 via the serial bus 20. The microcomputer 10 senses the number of systems controllable by the microcomputer 10 based on the response signals supplied from the respective systems 30, and drives the program corresponding to the detected systems to the system 30. Generates a control signal to operate.

상기 제어 신호는 직렬 버스(20)를 통해 시스템(30)에 출력되고, 상기 시스템(30)은 이 제어 신호를 제공받아 구동한다.The control signal is output to the system 30 via the serial bus 20, and the system 30 receives and drives the control signal.

도 3은 도 1에 도시된 마이컴의 시스템 감지 과정을 보인 흐름도이다. 이를 참조하여 본 발명에 따른 마이컴의 시스템 감지 과정을 설명한다.3 is a flowchart illustrating a system detection process of the microcomputer shown in FIG. 1. The system detection process of the microcomputer according to the present invention will be described with reference to this.

우선, 웨이크업회로(미도시됨)에 의해 상기 마이컴(10), 직렬 버스(20), 및 시스템(30)은 웨이크업된 후(단계 101) 상기 마이컴(10)은 직렬버스(20)를 통해 SPI 명령 신호를 출력하고, 이 SPI 명령 신호를 받은 다수의 시스템(30)D으로부터 공급된 응답신호를 직렬 버스(20)를 통해 수신하여 시스템의 수를 감지한다(단계 103).First, the microcomputer 10, the serial bus 20, and the system 30 are woken up by a wake-up circuit (not shown) (step 101), and then the microcomputer 10 disconnects the serial bus 20. And outputs an SPI command signal, and receives a response signal supplied from a plurality of systems 30D receiving the SPI command signal through the serial bus 20 to detect the number of systems (step 103).

상기 직렬 버스(20)를 통해 수신된 응답신호를 받은 마이컴(10)은 이 응답신호를 기초로 마이컴(10)에 의해 제어 가능한 시스템의 수를 저장한다(단계105). The microcomputer 10 receiving the response signal received through the serial bus 20 stores the number of systems controllable by the microcomputer 10 based on the response signal (step 105).

이어 상기 마이컴(10)은 카운터를 소정 수 증가한 후(단계 107) 증가된 수가 설정치 이상인 지를 체크하고(단계 109), 설정치 이상이 아닌 경우 상기 단계(103)로 진행한다. The microcomputer 10 increments the counter by a predetermined number (step 107) and then checks whether the increased number is greater than or equal to the set value (step 109), and proceeds to step 103 if it is not greater than or equal to the set value.

또한, 상기 마이컴(10)은 상기 단계(107)를 통해 설정치 이상인 경우 이 감지된 시스템에 대응되는 프로그램을 구동하여 상기 시스템(30)을 작동시키기 위한 제어 신호를 발생하고, 이 발생된 제어 신호는 직렬 버스(20)를 통해 시스템(30)에 공급된다(단계 111).In addition, the microcomputer 10 generates a control signal for operating the system 30 by driving a program corresponding to the detected system when the set value is greater than or equal to the predetermined value through the step 107, and the generated control signal is Supplied to system 30 via serial bus 20 (step 111).

이상에서 설명한 바와 같이, 본 발명에 따른 마이컴의 시스템 감지 방법은, 직렬 버스를 통해 마이컴에 접속된 시스템의 수를 미리 감지하여 그에 대응되는 시스템의 제어신호를 발생하기 위한 프로그램이 작동되므로, 시스템의 수 변경에 따 른 마이컴의 프로그램의 재설정 없이 마이컴에 접속되는 시스템이 작동되므로, 마이컴의 호환성을 향상시킬 수 있는 효과를 얻는다.As described above, in the system detection method of the microcomputer according to the present invention, a program for detecting the number of systems connected to the microcomputer through a serial bus in advance and generating a control signal of the corresponding system is operated. The system that connects to the microcomputer is operated without resetting the microcomputer program according to the number change, so that the microcomputer compatibility can be improved.

이와 같이 본 발명이 속하는 기술 분야의 당업자는 본 발명의 그 기술적 사상이나 필수적 특징으로 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있을 것이다. 그러므로, 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며, 한정적인 것이 아닌 것으로서 이해해야만 한다. 본 발명의 범위는 상기 상세한 설명보다는 후술하는 특허 청구범위 의해 나타내어지며, 특허 청구범위의 의미 및 범위 그리고 그 등가 개념으로부터 도출되는 모든 변경 또는 변형된 형태가 본 발명의 범위에 포함되는 것으로 해석되어야 한다.As such, those skilled in the art to which the present invention pertains will understand that the present invention may be embodied in other specific forms without changing to the technical spirit or essential features of the present invention. Therefore, the above-described embodiments are to be understood in all respects as illustrative and not restrictive. The scope of the present invention is shown by the following claims rather than the above description, and all changes or modifications derived from the meaning and scope of the claims and their equivalents should be construed as being included in the scope of the present invention. .

Claims (2)

마이컴을 통해 제어 가능한 시스템의 수를 감지하는 방법에 있어서,In the method of detecting the number of systems that can be controlled through the microcomputer, a) 웨이크업된 후 직렬 버스를 통해 상기 마이컴의 제어 신호에 의해 제어 가능한 시스템의 수를 수신하는 단계;a) receiving the number of systems controllable by the control signal of the microcomputer via a serial bus after waking up; b) 상기 a) 단계를 통해 수신된 시스템의 수를 저장한 후 카운터를 증가하고, 증가된 카운터의 값이 설정치인 지를 체크하는 단계; 및b) incrementing a counter after storing the number of systems received through step a) and checking whether the value of the increased counter is a set value; And c) 상기 b) 단계를 통해 설정치 이상인 경우 마이컴을 통해 상기 접속된 시스템을 구동시키기 위한 프로그램을 구동하여 상기 시스템에 제어 신호를 발생하는 단계를 포함하는 것을 특징으로 하는 마이컴의 시스템 감지 방법.and c) generating a control signal to the system by driving a program for driving the connected system through a microcomputer if the set value is greater than or equal to the predetermined value through the b). 제1항에 있어서, 상기 설정치는 4회인 것을 특징으로 하는 마이컴의 시스템 감지 방법.The method of claim 1, wherein the set value is four times.
KR1020050080351A 2005-08-30 2005-08-30 Method for detecting systems connected to micom KR20070024826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050080351A KR20070024826A (en) 2005-08-30 2005-08-30 Method for detecting systems connected to micom

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050080351A KR20070024826A (en) 2005-08-30 2005-08-30 Method for detecting systems connected to micom

Publications (1)

Publication Number Publication Date
KR20070024826A true KR20070024826A (en) 2007-03-08

Family

ID=38099157

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050080351A KR20070024826A (en) 2005-08-30 2005-08-30 Method for detecting systems connected to micom

Country Status (1)

Country Link
KR (1) KR20070024826A (en)

Similar Documents

Publication Publication Date Title
US7668995B2 (en) IIC bus communication system capable of suppressing freeze of IIC bus communication and method for controlling IIC bus communication
KR102044898B1 (en) Method for sensing connection of USB device and image forming apparatus performing the same
EP3242174B1 (en) Control system, control method, control program, and recording medium
CN108363380A (en) Sensor controller and sensor-signal receiver and its method
JP2002312033A (en) Method and device for monitoring control unit
CN101609424B (en) System hardware monitoring and simulation testing module and method thereof
US11809348B2 (en) Digital bus activity monitor
CN105703991A (en) local interconnect network system and method
KR102119766B1 (en) Controller for vehicle and operating method thereof
WO2003025849A1 (en) Memory card and data rewriting method
KR20070024826A (en) Method for detecting systems connected to micom
KR20050108278A (en) Information processing system and method of controlling the same
CN114270327B (en) Method for identifying position of bus user
US20070257892A1 (en) Data processing system and method for touch pad
JP2007299367A5 (en)
US7437448B1 (en) Method and device for function selection of a control unit
CN108536637A (en) A kind of communication system and method for transmitter conditioning chip
JP2000146765A (en) Electronic controller for vehicle
KR102503969B1 (en) Method checking status of controller and apparatus therefor
JP2013089104A (en) Electronic control device
CN210181556U (en) Electronic equipment
KR20070061625A (en) Micro controller unit of multi-chip module, multi-chip module including the micro controller unit, and method of synchronizing power mode in multi-chip module
JP2591862B2 (en) Power control signal converter
KR101490930B1 (en) Electronic control apparatus of vehicle
GB2379103A (en) Power failure sensing device and card reader

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application