SYSTEM FOR PROVIDING REPROGRAMMING DATA TO AN EMBEDDED PROCESSOR

Abstract: A system for providing information to alter the software of an electronic data processor embedded in an electronic mod­ ule includes a remote reprogramming module that conducts a sequence of operations to provide data to the processor which the processor uses to reprogramm itself. The system employs a data link having a bi-directional transmission path connecting the processor and the reprogramming module. A controlled switching circuit is provided at each end of the transmission path. Under normal operating conditions, the transmission path is used to transmit a function signal for a function per­ formed by the electronic module. Periodically, the processor operates one switching network to capture the path for trans­ mission of a reprogramming inquiry signal to the re­ programming module. At the same time, the function signal is diverted to an alternate path internal to the electronic module. When the reprogramming module detects a reprogramming in­ quiry, it operates the other switching circuit to gain access to the transmission path. Then, in response to commands from the processor, the reprogramming module undertakes the reprogramming sequence and transfers data to alter pro­ gramm information held in the memory of the processor. Thereafter, both the processor and the reprogramming mod­ ule operate their respective switching circuits to restore the transmission path to its normal operational use for the trans­ mission of the function signal.

Description: BACKGROUND OF THE INVENTION The system of the invention is in the field of reprogramming systems that are used to provide data for altering or modifying program information stored in the memory of a programmed processor. In the development of modern weaponry, the use of microprocessors to enhance the operation and performance of launched weapons is well known. For example, the increasing capacity of modern microprocessors to quickly and accurately perform complex tasks has led to the provision of processor-based guidance capability in weapons (such as missiles) that are aimed and fired at a target. However, it is usually the case that each increment of operational ability provided to a weapon through the use of sophisticated electronics stimulates a corresponding increment or change in the threat which the weapon must meet. Thus, the margin of effectiveness enjoyed by a weapon as a result of a change to its internal electronics is often fleeting. In the past, when a weapon's improved effectiveness was countered by an improvement to the technology of its intended target, the weapon was either altered and discarded and replaced. Alteration of a weapon incorporating electronics can often involve redesign and replacement of electronic circuitry. However, the advent of microprocessor-based weaponry facilitates the modification of a weapon's operation to meet a change in countervailing technology. For example, modification of a weapon's operation, guidance policy, or sensor spectrum can be accomplished by alteration of the implementing software. One such invention appears in Patent Abstracts of Japan, Vol. 8, No. 14 (P-249) (1451), 21 January 1984 which discloses a system for transferring reprogramming data to a self-programmable processor. Another appears in U.S. Patent No. 3,879,713 issued to Bettin. Disclosed in the Bettin patent is a circuit arrangement in which input data lines are temporarily connected to a data processing system by means of output data lines. Interruption time of the parallel output lines is maintained at a constant minimum by the use of a one-shot multi-vibrator which is within the control of the circuitry. This arrangement works well where the interruption time is about 40 microseconds but would be inadequate in a situation in which the output lines are required to connect signals of appreciable and variable frequency content. Many microprocessor-based weapons that are currently deployed were not designed to be easily reprogrammed. In order to alter their programs, these weapons must be returned to a high maintenance echelon, where they are disassembled and reprogrammed. This results in an addition to the total lifetime cost of such weapons and reduces the readiness of the military units from which the weapons are removed for alteration. It would therefore be advantageous to provide a system for adapting a microprocessor-based weapon to be reprogrammed in the field in a manner which does not require physical intrusion into the weapon, and which limits the margin of cost added to the lifetime cycle costs of the weapon. The present system initiates a reprogramming cycle by means of a reprogramming request which is generated by the unit to be reprogrammed. The reprogramming transmission includes signal path sharing with other functional uses. These features are non-conventional approaches enabling the fast and extremely simple reprogramming of the system. SUMMARY OF THE INVENTION According to one aspect of the invention, there is provided a system for transferring reprogramming data, comprising: an electronic module having a plurality of signal paths for conducting signals between the interior and exterior of said electronic module; a self-programmable, command-producing processor in said electronic module; a terminal means in said electronic module and responsive to said processor for connecting said processor and one of said signal paths; a reprogramming data module for being positioned outside said module adjacent said one signal path ; data transfer means in said reprogramming data module and connected to said access means for detecting reprogramming command signals on said one signal path and for decoding said reprogramming command signals to provide plural reprogramming control signals; switching means in said reprogramming data module responsive to one of said reprogramming control signals decoded from an inquiry reprogramming command signal for connecting said data transfer means to said one signal path, and reprogramming data storage means in said data transfer means responsive to other reprogramming control signals for providing reprogramming data signals to said one signal path. According to another aspect of the invention, there is provided an apparatus for providing data to amend a program in a self-programmable, command-producing processor contained in an electronic module having a plurality of active signal paths for conducting signals between the electronic module and another device, comprising: access means switchably connectable to a signal path that conducts a function signal to the exterior of an electronic module containing a self-programmable, command-producing processor, for unidirectionally conducting signals from the signal path; control means connected to receive the unidirectionally conducted signals for, in response to an inquiry command signal, producing a switch command signal; signal path switching means connected between the signal path and the control means for assuming a first state connecting the signal path to the control means in response to the switch control signal; and program transfer means included in the control means and responsive to reprogramming commands received in the signal path for providing program amendment information for the processor on the signal path after the switching means has assumed the first state. According to a further aspect of the invention there is provided a method of altering the program of a command-producing processor contained in an electronic module, comprising the steps of: monitoring a function signal path connected to an electronic module containing a command-producing processor for the presence of a processor-produced reprogramming inquiry command in the signals on the signal path; in response to the occurrence of an inquiry command on the signal path, connecting to the signal path a reprogramming data module including means responsive to predetermined command signals for producing data signals to reprogram the processor; providing a series of reprogramming commands to the reprogramming data module from the processor on the signal path; and providing, in response to the reprogramming command series, reprogramming data signals from the reprogramming data module on the signal path. The present invention overcomes the disadvantages of prior microprocessor-based weapons by providing data useful for amending a program in a self-programmable processor contained in a weapon module that has a plurality of active signal paths for conducting signals between the interior and exterior of the weapon. The system includes a terminal unit in the weapon module that is responsive to a switch command from the programmable processor for connecting the processor to one of the signal paths that conducts a function signal. A reprogrammable module outside the weapon includes a signal path access switch that is switchably connected to the signal path to unidirectionally conduct signals from the signal path without interrupting conduction of the function signal. A reprogramming controller in the reprogramming module is connected to receive the unidirectionally conducted signals from the signal path access switch. The reprogramming controller responds to a received signal that corresponds to a reprogramming inquiry command sequence from the programmable processor by disconnecting the access switch from the signal path and producing a second switch command. A switch circuit in the reprogramming module responds to the second switch command by connecting the reprogramming controller to the signal path. Finally, the reprogramming controller has a reprogramming circuit for, when the reprogramming controller is connected to the signal path, providing a sequence of reprogramming data signals to the reprogrammable processor over the captured signal path. Once the transfer of reprogramming data is complete, the self-programmable processor can implement a reprogramming routine in its operation program to alter its own software, using the data transferred to it by the system of the invention. Therefore, the structure of the system of the invention permits reprogramming of a microprocessor-based weapon at the lowest possible maintenance echelon by providing a reprogramming data transfer function that can be automatically implemented by a weapons operator in the field without physically intruding into the weapon. Further, the system uses existing weapon signal pathways to accomplish the data transfer, thus avoiding the need to structurally alter the weapon by providing additional dedicated pathways for transferring reprogramming data. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 illustrates a shoulder-fired guided missile having a microprocessor-based guidance system. Figure 2 is a block diagram representing the general relation between the system of the invention and electronic circuitry in the missile of Figure 1. Figure 3 is a block diagram of the system of the invention. Figures 4A and 4B are diagrams illustrating the conditions of a terminal unit contained in the system of the invention when the missile of Figure 1 is to be used without being reprogrammed. Figures 5A-5C illustrate conditions of the terminal unit of Figures 4A and 4B and a reprogramming module switching circuit included in the system of the invention when the weapon illustrated in Figure 1 is to be reprogrammed before firing. Figure 6 is a more detailed block diagram of the reprogramming module used in the system of the invention. Figure 7 is an illustration of the format of a command issued by the weapon's processor and used to control a reprogramming data transfer sequence performed by the reprogramming module. Figure 8 is a timing diagram illustrating the succession of operations during the reprogramming data transfer sequence performed by the system of the invention. Figure 9 is a state transition diagram illustrating the flow of operations undertaken by the system of the invention during the reprogramming data transfer sequence of Figure 8. Figure 10 is a flow diagram illustrating a sequence of reprogramming control operations undertaken by the processor to obtain reprogramming data from the system of the invention. Figure 11 is a diagram of the structure of a control data block transferred to the processor during a reprogramming data transfer sequence. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Figure 1 illustrates a shoulder-fired missile 10 including a microprocessor-based system that controls target acquisition and guidance of the missile. Prior to firing, the missile is held in a launching assembly 11 that enables a Marine or a soldier to shoulder the missile for aiming, target acquisition, and launching to target. The shoulder launching assembly includes a gripstock 12 having a trigger that is pulled when the missile is to be launched. Since the missile of Figure 1 is fully portable it can be transported to different portions of the battlefield where different enemy threats prevail. In order to flexibly respond to different threats, the system of the invention provides to the operator the opportunity to insert a reprogramming module included in the system of the invention into a receptacle in the gripstock so that the acquisition and guidance method of the microprocessor in the missile can be changed to accommodate the change in threats. Figure 2 shows the arrangement of parts of the system of the invention as they are employed with the missile of Figure 1 in a battlefield. In Figure 2, the missile 10 has a guidance system module 20 including a processor system for implementing the guidance policy of the missile through the execution of a stored processor program. The guidance processor is conventional in that it includes interconnected processing, addressing, and interfacing circuitry together with memory circuitry for storing an operational program that includes target acquisition and guidance procedures. Such memory circuitry preferably includes circuitry that holds program instructions in addressable locations and that is responsive to memory read and write operations. Since the memory circuitry of the guidance system processor in the missile 10 responds to write as well as to read operations performed by the CPU (central processing unit) of the processor, the program instructions that it contains can be altered by the CPU executing a series of write cycles in which new program instructions are entered into the circuitry. A sequence of such write operations that alter a block of program instructions in a software module constitutes reprogramming. The guidance processor obtains the data necessary to reprogram itself from the system of the invention. Once obtained, the data is used by the processor in a conventional reprogramming operation (not described herein) to alter various predetermined portions of its operation program. The data to be entered during reprogramming memory write operations is obtained by the guidance system processor from the system of the invention in a sequence of data transfer operations which is called a reprogramming sequence. After (or during) the transfer of reprogramming data from the system, the processor executes conventional instruction sequences to appropriately write the data to memory. Transfer of reprogramming information to the guidance system processor is accomplished by the reprogramming data transfer system of the invention, which includes a reprogramming data module 26 and a processor terminal unit 27, illustrated in Figure 2. Included in the missile system is a communications cable 28 containing a plurality of signal paths that are used to conduct signals between control circuits and actuators in the griptstock 12 of the missile launcher and the missile electronics. One such signal path is a bi-directional signal line 29 that passes through the reprogramming data module 26 when the module is installed in the gripstock 12. Reference to Figure 3 provides a clearer understanding of the reprogramming data transfer system of the invention and how it is linked to provide reprogramming information to processing circuitry in the guidance module 20 contained in the missile 10. In Figure 3 the guidance system processing circuitry includes three microprocessors 32-36, referred to collectively as the guidance processor, linked together by a common database 37. As is conventional, the microprocessors 32-36 each have associated programmable memory circuitry, not shown, into which reprogramming data can be entered by conventional write operations. The bi-directional signal path 29 includes a pair of oppositely-directed, unidirectional signal paths 29a and 29b. A hand-operated, single-pole, single-throw switch 38 is connected into the signal path 29a. Before the switch 38 is activated, the signal path 29a is continuous. In the guidance system 20 of the missile 10, the signal paths 29a and 29b are shorted together by a jumper in the gripstock 12 when the reprogramming data module 26 is not in place. The jumper is placed between nodes N₁ and N₂. The normal purpose of signal path 29 is to provide a return pathway to indicate to the guidance system 20 when the operator of the missile 10 has aimed the missile at a target, which is indicated by depressing switch 38. The guidance system 20 senses when the target acquisition is made because an analog function signal F o output by the guidance system and connected to the signal path 29a is sensed as an input function signal F i that returns to the guidance system 20 on the signal lead 29b. In the normal operation of the guidance system 20, the function signal F o is generated in the guidance system 20 by means not illustrated in Figure 3 and is output on the signal line 29a which is connected to the return signal line 29b in the gripstock 12. The function signal returns to the guidance system 20 on signal line 29b as F i whose presence is periodically sensed by other means, not shown, in the guidance system 20. When the operator of the missile spots a target to be intercepted by the missile, the operator will depress the switch 38, opening the line 29a and preventing the input function signal F i from being returned to the guidance system 20. If means in the guidance system fail to detect the input function signal for a certain period of time, the guidance system will undertake procedures to acquire the target, set the initial guidance equations, and propel the missile from the launcher toward the target. In its preferred embodiment, the system of the invention is permitted to use the bi-directional function signal path comprising the signal lines 29a and 29b to undertake a reprogramming operation. Use of the function signal path is allocated to the system of the invention by the provision of means in the guidance processor to periodically assert control over the signal path while actuating an alternate means of conducting the function signal during the reprogramming sequence. The means to accomplish these objectives is provided by the terminal unit 27 that resides in the missile guidance system 20. As illustrated in Figure 3, the terminal unit 27 includes a conventional universal asynchronous receive/transmit device (UART) 40, a two-pole analog switch 42, and a single-pole semiconductor switch 43. The analog switch 42 includes terminals 42a-42d. Terminals 42a and 42d are connected to signal lines 45 and 46, respectively. Signal line 45 is the internal guidance system signal path for the output function F o , while the path 46 provides internal guidance system conduction for the input function signal F i . Bi-directional data transfer between the switch 42 and the UART 40 takes place on signal lines 48 and 49. The signal line 48 provides an output path for the serial data (S o ) that is output by the UART 40. Signal path 49 provides an input path for the serial data (S i ) coming into the UART 40. The UART 40 is also connected to the database 37. The poles of the switch 42, P₁ and P₂, are connected to signal lines 29a and 29b, respectively. In operation, the UART 40 conventionally provides a serial-to-parallel and complementary parallel-to-serial staging interface between the guidance system processor database 37 and signal lines 48 and 49. In operation, the guidance processor provides reprogramming commands, described later, in parallel to the UART 40. The commands are serialized by the UART and transferred to the reprogramming unit. Reprogramming data is received in serial format by the UART 40 from the reprogramming data module 26, converted to parallel format, and passed, via the database, to the guidance processor. The semiconductor switch 43 of the processor terminal unit is connected between the function signal lines 45 and 46. Control of the switches 42 and 43 is afforded by control signal lines 51 and 52, with the first control signal C₁ provided by the microprocessor 32 to control the setting of the analog switch 42, and a second control signal C₂ provided from the same source to control the setting of the switch 43. The reprogramming data module 26 includes a two-pole analog switch 57 having terminals 57a-57d and pole terminals P₃ and P₄. The reprogramming data module 26 also includes a conventional UART 59 (equivalent to the UART 40), a passive access switch 61, and a controller 63. A jumper 65 is connected between the switch terminals 57b and 57c, while a pair of oppositely-directed signal leads 67 and 68 are connected to conduct signals between terminal 57a and the UART 59, and between the UART 59 and terminal 57d, respectively. The UART 59 and the controller 63 are connected to exchange plural parallel signals on a bi-directional signal interface 69. In operation, the controller provides reprogramming data, described later, in parallel to the UART 59. The data is serialized by the UART and transferred to the guidance processor. Reprogramming data transfer commands are received in serial format by the UART 59 from the guidance processor converted to parallel format and passed, via the interface 69, to the controller. The access switch 61 is connected to conduct signals unidirectionally from the signal line 29a to the signal line 67 where they are conducted to the UART 59. The controller 63 provides a pair of control signals C₃ and C₄ on signal lines 70 and 71, respectively. The control signal C₃ determines the state of the switch 57, while the control signal C₄ controls the access switch 61. In the preferred mode of operation, when the missile is being used by an operator in the field, power is initially provided for all electronic functions of the missile system. Immediately after the system is turned on, the guidance system 20 begins to continually transmit F o and to sense F i . At the same time, the guidance system processor will periodically attempt to initiate a reprogramming sequence with the reprogramming data module. Since communications for both the function signal and the reprogramming sequence must be conducted on the signal lines 29a and 29b, the initial steps of the reprogramming sequence attempted by the guidance system processor will provide an alternate continuous signal path for the function signal while the reprogramming inquiry is being made. This will prevent a false indication of target acquisition being given to the guidance system during transfer of reprogramming data to the guidance system processor. Preferably, the reprogramming sequence undertaken by the guidance processor is indifferent, in its initial steps, to whether or not a reprogramming data module has been installed in the gripstock 12. In the event that a reprogramming data module is not installed in the gripstock, the guidance processor executes an initial control signal sequence that results in the terminal unit switches being set in the sequence illustrated in Figures 4A and 4B. When the missile system electronics are initially turned on, the guidance processor system provides signals C₁ and C₂ appropriate to place the switches 42 and 43, respectively, in the states illustrated in Figure 4A. In Figure 4A, the switch 42 is set by the guidance processor to connect signal line 45 to signal line 29a and to connect signal line 29b to signal line 46. The signal lines 29a and 29b are connected together by a jumper J in the gripstock that permits F o to be redirected to the guidance system 20 as F i . At the same time, the switch 43 is held open by the guidance processor. In an initial loop in the reprogramming operations of the guidance system processor, the processor transmits a digital command sequence that is intended to stimulate a reprogramming data module to initiate a reprogramming sequence. In order to get the message to the reprogramming data module, the guidance processor system sets the switches 42 and 43 to the states illustrated in Figure 4B. In Figure 4B, the switch 42 is set to connect the signal line 48 to the signal line 29a and the signal line 29b to the signal line 49. At the same time, the guidance processor closes the switch 43 to provide a return path for the function signal F o . This prevents a false target acquisition indication from being detected by the guidance system while a reprogramming sequence is being conducted. Upon failing to obtain a response from a reprogramming data module, the guidance processor system will return the switches 42 and 43 to the settings illustrated in Figure 4A. In the event that a reprogramming data module has actually been installed in the gripstock of the missile system, the sequence of switching operations illustrated in Figures 5A-5C will result. Initially, when the missile system is first activated, the guidance system processor will set the switch 42 to provide conductivity between signal leads 45 and 29a, and between signal leads 29b and 46. The controller 63 will set the switch 57 to provide a return path for the guidance system function signal through the jumper 65. This permits the guidance system 20 to look for a target acquisition indication from the missile operator. In the initial condition of the complete reprogramming system, illustrated in Figure 5A, the passive access switch 61 is initially in a state that provides unidirectional conductivity from the signal lead 29a to the reprogramming signal lead 67. This permits the controller 63 to continuously monitor, through the UART 59, the signal line 29a for the presence of a reprogramming inquiry. So long as the function signal F o is present, the controller 63 takes no action. The next step, illustrated in Figure 5B, occurs when the guidance processor sets the processor terminal unit switches so that the internal function signal is routed through the switch 43 and the guidance processor outputs a reprogramming inquiry through the UART 40, and the signal path 48, onto the signal path 29a. The reprogramming inquiry is conducted from the signal line 29a to the reprogramming module signal line 67, and from there through the UART 59 to the controller 63. When the controller 63 detects the presence of a reprogramming inquiry through the access switch 61, it changes the states of the control signals C₃ and C₄. In response to the changes in C₃ and C₄, the switches 57 and 61 are placed in the states illustrated in Figure 5C. As shown in Figure 5C, a pair of oppositely-directed, unidirectional pathways exist between the guidance processor and the controller 63 over the signal lines 29a and 29b; at the same time, the path between signal paths 29a and 67 is disabled by the open condition of the switch 61. This permits the conduction of a reprogramming sequence involving the transfer of data between these two units that is necessary to reprogram the guidance processor. When the reprogramming sequence is complete, the guidance processor returns the switches 42 and 43 to the states illustrated in Figure 5A, while the controller 63 places the switch 57 in the state illustrated in Figure 5A. Since it is desired in the preferred embodiment to undertake only one complete reprogramming sequence each time a reprogramming module is installed, the access swtich 61 is left open (as inidicated by the dashed line 72 in Figure 5A) in order to prevent a subsequent, identical reprogramming sequence before the missile is fired. The switch 61 can only be placed in a conducting state if the gripstock power is turned off, and on again. The guidance processor initiates, regulates and terminates a reprogramming sequence by means of the commands listed in Table I. The commands represented in Table I consist of conventional 8-bit data words that are transmitted to the reprogramming data module through the data link described above. They are represented in Table I by conventional hexadecimal notation wherein the first hexadecimal digit corresponds to the value of the most significant 4 bits of the command, while the second corresponds to the hexadecimal value of the least significant 4 bits. In Table I X denotes a don't-care condition. Commands Functions 0a Setup 1a Latch 4 LSB's (a) of Starting Address 2b Latch Next 4 Bits (b) of Starting Address 3c Latch Next 4 Bits (c) of Starting Address 4d Latch 4 MSB's (d) of Starting Address and Preset Counter to Latched 16 Bit Address 5x Return to Function Signal Transmission Mode 6x Continuous Data Transmission 7x Master Reset For All Registers and Counter 8x/0x Single Step Data Transmission By Alternatively Changing Command MSB From "1" to "0" The controller 63 that detects and responds to the Table I commands is illustrated in greater detail in Figure 6 and includes a command decoder 73, and address latch 74, and step/continuous (step /cont) control logic 76. These three units of the controller receive, in parallel format, the commands transmitted from the guidance processor. The UART 59 passes commands to the controller 63 in conventional parallel format. The UART 59 also provides to the controller 63 conventional UART transmit control (TC) signals that differentiate between provision of received command data from a data port R and acceptance of reprogramming data to be serialized and transmitted to the guidance processor through a transmit port T. For a better understanding, the command format is illustrated in Figure 7. Each command has 8 bits, R₇-R₀, with R₇ the MSB and R₀ the LSB. The most significant bit (R₇) of a received command is provided to the control logic 76, the next bits (R₆-R₄) are provided to the command decoder 73, and the least significant bits (R₃-R₀) to the address latch 74. The decoder 73 responds to the state of the command bits R₆-R₄ to provide one of eight internal control signals: STROBE (4 lines), RESET, PRESET, REPCOMP, and CONTINUOUS COUNT. When data is to be transferred byte-by-byte from the reprogramming module to the guidance processor, the control logic 76 responds to a sequence of alternate 1's and 0's in bit R₇ of the command by providing a COUNT pulse. The least significant bits (R₃-R₀) of four consecutive commands are strobed into the address latch 74, whence they are transferred to an address counter 78 to preset it to a corresponding address count. The address counter 78 provides a conventional 16-bit address code, the least significant 12 bits of which comprise a memory address (ADDRESS), while the remaining 4 bits constitute a code that is deciphered by a typical decoder 80 to generate a MEMORY SELECT signal. Both the 12-bit ADDRESS and the decoded MEMORY SELECT signals are provided to a reprogramming memory 82 that includes a plurality of conventional read-only memory (ROM) modules. The ROM modules in the memory 82 contain conventional data entries at locations accessible to the MEMORY SELECT and ADDRESS signals. The stored data constitutes the reprogramming data that is transmitted to the guidance processor during a reprogramming sequence. The MEMORY SELECT signal selects a ROM module, while the ADDRESS signal specifies an address in the selected module. Conventionally, the reprogramming data is stored in the memory 82 in byte format, so that each addressed location of a selected module provides a byte (8-bits) of reprogramming data that is presented to the port T of the UART 59 for serialization and transmission to the guidance processor. A conventional digital clock/timer circuit 90 includes timing components, not shown, that provide a conventional digital CLOCK signal that synchronizes the transmit and receive functions of the UART 59 with the operations of the controller 63 and which is fed to the control logic 76 to develop the COUNT signal for the address counter 78. The CLOCK signal is continuously provided through all operational states of the reprogramming system, except one, as explained below. The clock/timer circuit 90 further includes conventionally resettable time-out circuitry that begins to count from a point established by the RESET signal for a predetermined period of time. At the end of the time-out period, the clock/timer circuit 90 provides a TIME-OUT signal. Both the TIME-OUT and RECOMP signals are provided to a conventional OR gate 92 to enable a signal (END) indicating either that a reprogramming cycle has ended, or that the time-out period has elapsed. A pair of conventional flip-flops 94 and 96 are reset by the RESET signal. The flip-flop 94 is additionally set by the END signal. Both flip-flops are set to initial states by the provision of a signal from a power-up reset circuit 98 that provides a single pulse when the power to the reprogramming module is turned on. The outputs of the flip-flops 94 and 96 form the C₃ and C₄ control signals, respectively, that establish the states of the switches 57 and 61. The reprogramming sequence operation of the reprogramming data transfer system in response to commands transmitted by the guidance processor can be understood with reference to Figures 8-11. Figure 8 is a waveform diagram illustrating the correspondence between commands received by the reprogramming data module (the waveforms R₇-R₀) and the internal control signals generated by the module to define its reprogramming sequence state. The states defined by the control signals are indicated beneath the horizontal axis of Figure 8, and the transition between the states in a reprogramming cycle is shown in the diagram of Figure 9. The procedure implemented by the guidance processor to stimulate, control, and terminate a reprogramming sequence in embodied in the program flow diagram of Figure 10. Prior to a reprogramming sequence, power is applied to the missile electronics and the reprogramming data module. Power-up reset functions in both the missile electronics and the module place the switches 42, 43, 61, and 65 in the states illustrated in Figure 5A and reset latches, flags, and other storage circuitry to other predetermined states. The guidance processor periodically interrupts its normal operations to determine whether to assert control over the data link comprising the signal lines 29a and 29b. If a reprogramming sequence has previously been completed, the link will not be needed and the processor will resume normal operations (decision block 99 of Figure 10). If a reprogramming operation has not previously been completed, the positive exit will be followed from block 99 and the settings of the switches 42 and 43 will be changed to those illustrated in Figures 4B and 5B. Then, the guidance processor will perform a reprogramming inquiry command sequence consisting, in the preferred embodiment, of the alternate transmission of two differentiable command codes, for example, a 70 command followed by a 77 command. The sequence will be repeated three times, with enough time between each transmission to sample the data link return obtained by the UART 40. If the guidance processor detects the complete sequence, it will terminate the inquiry loop, change the settings of the switches 42 and 43 back to the conditions of Figures 4A and 5A and resume normal operations. Normally the inquiry command sequence will not be interrupted in the case corresponding to Figures 4A and 4B; that is, where a reprogramming data module has not been installed in the gripstock. The reprogramming module will also not respond to an inquiry sequence in the event that it has previously completed a reprogramming sequence. In this case, as explained below , the switch 61 will be open, and thereby preventing the reprogramming data module from detecting the inquiry sequence. It should be evident that when the inquiry command sequence has been transmitted under the conditions just described, it will be output serially by the UART 40 on the transmission line 29a and returned to the UART 40 on the transmission line 29b through either the jumper 75 or the jumper 65. When, however, a reprogramming data module has been installed in the gripstock and has not previously performed a reprogramming sequence, the switches 57 and 61 will be in the states illustrated in Figure 5B, with the switch 61 providing unidirectional conduction of inquiry command sequence signals from the signal line 29a to the UART 59. This will enable the inquiry commands to be passed to the controller 63, thereby enabling it to respond appropriately by initiating a reprogramming sequence. Assuming that state 0 of Figure 8 and 9 corresponds to the reprogramming module 26 in an initial power-up reset condition and the switches 57 and 61 are in the states illustrated in Figure 5B, a reset command having the form 77 will place the reprogramming module in state 1, wherein the decoder 73 will decode the command bits R₆-R₄ to provide the RESET signal to the address latch 74, and the switch control flip-flops 94 and 96. This will reset the latch 74 by fully loading it, and reset the switch control flip-flops 94 and 96 to cause C₃ to fall and C₄ to rise (state 1 in Figure 8). This places the switches 57 and 61 in their Figure 5C conditions, thereby enabling the reprogramming data module 26 to conduct bi-directional data transfer with the terminal unit 27 and the guidance processor. It also opens the pathway between signal line 29a and signal line 67 through the access switch 61. As shown in Figure 8, C₄ remains disabled throughout the remainder of the reprogramming sequence (and after its completion), which keeps the access switch 61 open. When the state of the switch 57 changes, the inquiry loop commands cannot be returned to the guidance processor. When the inquiry sequence is interrupted, the guidance processor program will follow the positive exit from decision block 100 of Figure 10, and issue commands appropriate for control of a reprogramming sequence. Once the inquiry command sequence has been interrupted the guidance processor will send a final reset 77 command and follow that with a latch command (4X), which sends the reprogramming data module to state 2. In state 2, the 4X command causes the decoder 73 to output the PRESET signal, which causes the full count held in the latch 74 to be transferred into the address counter 78. With a full count, the first COUNT pulse to the counter 78 will send it to a zero count. Following the 4X command, the guidance processor will obtain a block of control information from the reprogramming data module that is held in the memory 82 beginning at address location 0 (which will be the first address output by the counter 78). The format of the control block is illustrated in Figure 11 and includes 20 bytes of information. The first 2 bytes include a test code pattern by which the guidance processor recognizes that a proper data link has been established with the reprogramming data module. Following the test code are 2 bytes (byte 2 - byte 3) of data that constitute a 16-bit address indicating the beginning address in the reprogramming memory 82 where a first block (block 1) of data intended for transfer to the microprocessor 32 is stored. Following these 2 bytes are 2 more bytes (byte 4 - byte 5) that represent a 16-bit address indicating the starting address where the first block of data is to be stored in the memory of processor 32. Finally, bytes 6 - 7 indicate the size of data block 1. Similarly, the following 6 bytes (byte 8 - byte 13) of the control block provide a storage start address, a microprocessor storage address, and a block size for a block of reprogramming information destined for the microprocessor 34. The last 6 bytes define a block storage address, a destination storage address, and a block size for a third block of reprogramming data to be transferred to the microprocessor 36 in the guidance processor. The control data block is obtained, byte-by-byte, from the reprogramming data module with each byte loaded from the reprogramming module to the guidance processor by means of a repeating command sequence sent by the guidance processor consisting of first an 80 and, next, a 00. Viewed in another way, the guidance processor will toggle the most significant bit (R₇) of successive commands, with each positive transition eliciting a COUNT pulse from the control logic 76. The control logic 76 is conventionally designed to provide the COUNT in response to a change of state in R₇ under the condition comprising a signal combination including a disabled CONTINUOUS COUNT signal from the decoder 73, TRANSMIT CONTROL signals from the UART 59 indicating an opportunity to transmit reprogramming data provided to the port T, and the first negative CLOCK transition occurring after the command MSB (R₇) is positive. The step transfer of data from the reprogramming data module to the guidance processor is indicated in Figures 8 and 9 by a transition from state 2 to state 3 caused by an 80 command, followed by transitions between state 3 and state 3A that are caused by other transitions of the command MSB. When 20 bytes of control block data have been transferred, the guidance processor evaluates the test code to determine whether or not it is valid. This is illustrated by decision block 102 in Figure 10. If the test code is invalid, the guidance processor can make a second attempt to obtain valid control data by sending a 7X/4X command sequence, which will take the reprogramming data module to state 2. Then the 80/00 command sequence can be used to transfer the control block a second time. Assuming that the test code is valid, the guidance processor will follow the positive exit from decision block 102 and load the address of the current reprogramming data block with the command sequence: 1a₁, 2b₁, 3c₁, 4d₁. This will carry the reprogramming module from state 3A to state 7 through states 4, 5, and 6, respectively. This sequence will cause a sequence of 4 distinct STROBE signals to be provided by the decoder 73 to the address latch 74. Each STROBE will cause the current values of the current command LSB's (R₀-R₃) to be strobed into the address latch 74. At the end of the STROBE cycle the 16-bit address (a₁ b₁ c₁ d₁) defining a data block start address (a₁ b₁ c₁ d₁) will have been accumulated in the latch 74 and transferred by the PRESET signal to the address counter 78. At this point, the reprogramming data module is prepared to transfer data continuously in a sequence of bytes beginning at the preset address in the address counter 78. Continuous transfer of data beginning at the entered address will be undertaken by the reprogramming data module for so long as bits R₅ and R₆ output by the UART 59 are high. Bits R₅ and R₆ will be high in response to a 6X command transmitted by the guidance processor until a subsequent different command is received. The 6X command causes the decoder 73 to raise the CONTINUOUS COUNT signal which enables the control logic to provide a COUNT signal with each negative transition of the input CLOCK with regard to the condition of the transmit control signals from the UART 59. The COUNT signal is fed in phase to the address counter and to the TXRL (transmit register load) part of the UART 59. Each COUNT pulse changes the address; each new address provides a byte of reprogramming data to port T₀₋₇ of the UART 59; and the COUNT pulse notifies the UART 59 to acquire the byte for serialization and transmission. The guidance processor counts the bytes in the reprogramming block until the correct number (based upon the block size) have been transferred. Then, if another block is to be transferred, the guidance processor will transmit the following command sequence: 0a₂, 1a₂, 2b₂, 3c₂, 4d₂, and 6X. This will carry the reprogramming data module back to state 9 where continuous transfer of the next block of reprogramming data starting at address (a₂ b₂ c₂ d₂) is obtained. When all of the reprogramming blocks have been transferred, the reprogramming sequence will have been completed and the guidance processor will take the positive exit from decision block 104, send a 5X command to the reprogramming data module, set a flag indicating that reprogramming has been successfully completed, change the settings of switches 42 and 43, and resume its normal operations. The 5X command will place the reprogramming data module in its final state (END) in which the decoder 73 will raise the REPCOMP signal. The REPCOMP signal will enable the gate 92 to raise the END signal to a positive level, which will disable the timer 90 and disable C₃. With C₃ disabled, the switch 57 will go back to the condition illustrated in Figure 5A and the reprogramming sequence will be complete. The END signal can also be generated by the clock/timer 90. In state 1, the power-up sequence starts the TIME-OUT period of the clock/timer 90 running. The TIME-OUT period establishes the maximum time allowed for completion of a reprogramming sequence. When the TIME-OUT period ends, the TIME-OUT signal changes state, which enables the gate 92 to raise the END signal. The END signal blocks the CLOCK signal from the UART 59 and from the control logic 76. The END signal also causes the control signal C₃ to change state, which places the switch 57 in a configuration illustrated in Figure 5A. This prevents the reprogramming data module responding to further commands from the guidance processor and, therefore terminates further data transfer to the guidance processor. Further, the END signal, in disabling the reprogramming data module from responding to commands, also causes the termination of reprogramming operations in the guidance processor. Although not illustrated in Figure 10, the guidance processor reprogramming control process will terminate reprogramming operation and return to normal ones if no data is received from the reprogramming data module 26 within a certain period of time.

