DIGITAL CONTROL SYSTEMS FOR ELECTRONIC APPARATUS

Abstract: A digital control system for electronic apparatus (1) such as a television receiver, employs an internal bus (8) and includes at least one master controller (6) and a plurality of operation circuits (2 to 5) connected via control bus lines (9, 10) so that, during normal operation of the electronic apparatus (1), the master controller (6) can carry out predetermined control operations relative to the respective circuit blocks (2 to 5). During testing and/or adjustment, an auxiliary master controller (12) is connected to the control bus lines (9, 10) in order to control the operational circuits (2 to 5) in place of the master controller (6), while holding the master controller (6) in the slave mode.

Description: This invention relates to digital control systems for electronic apparatus. Such systems are particularly suitable for digital control of the internal circuitry of audio-visual apparatus such as television receivers and video tape recorders, by digital data. There are now well known various kinds of video and audio equipment, such as television receivers, video tape recorders, and audio tape recorders in which there are digitally controllable internal circuits. Many of the examples of such digitally controllable electronic apparatus have adopted internal bus systems. Typically, an internal bus system includes a central processing unit (CPU), an internal bus, and a read only memory (ROM), which are located within the electronic apparatus. The ROM may be considered as part of the CPU and is used to store the operational information for each of the various internal circuits. In normal operation, the CPU reads the operational information out of the ROM and transmits such information to the corresponding operational circuit over the internal bus, so that the corresponding internal circuit properly performs its predetermined operation. Typically, further means of control is provided for each of the internal operational circuits by providing a keyboard or remote controller that can communicate over the internal bus lines with the various internal operational circuits. Both a two-wire bus and a three-wire bus have been advantageously used in such internal bus systems. This kind of internal bus line system is disclosed in Japanese Patent Application No. 57/106262 (corresponding to European patent specification EP-A1-0 051 332), and it is known that in the three-wire type system the bus lines comprise a data transmission line, a clock signal transmission line, and an identification signal transmission line, in which the identification signal is used to specify a data block. In the two-wire bus, only a clock signal line and a data signal line are typically provided. By using an internal bus system, it is possible to simplify substantially the internal wiring that is required to interconnect the various operational circuits in the electronic apparatus and, moreover, testing, manufacturing, and servicing of the electronic apparatus can be carried out using a software approach that further reduces the costs involved. Thus, in utilizing an internal bus system, it is possible that testing, adjustments, and manufacturing can be standardized universally, and are so facilitated that overall economic reductions, including lowered manufacturing costs, can be achieved. Accordingly, multi-purpose, high-performance electronic apparatus can easily be fabricated by interconnecting numerous internal operational circuits with an internal bus. This type of internal bus system is highly suited for use in systems having a plurality of CPUs and a plurality of internal operational circuits controlled by such CPUs, in which the CPUs are typically referred to as masters and the internal circuits as slaves. Generally, at least one master is incorporated into the specific digitally controllable electronic apparatus and an external master is provided to be connected to the internal bus of the electronic apparatus through an external terminal. Typically, such external master is a so-called microcomputer. Because the masters and slaves all use the internal bus lines, data communication between the various masters and slaves can be carried out in units of blocks, which define the bus utilization interval, and with such blocks being delimited by start information, such as a specific signal pattern that indicates occupation of the bus, and subsequent stop information. In that case, one master issues the start information to declare that master a controller, sends the address information of one slave to select the control object, transmits the control data or receives data to or from the slave to perform the predetermined control or monitor or check the operation, and then finally transmits the stop information to declare that the master is no longer the controller. In one format accomplishing such operation the rising edge of the stop information pulse indicates that the occupation of the internal bus by that master has ended and that the internal bus has been released. Generally, time margins are provided between each block of data transmission, so that any one of the masters can become the controller by interrupting during a time margin. Nevertheless, in cases where an automatic adjustment loop is formed with the slaves, or an external master including an adjustment computer is connected to the adjustment loop, or when an open-loop adjustment is carried out by means of software, an internal master will often interrupt to start its own control when the internal bus is released midway through the series of data transmissions. The external master then loses control and passes to a stand-by state, and the adjustment operation does not proceed as desired. In the worst case, intermediate data might be destroyed, so the adjustment cannot be completed. IEEE Conference Record, Vol. 3, June 1982, pages 5C.4.1 to 5C.4.5 discloses the so-called Fastbus modular high speed data acquisition system for high energy physics applications. This system comprises a supplementary host computer which is connected via an external terminal to a control bus line. During this time the master control means is in a slave mode, and operational circuit elements are controlled directly by the host computer. According to the present invention there is provided a digital control system for use in electronic apparatus, the system comprising: master control means for the electronic apparatus; a plurality of operational circuit elements of the electronic apparatus arranged to be controlled by said master control means; and control bus lines interconnecting said master control means and said plurality of operational circuit elements, said control bus lines forming a two-wire internal bus of said electronic apparatus for transmission of a clock signal and data respectively; characterized by: said electronic apparatus being audio-visual apparatus; and auxiliary master control means to be connected to said control bus lines via an external terminal for intializing, as follows: sending data inhibiting said master control means from functioning as the master; controlling said operational circuit elements in place of said master control means; holding said master control means in a slave mode, as long as said operational circuit elements are controlled by said auxiliary master control means; and sending data causing said master control means to resume functioning as the master after the operations of said auxiliary master control means have been completed. The invention will now be described by way of example with reference to the accompanying drawings, throughout which like parts are referred to by like references, and in which: Figure 1 is a block diagram of an embodiment of digital control system according to the invention, applied to a television receiver; Figures 2A and 2B are waveform diagrams showing signals of a clock line and a data transmission line in the circuit of Figure 1; Figure 3 is a representation of a data format for transferring data over the data transmission bus line of Figure 1; Figure 4 is a representation of a data format used in a situation where an internal master is converted to a slave; Figure 5 is an operational flow chart of a method of switching an internal CPU between master and slave modes by means of an external master; and Figure 6 is a representation of the data stream on the data line of the bus. Figure 1 represents in block diagram form the essential portions of a television receiver 1 that relate to an embodiment of the present invention. More particularly, the television receiver 1 enclosed within the dot-dash line includes a channel selector 2, a video intermediate frequency (VIF) circuit 3, a video signal processing circuit 4, and an audio signal processing circuit 5. These units may be thought of as comprising slaves, which may be formed by several solid-state integrated circuits, and are each connected to an internal master 6 and a memory 7 by way of a two-wire internal bus 8. The two-wire internal bus 8 comprises a serial data transmission line 9 and a clock transmission line 10. The internal master 6 typically comprises a CPU forming a microcomputer and includes an arithmetic logic unit, registers, a ROM, and a random access memory (RAM). Advantageously, the memory 7 comprises an erasable, programmable, non-volatile read only memory (EPROM), and serves to store control and/or circuit adjustment data. The internal bus 8, formed of the data transmission line 9 and the clock transmission line 10, is connected to an external terminal 11 that may comprise a standard jack to which is connected an external master unit 12, which may be thought of as an adjustment computer, and which generally includes its own CPU. In normal operation of a television receiver 1, such as shown in Figure 1, the internal master 6 monitors a keyboard or remote controller and controls the display in accordance with a series of instruction sequences programmed into the memory. In addition, the internal master 6 fetches preset channel data from the memory 7, receives data on an intermediate frequency carrier level from the VIF circuit 2 during channel selection, performs a predetermined arithmetic operation on the basis of the received data and sends data to the channel selector 2. In addition, the internal master 6 performs monitoring and controlling of the video processing circuit 4 and the audio processing circuit 5 over the relatively long interval of time that the television receiver 1 is operating. Figures 2A and 2B are examples of waveform diagrams showing the timing present during data transfer between the master and slaves, which is required for the series of control sequences such as described above. More particularly, Figure 2A represents the waveform of the clock signal present on the clock transmission line 10 in Figure 1, and Figure 2B represents a waveform of the data signal present on the data transmission line 9 of Figure 1. As seen in Figures 2A and 2B, when both the lines 9 and 10 are at high levels, the internal bus is in a so-called released state. In that state, the internal master 6 holds the clock transmission line 10 at the same level and changes the data transmission line 9 to a low level, thereby declaring that the master 6 is now the controller. This particular signal level pattern on the lines 9 and 10 is considered the start condition, that is, the start pattern, and is represented by the dashed lines S in Figures 2A and 2B. Accordingly, upon starting, the internal master 6 transmits data over the data transmission line 9, represented in Figure 2B in synchronization, with clock pulses as represented in Figure 2A on the clock transmission line 10. At the conclusion of the data transfer, both the clock transmission line 10 and the data transmission line 9 return to a low level and thereafter, once the clock transmission line 10 rises to a high level and the data transmission line 9 also rises to a high level, this indicates that the internal bus 8 is again released, and this signal pattern is defined as the stop condition or stop pattern shown in dashed lines P in Figures 2A and 2B. Figure 3 is a representation of a format for transferred data on the data transmission line 9 and the segments of this data format will be seen from the following. When the internal master 6 sends a slave address (SLV) following the existence of the start condition (S), as shown in Figures 2A and 2B, this specifies the particular one of the plurality of slaves with which data transmission will be initiated. The data then proceeds with the internal master 6 providing the read/write (R/W) bit that indicates whether transmission or reception is desired, that is, whether read or write is desired, in cases where a memory is selected as a slave, and then the data includes a sub-address (SUB) transmitted following an acknowledge bit (A), which specifies the function or item of the controlled object in the slave. For example, when the video processing circuit 4 is the slave, brightness, contrast, or colour phase can be specified by the sub-address SUB. Next in the data format the internal master 6 sends control data DATA after an acknowledged bit A to perform a predetermined control or adjustment, and then ultimately releases the internal bus 8 by transmitting the stop condition as represented by P in Figures 2A and 2B. When it is desired to provide adjustment during manufacture of the television receiver 1 or during repair or maintenance following manufacture, the adjustment computer serving as an external master 12 can be connected to the terminal 11, so that data may be transferred to each slave to perform control, adjustment, and trouble-shooting by way of the internal bus 8. Because operational difficulties would arise if the internal master 6 were permitted to start its own control sequence during external control, an address SLV allocated to the internal master 6 by means of the external master 12 is specified. As seen in Figure 4, which represents a format of the data as provided by the external master 12, the external master 12 specifies a specific register within the internal master 6 by means of the address REG and then transmits predetermined data D1 that may comprise, for example, "0000 0000" that indicates no operation, thereby inhibiting the internal master 6 from functioning as the master. Upon receipt of the no operation instruction, "0000 0000", the internal master 6 stops functioning as a master and is arranged to operate in the slave mode in which no control data can be issued. It should be noted that in the slave mode, data can be received by the internal master 6 on the internal bus 8 following the specification of the address of that internal master 6. In this state then, the adjustment operation can be continued by use of the external master 12 without interruption by the internal master 6 and, upon completion of the various operations of the external master 12, the external master 12 transmits data (D2) that may comprise for example, "1111 1111" that corresponds to a release instruction, thereby releasing the internal master 6 from its slave mode. Accordingly, once the internal master 6 receives the data D2, the internal master 6 is returned to its master mode in accordance with its predetermined program. The above operations will be additionally described in relation to the flow chart of Figure 5, in which following a start condition in step 1 it is checked to determine whether data D1 has been received, which means that it is determined whether there is an external request to change the internal master 6 from a master mode to a slave mode. If the data D1 has not been received, then the internal master 6 performs its normal functions in step 2 and the procedure returns to the step 1. On the other hand, if the data D1 has been received in the step 1, the internal master 6 is changed into the slave mode in step 3 and in step 4 the internal master 6 operates in the slave mode, that is, it monitors the internal bus 8 for a further input. Subsequently, in step 5 the internal master 6 determines whether data D2 has been received, that is, it checks to see whether there is a request for the internal master 6 to return to its master mode. If the data D2 has been received, the procedure goes to step 6 in which the internal master 6 is changed to its master mode from the slave mode. Consequently, control by means of the external master 12 has been completed and control is thereby returned to the step 1. On the other hand, if the data D2 has not been received in the step 5, the procedure returns to the step 4 to permit the external master 12 to continue its control of the internal bus 8. There will, of course, be some time margin M between the issuance of the data D1 and issuance of the data D2, in which time margin the external master 12 is free to occupy the internal bus 8 and, thus, can execute its adjustment operations in a smooth and uninterrupted fashion. Alternatively, a method similar to Figure 5 can be provided so that the internal master 6 is returned to a master mode at a set or fixed time interval after the point in time in which it enters the slave mode. Similarly, the internal master 6 may be changed to the slave mode upon receiving a specific control data D1 and then be returned back to the master mode upon receiving the same control data a second time, while it is in the slave mode. It should be noted that a parallel data bus may be utilized in place of the serial data bus described above. Additionally, other bit patterns are possible for use in place of the patterns shown in Figure 2 to comprise the start pattern and stop pattern in the data transfer format. Thus, as described, the digital control system can have predetermined control and adjustment operations performed without disturbance from other masters by permitting a single master to hold the other masters in a slave mode, in situations where a plurality of CPUs are each capable of controlling a slave via an internal bus system. Accordingly, an external adjustment computer, for example, connected to the internal bus lines can freely control or adjust slave CPUs and other circuits within an electronic apparatus.

