BACKGROUND OF THE INVENTION
This invention relates to a controller for use with a camera whereby the camera can be put into or be maintained in a state of maximum readiness whilst facilitating operator adjustment by means of a single control so as to allow a choice between depth of focus and the ability of the camera to freeze movement. By the expression "state of maximum readiness" is meant herein that the camera is enabled to take a correctly exposed photograph irrespective of the setting of the said control whenever the exposure value required lies within the range of exposure values corresponding to the shutter and lens of the camera.
Various mechanisms are already known to be incorporated in cameras for the purpose of controlling the shutter speed and the f-number in relation to the required exposure. Usually they are of one or other of two types, namely the so-called "shutter priority" system and the "f-number priority" system. With the shutter priority system the operator selects the shutter speed to his requirements and the said mechanism automatically selects the appropriate f-number for the available light and the speed of the film in use. With the f-number priority system the operator selects the f-number required and the mechanism takes care of the shutter speed. In both systems supervision of the camera setting by the operator is necessary and usually some manual adjustment thereof is required, even though the exposure value needed lies within the exposure value range of shutter and lens of the camera.
A somewhat less sophisticated system is known, called the "fully programmed" system which selects both f-number and shutter speed automatically. This system does maintain the camera in a state of maximum readiness but it denies the operator any control over the f-number and shutter speed. Such control is desirable because the operator may wish to vary the depth of focus or avoid blurring of the image on the film due to rapid movement of objects in the camera's field of view.
There is also a camera controller system known, built into a camera, which incorporates both the shutter speed priority system and the f-number priority system. A manually operated selector switch determines which of the two systems is to be operative. The operator sets the switch according to his choice of priority and then sets the required parameter, i.e. aperture or shutter speed of the camera, with the respective manual control. A digital computer incorporated in the camera then determines the setting of the other parameter for the instant brightness (i.e. the setting of the shutter speed or the aperture respectively) where it is possible to do so. If the calculated setting of the second said parameter is outside the range of the camera, and therefore impossible, the controller sets it at the limiting value (maximum or minimum as the case may be), recalculates the first said parameter for optimum performance, and resets the latter automatically.
With the present invention the operator has only one variable control to concern himself with, namely the bias setting. For all acceptable values of brightness for the camera, an internal controller automatically selects an optimum set of f-number and shutter speed values and provides f-number and shutter speed setting signals in which the relationship of f-number and shutter speed is a function of the bias setting. A uniform variation of f-number and shutter speed settings over the whole of the bias setting range is provided and when the operator wishes to alter the relationship of these two parameters he has only to alter the bias control to a new setting. The controller may be arranged such that the camera is always in a state of maximum readiness without it being necessary for the operator to make any form of adjustment of the aperture and shutter controls.
Thus it is an object of this invention to provide a new and improved controller for a camera.
It is a further object of this invention to provide controller means which will enable the camera operator to maintain his camera in a state of maximum readiness yet facilitate continuous operator control over the depth of focus and the ability of the camera to freeze movement.
SUMMARY OF THE INVENTION
The present invention provides in a camera having means for determining the exposure value a camera-setting control comprising an operator-set bias adjustor which in relation to its setting provides a signal representative of a desired relationship between f-number and shutter speed, and a processor connected to receive the said signal which in response thereto, and in response to a signal representative of the exposure value, determines the optimum shutter speed and f-number for the given conditions and bias setting.
In a preferred embodiment of the controller the controller is built into the camera together with a conventional light intensity determining device (which provides a light value signal for the determination of the exposure value) and means for setting shutter shutter speed and f-numbers automatically from the values calculated by the processor. The controller may be triggered into the operation by a mechnical release such as the normal shutter cocking device or alternatively it may operate cyclically thereby constantly resetting the camera. Various ways of implementing the controller are possible and in an arrangement discussed in further detail herein it comprises a microprocessor, incorporating a read only memory (ROM) and a random access memory (RAM), in combination with input and output devices.
BRIEF DESCRIPTION OF THE DRAWINGS
Several advantageous embodiments of the controller according to the invention are illustrated in the accompanying drawings. The associated camera is not shown, however, as the arrangement of the controller in conjunction therewith or therein is entirely within the skill of those practised in the art. In the drawings:
FIG. 1 is a functional diagram of a camera controller according to the invention;
FIG. 2 is a schematic flowchart of control program of a first embodiment of the controller of FIG. 1 showing a decomposition into the flow paths Path 1 to Path 7.
FIG. 3 is a flowchart of Path 1;
FIG. 4 is a flowchart of Path 2;
FIG. 5 is a flowchart of Path 3;
FIG. 6 is a flowchart of Path 4;
FIG. 7 is a flowchart of Path 5;
FIG. 8 is a flowchart of Path 6;
FIG. 9 is a flowchart of Path 7;
FIG. 10 is a schematic flowchart of the control program of second embodiment of the controller of FIG. 1 showing decomposition into the flow paths, Path 10 and Path 11;
FIG. 11 is a flowchart of Path 10;
FIG. 12 is a flowchart of Path 11;
FIG. 13 is a table of values of FSET showing the binary code used in the embodiment of FIG. 10 and addresses;
FIG. 14 illustrates the controller of FIG. 1 using an Intel 8080A integrated circuit microprocessor;
FIG. 15 illustrates the overall timing diagram of the controller of FIG. 14;
FIG. 16 is a table of data addresses in ROM/RAM;
FIG. 17 is a table of registers used for temporary storage;
FIGS. 18-28 are flowcharts for the controller using the Intel 8080A circuit describing program steps corresponding to the embodiments described in FIGS. 3 to 12; and
FIG. 29 is a graphical illustration of the operational characteristics of a camera equipped with a controller according to the present invention wherein FSET and SSET is expressed in terms of Ev and BIAS.
The description following hereinafter utilises the expressions BIAS, SSET, SMIN, SMAX, FSET, FMIN FMAX, FREF and SREF. Of these FREF, SREF, SSET and FSET are calculated values and the remainder are camera settings. The expressions are defined as follows:
SREF and FREF are mid range values (i.e. with bias adjuster set to the mid point) for shutter speed and aperture corresponding to respective exposure values.
BIAS is a value corresponding to the setting of the bias control.
SSET is a value corresponding to the logarithm to the base 2 of the reciprocal of the time period in seconds during which the shutter is open.
SMIN is the minimum value of SSET for the camera.
SMAX is the maximum value of SSET for the camera.
FSET is the value corresponding to twice the logarithm to the base 2 of the f-number of the camera lens setting.
FMIN is the minimum value of FSET for the lens.
FMAX is the maximum value of FSET for the lens.
The exposure value Ev satisfies SSET+FSET=Ev and this property is used to determine SSET and FSET from Ev and BIAS. It should be noted that the following descriptions assume the normal situation obtains in the camera in which (FMAX-FMIN) is less than or equal to (SMAX-SMIN). The occurrence of the opposite situation could be simply dealt with by interchanging the role of SMAX SMIN SREF SSET with FMAX FMIN FREF FSET in the various flowcharts of the preferred embodiment.
Referring now to FIG. 1, the invention comprises a microprocessor 1 which is coupled to an ROM 2 and to a register or RAM 3. ROM 2 contains the program for the microprocessor. Register or RAM 3 holds values relating to the lens and shutter parameters and also the working values. The microprocessor 1 interfaces with a plurality of input and output devices 4 to 8 as follows: device 4 is used for setting shutter time, device 5 is used for setting f number, device 6 determines the exposure value, device 7 is the input of BIAS and device 8 is a disabling device. In addition signals are provided representative of under exposure and over exposure conditions in the camera, which signals operate ON/OFF indicators 9 and 10. These indicators provide a warning to the operator that his camera is disabled as a consequence of the existence therein of the corresponding one of the said conditions. Lastly a shutter release signal is provided by the shutter release device 12.
The operation of the controller illustrated in FIG. 1 may be best understood by reference to the illustration of the program structure given in FIG. 2 and the flow charts of FIGS. 3 to 9. Thus, referring particularly to FIGS. 2 and 3, operation commences with the occurrence of start signal 11, which may be provided by a trigger. This activates the system which commences at path 1. The Ev value and the bias valve are stored in register or RAM 3 and the Ev value is tested by the microprocessor to determine the range in which it occurs. In accordance with the value of Ev the program branches into one of paths 2 to 6. Path 2 is selected if the test Ev<(SMIN+FMIN) is affirmative. If this test is negative the program steps on to test for Ev<(SMIN+FMAX). If this test is affirmative the program branches to path 3. If the test is negative the program steps on to test Ev.ltoreq.(SMAX+FMIN). If this test is affirmative the program branches to path 4. If the test is negative the program steps on to test Ev.ltoreq.(SMAX+FMAX). If this test is affirmative the program branches to path 5, if negative the program steps on to path 6.
Paths 2 and 6 which are chosen when the exposure value is unsatisfactory for taking photographs are concerned with disabling the camera by means of device 8, setting the under and over exposure indicators 9 and 10 and cancelling the display of the shutter speed and aperture, if provided. The steps of these branches are given in FIGS. 4 and 8 respectively. Paths 3-5 are chosen when the exposure value is within the range of the camera and the steps thereof are given in FIGS. 5-7.
Path 3 comprises the following steps:
Set OFFSET is (Ev-SMIN).times.BIAS
Set FREF to (Ev+FMIN-SMIN).times.1/2
Set SREF to (EV-FMIN+SMIN).times.1/2
Set FSET to (FREF+OFFSET)
Set SSET to (SREF-OFFSET)
Go to start of path 7.
Path 4 comprises:
Set OFFSET to (FMAX-FMIN).times.BIAS
Set FREF to (FMAX+FMIN).times.1/2
Set SREF to (EV-FREF)
Set FSET to (FREF+OFFSET)
Set SSET to (SREF-OFFSET)
Go to start of path 7.
Path 5 comprises:
Set OFFSET to (FMAX+SMAX-Ev).times.BIAS
Set FREF to (EV+FMAX-SMAX).times.1/2
Set SREF to (EV-FMAX+SMAX).times.1/2
Set FSET to (FREF+OFFSET)
Set SSET to (SREF-OFFSET)
Go to start of path 7.
Path 7, which is shown in FIG. 9, comprises the following operations:
Reset camera disabling device 8
Clear indicator outputs 9 and 10
Set shutter speed and display
Set lens aperture and display
Test if shutter release 12 is on.
If YES, take photograph and go to start of path 1.
If NO, go to start of path 1.
A graphical illustration of how FSET and SSET vary with Ev and BIAS in this controller is given in FIG. 29 which relates to one specific combination of lens and shutter. Different combinations thereof will of course result in different but essentially similar charts.
In an alternate arrangement for utilising the controller of FIG. 1 the ROM contains, in addition to the program, precomputed tables of values of FSET and SSET expressed in terms of Ev and BIAS. An example of such a table is given in FIG. 13. The suffix numbers in the table are examples of addresses in hexadecimal code. If the value of Ev lies between (SMIN+FMIN) and (SMAX+FMAX) then FSET and SSET may be determined from these tables. The operation of this arrangement is described with reference to the schematic flowchart of FIG. 10, the flowchart of FIGS. 11 and 12, and the flowcharts of FIGS. 4, 8 and 9 described earlier. The graphical representation given in FIG. 29 applies equally to this arrangement.
Thus with reference particularly to FIGS. 10-12 on occurrence of the start signal 11 the system is activated and commences at path 10. As before the Ev and BIAS value are stored in register or RAM 3 (see FIG. 1) and the Ev value is tested by the microprocessor to determine in which range it occurs. In accordance with the value of Ev the program branches to one of paths 2, 11 or 6. Path 2 is selected if the test Ev<(SMIN+FMIN) is affirmative. If this test is negative the program steps on to test if Ev.ltoreq.(SMAX+FMAX). If this test is affirmative the program branches to path 11, if negative the program branches to path 6.
Path 11 consists of the following steps. The value FSET is set in the register or RAM 3, being selected by referencing the table, such as the one in FIG. 13, stored in the ROM 2 using the stored value Ev and BIAS for calculation of the address. SSET is set to (Ev-FSET). Alternatively SSET can also be determined from a table as above. The program then goes to the start of path 7 as before.
Hereinbefore, the theoretical requirements of two controllers having differing methods of operation, both in accordance with the invention, have been disclosed. These requirements may be readily realised by persons skilled in the art by use of commercially available integrated circuit processors. Hereinafter, by way of example, the controller is described with particular reference to FIG. 14 which is a schematic diagram of a controller according to the invention based upon the currently available integrated circuit 8-bit microprocessor, Intel 8080A.
CONTROLLER USING INTEL 8080A MICROPROCESSOR
The controller 20 comprises a microprocessor 21 (Intel 8080A), a systems clock 22 (e.g. Intel 8224), a systems controller 23 (e.g. Intel 8228), read only memory (ROM) chips 24 and 24A, random access memory (RAM) chips 25 and 25A, a selector 26 for selecting the required memory chip during the various stages of operation, a plurality of system input/output (I/O) ports 27A-27G (e.g. Intel 8212), a selector 28 for selecting the I/O ports, and various internal data and address buses and control lines.
Port 27A is connected via an internal bus to an A/D converter 29 which converts an analog signal representative of the brightness (B.sub.v) to a corresponding digital representation. The analog signal is derived from a light meter 30 built in the camera and comprising photo diode 31 and a differential or-amplifier 32 having a non-inverting input 33 which is grounded and an inverting input 34 connected to the output of the photo diode 31. A diode 35 is connected between the inverting input and the output of the amplifier 32 as shown. The op-amplifier 32 provides the light meter with an ouput in logarithmic units.
Port 27F is connected via an external bus to decoder 36 which provides signals for an LED array 37 which gives a visual display of shutter speed setting and f number setting and indication of under and over exposure conditions. Port 27G is connected via an external bus to a logarithmic counter 38 which is coupled to an oscillator 39. Counter 38 provides the timing for the shutter of the camera in logarithmic units (to the base 2) and has a reset input coupled back to Port 27E which provides a start signal.
The remaining ports, i.e. Ports 27B to 27E, are coupled via external buses to input/output devices provided in the camera, but not shown herein, as follows. Port 27B is connected to an input device which provides a digital representation of the logarithmic value of the speed (S.sub.v) of the film in the camera. The said input device would normally be a manually controllable device which is set when the film is inserted in the camera. Means, however, could be used which automatically interacts with a characterising profile or a magnetic code on the film carrier, for example, so as to set this input without the necessity for manual control. Port 27C is connected to the BIAS control as hereinbefore described. Port 27D is connected to an input device providing indications of the lens aperture setting. Also provided through this port interlacing the lens aperture input is a signal representing the state of readiness of the shutter (i.e. Shutter ON). Port 27E is connected to output devices for starting, stopping, locking and starting the shutter and lens aperture actuators.
OPERATION
Two forms of program for the Intel 8080A microprocessor are described in detail hereinafter with reference to FIGS. 18-28, one corresponding to the flowcharts of FIGS. 2 to 9 and the other corresponding to the flowcharts of FIGS. 10-12 and with reference to the program listing given hereinafter. These programs differ in the manner of determining FSET and SSET, the remaining operation being substantially the same.
Upon the light meter 30 being switched on the light intensity is determined using photo diode 31. The voltage across the photo diode is scaled logarithmically by amplifier 32 to give a brightness value B.sub.v which is converted into suitable digital form by A/D converter 29. The digital output is made available to the microprocessor 20 via input port 27A. The film speed in logarithmic units S.sub.v, the control of which has been previously set as aforesaid, is read into port 27B and the BIAS value B.sub.v as set by the operator by means of the BIAS control on the camera is read into port 27C. These values are stored temporarily in the registers in the microprocessor. The exposure value Ev is calculated under program control from the brightness value B.sub.v and film speed value S.sub.v so that Ev=B.sub.v +S.sub.v, and is also stored in a register. Previously stored in ROM 24, 24A is the particular program being used and certain fixed values used for testing purposes. In the second program the ROM will also contain the values representative of the table illustrated in FIG. 13.
The bits of the binary code output of port 27E are used to provide the functions given in Table I.
The binary code output of port 27F and the interpretation thereof by decoder 36 are given in Table II.
OVERALL TIMING
Referring now to FIG. 15, which shows the timing of the Intel 8080A microprocessor program, in the first step (step 40) the light meter is switched on and the program commences execution. At the next step (step 41) the exposure value Ev is calculated and tested. If Ev is in the range where a picture may be taken the picture-taking sequence is commenced. If it is not, the camera is made inoperative by the output of bit 1 over port 27E, the over or under exposure condition is indicated in the display 37 by the output of control bytes over port 27F (in step 42) and the cycle is repeated to check for any change of condition.
When the exposure value Ev is in the said range, the values for FSET and SSET are calculated and the shutter speed and aperture are indicated in the display 37 by the output of control bytes over port 27F (step 42). The shutter release is then tested in step 43 to see if it is set ON. If it is not set ON the program returns to step 41. If the shutter is set ON the program moves on to step 44 in which the determined values of FSET and SSET are confirmed as being stored in RAM 25, 25A and then to steps 45-47 (and step 48 if the camera is a reflex camera) in which the aperture is set using port 27E to initiate stopping down (step 45), port 27D to sense the actual aperture setting of the lens (step 46) and port 27E to terminate the stopping down (step 47) when the value for the aperture corresponds to FSET. If the camera is a reflex camera, the viewing mirror is moved in step 48 coincident with step 45 to the picture-taking position. When the aperture is set the program steps on (steps 49-51) to control the starting and stopping of the shutter using port 27E to provide the starting and stopping signals and port 27G to provide the timing for the stop signal, the shutter being timed by the microprocessor using the value SSET as a reference for comparison with the value in the counter 38. To start the shutter, bit 5 of the output of port 27E is used and this bit also resets counter 38. Upon the value SSET being reached the shutter is stopped by means of bit 4 in the output of port 27E. The program then returns in step 52 to the commencement of the aforesaid sequence (at step 40).
In the final step, step 52, the lens is stopped fully open. With a reflex camera a further additional step 53 is included, coincident with step 52, in which the viewing mirror is moved to the viewing position.
These steps are summarised in Table III hereunder.
DESCRIPTION OF DETAILED PROGRAM USING INTEL 8080A
EXAMPLE 1
This will be described with reference to the tables of FIGS. 16 and 17 and the flowcharts of FIGS. 18-26. In FIG. 16 are shown the ROM and RAM addresses of the values of the functions of (F) and (S) and the function OFFSET, and the abbreviations used therefor in the flowcharts of FIGS. 18-27. FIG. 17 is a list of the registers contained in the 8080A chip used for temporary storage of data or addresses as indicated.
Notation used in flowcharts:
[ ].sub.10 represents decimal constant
() represents contents of memory
` ` represent memory address in hexadecimal code
The program commences with step 60 of FIG. 18 which corresponds to paths 1 and 6 of FIG. 2.
Step
60 Input B.sub.v --(Brightness value) from port 27A into B register
61 Input BIAS from port 27C into C register
62 Input S.sub.v --(film speed) from port 27B into accumulator
63 Increase B register by value in accumulator, i.e. Ev now in B register.
64 Set address `1000` hexadecimal, i.e. address of M.sub.1 in H, L register pair. These registers are used for accessing values M.sub.1, M.sub.2 etc. described in FIG. 16 and carrying out tests on them.
65 Test if (B) register <(M.sub.1). If Yes jump to SUB 5--FIG. 24. If No step on.
66 Increase address in H, L register pair by 1
67 Test if (B) register <(M.sub.2). If Yes jump to SUB 1 FIG. 19. If No step on.
68 Increase address in H, L register pair by 1
69 Test if (B) register <(M.sub.3). If Yes jump to SUB 2. If No step on.
70 Increase address in H, L register pair by 1
71 Test if (B) register .ltoreq.(M.sub.4). If Yes jump to SUB 3 FIG. 21. If No step on.
72 Call SUB 7 i.e. set lock on and clear display
73 Output [17].sub.10 to Port 27F i.e. display over exposure. Jump to ST i.e. Step 60 in this figure.
As noted above program jumps occurred at steps 65 (SUB5), 67 (SUB1), 69 (SUB2) and 71 (SUB3). These jumps are shown in FIGS. 24, 19, 20 and 21 respectively and relate respectively to paths 2 to 5 of FIG. 2. FIG. 19 (SUB1) corresponds to path 3.
80 Set (D) register to (M.sub.6)
81 Set accumulator to (B) register
82 Set accumulator to (B) register--(M.sub.6)
83 Call SUB6 i.e. multiply accumulator by (C) register with product in accumulator
84 Set (R.sub.1) to accumulator
85 Set accumulator to (M.sub.5)
86 Increase accumulator by value in (B) register
87 Rotate accumulator right through carry
88 Set (R.sub.2) to accumulator
89 Set (D) register to (M.sub.5)
90 Set accumulator to (B) register
91 Decrease accumulator by value in (D) register
92 Rotate accumulator right through carry
93 Set (R.sub.3) to accumulator
94 Jump to SUB4 FIG. 22
FIG. 20 (SUB2) corresponds to Path 4
100 Set accumulator to (M.sub.7)
101 Call SUB6 i.e. Set accumulator to (C) register .times.accumulator
102 Set (R.sub.1) to accumulator
103 Set accumulator to (M.sub.8)
104 Rotate accumulator right through carry
105 Set (R.sub.2) to accumulator
106 Set (D) register to accumulator
107 Set accumulator to (B) register
108 Decrease accumulator by value in (D) register
109 Set (R.sub.3) to accumulator
110 Jump to SUB4 FIG. 22
FIG. 21 (SUB3) corresponds to Path 5
111 Set accumulator to (M.sub.9)
112 Decrease accumulator by (B) register
113 Call SUB6 i.e. set accumulator to (C) register .times.accumulator
114 Set (R.sub.1) to accumulator
115 Set accumulator to (M.sub.10)
116 Increase accumulator by value in (B) register
117 Rotate accumulator right through carry
118 Set (R.sub.2) to accumulator
119 Set (D) register to (M.sub.10)
120 Set accumulator to (B) register
121 Decrease accumulator by (D) register
122 Rotate accumulator right through carry
123 Set (R.sub.3) to accumulator
124 Jump to SUB4 FIG. 22
The flow charts of FIGS. 19-21 terminate in jumps to SUB4. This subroutine which is illustrated in FIG. 22 and described below, implements the steps of
Set FSET to FREF+OFFSET
Set SSET to SREF-OFFSET
These steps occur in paths 3, 4 and 5 of the aforesaid FIG. 2.
FIGURE 22 SUB4
130 Set (D) register to (R.sub.1)
131 Set accumulator to (R.sub.2)
132 Increase accumulator by value in (D) register
133 Set (R.sub.4) to accumulator
134 Set accumulator to (R.sub.3)
135 Decrease accumulator by value in (D) register
136 Set (R.sub.5) to accumulator
137 Jump to SUB8--FIG. 26
FIGURE 24 (SUB5) corresponds to Path 2.
140 Call SUB7 i.e. set lock on and clear display
141 Output [34].sub.10 to port 27F i.e. underexposure display
142 Jump to ST--Step 60 FIG. 18
In addition to the aforesaid jumps at steps 65-71, subroutines SUB6 and SUB7 are called respectively at steps 83, 101, 113 and 72. These subroutines are shown in FIGS. 23 and 25 and comprise the following steps.
FIGURE 23 (SUB6)
This is a standard subroutine to multiply accumulator by (C) register and put the product in accumulator. Multiplication is performed using repeated addition. Only the accumulator is changed by the execution of the subroutine.
FIG. 25 (SUB7)
145 Output [2].sub.10 to port 27E--Set lock on
146 Output 128.sub.10 to port 27F--clear display
147 Return to point of call and continue
The aforesaid subroutine 4 (SUB4) terminates in a jump to the subroutine SUB8. This is illustrated in FIG. 23 and comprises:
150 Output [1].sub.10 to port 27E i.e. clear lock
151 Output 128.sub.10 to port 27F i.e. clear display
152 Output (R.sub.5) to port 27F i.e. display shutter speed
153 Output (R.sub.4) to port 27F i.e. display f-number
154 Input Re from port 27D into accumulator (where Re is the shutter ready signal, i.e. a signal indicating that the shutter is set.
155 Test if Bit 0 of accumulator is O. If Yes, release is not ready so jump to ST - step 60 FIG. 18. If No, step on and commence exposure.
156 Set (D) register to (R.sub.4)
157 [8].sub.10 to port 27E i.e. start stopping lens down
158 Input Av from port 27D into accumulator, i.e. input actual aperture setting
159 Set 000 at 0, 1, 2 bits of accumulator
160 Test if accumulator <(D) register. If Yes, step on. If No jump to step 158
161 Output [4].sub.10 to port 27E i.e. terminate stopping down
162 Set (D) register to (R.sub.5)
163 Output [32].sub.10 to port 27E i.e. start shutter
164 Input "Tv" from port 27G into accumulator, i.e. actual time shutter open
165 Test if accumulator <(D) register. If Yes, step on. If No, jump to step 164
166 Output [16].sub.10 to port 27E i.e. stop shutter
167 Jump to ST, i.e, step 60, FIG. 18.
EXAMPLE II
This is a modification of the aforesaid program, the latter being diverted between steps 65 and 72, through steps 75 and 76 as shown in FIG. 27 as follows:
75 Increase address in (H, L) register pair by 3, i.e. address now referenced is that of M.sub.4.
76 Test if (B) register .ltoreq.(M). If Yes, jump to SUB9 FIG. 28 as shown below. If No continue at step 72 and complete steps 72, 73, 74 as in EXAMPLE I.
The jump to a subroutine at step 75 (i.e. SUB9 FIG. 28) corresponds to Path 11 in FIG. 12. It terminates in a jump to the subroutine of FIG. 26 i.e. SUB8. Subroutines SUB1-SUB4 and SUB6 are not required in this program. SUB9 comprises steps 170-176 as follows:
170 Clear accumulator
171 Set (D) register to (B) register--(M.sub.1)
172 Set (H, L) register pair to address '(D)*10+(C)+2000'-hexadecimal number
173 Set (E) register to (M) i.e. value at address in (H, L) register pair
174 Set (R.sub.4) to (E) register
175 Set (R.sub.5) to (B) register--(E) register
176 Jump to SUB8 FIG. 26.
The following worked example shows the program method in EXAMPLE II:
Ev=2 (B) register
BIAS=-3/8 (C) register has bias code 1
From FIG. 13 FSET should be 11/8 the value at address `2011`. This checks with the value given to the H, L) register pair by Steps 171, 172 of FIG. 27.
(D)-(B)-(M.sub.1)=(B)-1=2-1=1 as (M.sub.1)=F.sub.min +S.sub.min =1
(H) (L)-`D*10+(C)+2000`=`1*10+1+2000'=`2011` which is the required address.
PROGRAM ASSEMBLY LANGUAGE LISTING
Hereinafter the assembly language for the aforesaid programs using the INTEL 8080 microprocessor is listed.
Note 1
SUB9 is not relevant for EXAMPLE I.
SUBS1-4 and SUB6 are not relevant for EXAMPLE II.
Note 2
In the program list symbols are used to signify port addresses as follows.
The foregoing detailed descriptions are given primarily for clarity of understanding and should not be regarded as limiting the nature of the invention. Modifications which are obvious to those skilled in the art upon reading this disclosure may be made without departing from the spirit of the invention or the scope of the appended claims.