Claims: A system for transferring reprogramming data, comprising: an electronic module (20) having a plurality of signal paths (29,29a,29b) for conducting signals between the interior and exterior of said electronic module (20); a self-programmable, command-producing processor (32-36) in said electronic module (20); a terminal means (27) in said electronic module (20) and responsive to said processor (32-36) for connecting said processor (32-36) and one of said signal paths (29,29a,29b); a reprogramming data module (26) for being positioned outside said module (20) adjacent said one signal path (29,29a,29b); data transfer means (59,63) in said reprogramming data module (26) and connected to an access means (61) for detecting reprogramming command signals on said one signal path (29,29a,29b) and for decoding said reprogramming command signals to provide plural reprogramming control signals; switching means (57) in said reprogramming data module (26) responsive to one of said reprogramming control signals decoded from an inquiry reprogramming command signal for connecting said data transfer means (59,63) to said one signal path (29a), and reprogramming data storage means (82) in said data transfer means (63) responsive to other reprogramming control signals for providing reprogramming data signals to said one signal path (29b). The system of Claim 1 wherein said one signal path (29a) is for conducting an analog function (F₀) signal when not connected to said processor (32-36). The system of Claim 2 further including means in said terminal means (27) for providing an alternate signal path (29b) for said function signal when said processor (32-36) is connected to said one signal path (29a). The system of Claim 1 wherein said data transfer means (63) responds to a predetermined sequence of reprogramming commands to conduct a reprogramming data transfer sequence including said provision of reprogramming data signals. The system of Claim 4 wherein said data transfer means (63) responds to a return command in said reprogramming command sequence by operating said switching means (57) to disconnect said data transfer means (63) from said electronic module signal path (29). The system of Claim 4 further including means (90) in said data transfer means (63) for terminating said reprogramming data transfer sequence after the elapse of a predetermined amount of time. A system for providing data to amend a program in a self-programmable, command-producing processor contained in an electronic module (20) having a plurality of active signal paths for conducting signals between said electronic module (20) and another device, comprising: access means (61) switchably connectable to a signal path (29a) that conducts a function signal to the exterior of an electronic module (20) containing a self-programmable, command-producing processor (32-36), for unidirectionally conducting signals from said signal path (29a); control means (63) connected to receive said unidirectionally conducted signals for, in response to an inquiry command signal, producing a switch command signal; signal path switching means (57) connected between said signal path (29a,29b) and said control means (63) for assuming a first state connecting said signal path (29a) to said control means (63) in response to said switch control signal; and program transfer means included in said control means (63) and responsive to reprogramming commands received on said signal path (29a) for providing program amendment information for said processor (32-36) on said signal path (29b) after said switching means (57) has assumed said first state. The system of Claim 7 wherein said function signal (F₀) is an analog function signal. The system of Claim 8 wherein said reprogramming commands and said program amendment information comprise digital signals. The system of Claim 7 wherein, after transferring predetermined program amendment information, said control means (63) is responsive to a return command signal on said signal path (29a) for changing said switch command signal, and said signal path switching means (57) assumes a second state disconnecting said control means (63) from said signal path (29a,29b) in response to said switch command signal change. The system of Claim 7 wherein said control means (63) responds to a predetermined sequence of reprogramming commands on said signal path (29a) by performing a reprogramming sequence of operations including said provision of program amendment information. The system of Claim 11 further including means (90) in said control means (63) for terminating said sequence of operations after a predetermined amount of time from the beginning of said sequence of operations. A method of altering the program of a command-producing processor contained in an electronic module, comprising the steps of: monitoring a function signal path (29) connected to an electronic module (20) containing a command-producing processor (32-36) for the presence of a processor-produced reprogramming inquiry command in the signals on said signal path (29); in response to the occurrence of an inquiry command on said signal path (29), connecting to said signal path (29) a reprogramming data module (26) including means (63) responsive to predetermined command signals for producing data signals to reprogram said processor (32-36); providing a series of reprogramming commands to said reprogramming data module (26) from said processor (32-36) on said signal path (29); and providing, in response to said reprogramming command series, reprogramming data signals from said reprogramming data module (26) on said signal path (29). The method of Claim 13 further including, after the provision of said reprogramming data signals, providing to said reprogramming data module (26) a command signal to end said reprogramming data signals, and ending said reprogramming data signals in response to said end command signal. The method of Claim 14 further including disconnecting said reprogramming data module (26) from said signal path (29) in response to said end command signal. The method of Claim 13 further including providing an alternate signal path (29b) for conducting said function signal (F i ) while said reprogramming data module (26) is connected to said signal path (29a). The method of Claim 15 further including providing an alternate signal path (29b) for conducting said function signal (F i ) while said reprogramming data module is connected to said signal path (29a). The method of Claim 17 further including restoring said function signal to said signal path (29) when said reprogramming data module (26) is disconnected therefrom. A data link for selectably connecting a pair of modules, comprising: a signal path (29a) for conducting predetermined function signals (F₀) between the interior and exterior of a first module (20) containing a processor (32-36) that produces control and command signals; a first switching unit (27), adapted to be contained in said first module (20), responsive to a first control signal for connecting said processor (32-36) to said signal path (29a) for bi-directional signal transfer thereon; function switching means (42) in said first switching unit (27) that responds to a second control signal for providing an alternate signal path (29b) for conduction of said function signals (F i ) when said processor (32-36) is connected to said signal path (29a); and a second switching unit (57) adapted to be contained in a second module (26) and responsive to a command signal on said signal path (29a) for providing said second module bi-directional signal transfer access to said signal path (29a). The system of any one of claims 1 through 6 wherein said system is for transferring said data to a self-programmable command producing processor that is contained in an electronic module having a plurality of signal paths for conducting signals between the interior and exterior of the electronic module. The system of any one of claims 1 through 6 or 20 further comprising access means (61) in said reprogramming data module (26) for unidirectionally conducting signals from said electronic module signal path (29). The system of any one of claims 1 through 6 or 20 through 21 further comprising connecting means (42) in said terminal means (27) responsive to said processor (32-36) for connecting and disconnecting said processor and one of said signal paths (29, 29a, 29b).

Inventors: HARDESTY, DAVID G., HUI, KENNETH H., MAK, KING C.
Applicants: HUGHES MISSILE SYSTEMS COMPANY (A DELAWARE CORPORATION)
Application year: 1986
Main classification: G06F9
IPC codes: G06F9, G06F15