Claims: A digital control system for use in electronic apparatus (1), the system comprising: master control means (6) for the electronic apparatus (1); a plurality of operational circuit elements (2 to 5) of the electronic apparatus (1) arranged to be controlled by said master control means (6); and control bus lines (8) interconnecting said master control means (6) and said plurality of operational circuit elements (2 to 5), said control bus lines (8) forming a two-wire internal bus of said electronic apparatus (1) for transmission of a clock signal and data respectively; characterized by: said electronic apparatus (1) being audio-visual apparatus (1); and auxiliary master control means (12) to be connected to said control bus lines (8) via an external terminal (11) for intializing, as follows: sending data inhibiting said master control means (6) from functioning as the master; controlling said operational circuit elements (2 to 5) in place of said master control means (6); holding said master control means (6) in a slave mode, as long as said operational circuit elements (2 to 5) are controlled by said auxiliary master control means ; and sending data causing said master control means (6) to resume functioning as the master after the operations of said auxiliary master control means (12) have been completed. A digital control system according to claim 1 wherein said auxiliary control means (12) includes means for transmitting address data specifying the master control means (6) to receive control data in advance of a change in operational mode of said master control means (6). A digital control system according to claim 1 wherein said master control means (6) includes means for returning to a master mode after a predetermined time following selection into the slave mode. A digital control system according to claim 1, claim 2 or claim 3 wherein said master control means (6) is incorporated within said audio-visual apparatus (1).

Inventors: MOGI, TAKAO, SUEMATSU, MASAYUKI
Applicants: SONY CORPORATION
Application year: 1986
Main classification: G05B19
IPC codes: G06F13, G06F15, G05B15, G05B19