Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MICROCOMPUTER DEVICE FOR COMPUTING AND DISPLAYING THE SPEED OF A PASSING VEHICLE
Document Type and Number:
WIPO Patent Application WO/1980/000751
Kind Code:
A1
Abstract:
A microcomputer (10) for installation in one vehicle for computing and displaying the average speed of another vehicle in which display (20) and data input (PBO, PB1-4) are actuated simultaneously to minimize peripheral connections and in which provision is made for measurement of speed in real time.

Inventors:
HARRIS C (US)
GREGORY C (US)
Application Number:
PCT/US1979/082479
Publication Date:
April 17, 1980
Filing Date:
October 01, 1979
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
POWER SYST & CONTROLS (US)
International Classes:
G01D1/00; G01C22/00; G01D1/16; G01D7/00; G01P3/64; G01P3/66; G01P11/00; G06F19/00; (IPC1-7): G01P3/66
Foreign References:
US3530382A1970-09-22
US4031510A1977-06-21
US3492570A1970-01-27
US4135155A1979-01-16
US3182331A1965-05-04
US3953720A1976-04-27
US4167040A1979-09-04
Other References:
See also references of EP 0020565A4
Download PDF:
Claims:
THE CLAIMS
1. A computer which includes a data input port and data output port, a plurality of data display devices, each display device including a plurality of separ¬ ately selectable display portions, selection means connected to said plurality of display devices whereby said selection means is actuable to select differing groups of similar display portions of said plurality of display devices, said selection means being connected to said data output port whereby differing codes at said dataoutput port select differing groups of similar portions of said plurality of display devices, a plu . rality of manually controllable data input input de¬ vices common connections of said input devices to said input devices to said input port whereby when actuated each said data device transmits coded data to said in¬ put port, a plurality of actuating devices, said actu¬ ating devices being connected to actuate differing ones of said plurality of said display devices and of said data input devices simultaneously, and means connecting said actuating devices to said data output port whereby each said actuating device can be selected separately by coded data at said output port.
2. A method for measuring a variable as a function of time while simultaneously displaying a plural digit output which comprises sequentially displaying each digit of the display in an iterative sequence, generating an electric signal consisting of a series of pulses repre¬ sentative of said variable, activating a first control device to indicate when said variable is to be measured, activating a second control device to indicate when time is to be measured, checking in each iteration * of display of a said digit whether said first control means is activated, when said first control means is found to be activated, checking to see whether there has been a pulse in said electric signal since the previous iteration, when a pulse is found to have occurred storing a count at a first location, then pro ceeding to the next iteration of display of a said digit, the time in proceeding from one iteration of display of a said digit to the next being held to a fixed length regardless of whether said first control means is activated and whether a count is stored, con¬ tinuing said iterations of display in said manner unti said display is completed, thereafter checking whether said second control means is activated, when said second control means is found not to be activated re ' peating the above sequence, when said second control means is found to be activated, storing a."count at a second location, repeating the display until both said first and second control means are found to be de¬ activated, thereafter dividing the stored count at sai first location by the stored count at said second lo¬ cation, and displaying the quotient in said display.
Description:
-i-

MICROCOMPUTERDEVICEFORCOMPUTINGANDDISPLAYINGTHE SPEEDOFAPASSINGVEHICLE . -_... ,- -

This invention relates to vehicular speed measure¬ ment, and in particular provides devices and methods for computing and indicating the average speed of a vehicle in which the computer device itself is located in a second vehicle or elsewhere. Such devices are used, for example, by law enforcement officers, to provide quick and accurate check of the speed of a moving vehicle which may be in vio¬ lation of the speed laws.

As is shown in Marshall Patent No. 3,182,331, it is feasible to construct a device which can conveniently be installed beneath the instrument panel of, for example, a police car, such that the device can be manually operated by the. officer driving the car without the necessity of taking his -"eyes off the road or the speeding vehicle. Such a device basically includes manually operated controls " for separately measuring elapsed time and elapsed distance and a computing device for dividing distance by time and displaying the result.

It will be apparent that the police officer or other person desiring to measure the speed of another vehicle having such other vehicle in view and following the same course can start the measurement of time, as the vehicle be¬ ing checked passes some mark, such as a telephone pole, and turn the measurement of time off as the vehicle passes some other checkpoint. Similarly, the police officer can cause measurement of the elapsed distance in his own vehicle be¬ tween the same two checkpoints. The odometer cable of the police officer's vehicle is connected directly to the device so that the measurement of distance is actual. The quotient of this distance divided by the time is then computed and dis- played.

The Marshall apparatus for carrying out these functions is basically mechanical. More recently, elec¬ tronic apparatus for performing the same functions has been described in Liston, Oliver & Gee Patent 3,530,382.

It is an important object of the present inventio to simplify the construction of such speed measurement de¬ vices. To this end, in accordance with this invention, a vehicular average speed measurement device has been im- plemented in a microcomputer system.

In another aspect, it is also an object of this invention to provide a microcomputer which is capable of reading data, s'uch as pulses generated by odometer drive cable, while simultaneously reading manually determined data in the form of instructions to the microcomputer and of displaying output data utilizing a minimum number of in¬ put and output data lines thereby to simplify the construc¬ tion of the microcomputer.

These and other objects of the invention are esse tially obtained utilizing a microcomputer having a micro- processor with output address lines connected to the micro¬ processor which lead to a read-only memory (ROM) containing a program, a random access memory (RAM) performing computa¬ tions, and input and output ports for connection to the per pherals. A two-way data bus interconnects the microprocess and the ROM, the RAM and the I/O ports such that the micro¬ processor can selectively address and have data access to memories and ports. An electrical signal generated by the odometer of the vehicle in which the computer is installed utilized as one data input to the input port. Control de- vices are also connected to the input port data lines for permitting insertion of coded information from a plurality of separately operable control devices, such as thumbwheel switches. The data input lines are also connected to contr devices in the form of switches turning the measurement of distance on and off (record time) , for turning the measure-

ent of distance on and off (record distance) , for recalling time and for recalling distance. A plurality of display devices, such as 7-segment LEDs are also arranged to be actuated through connection to the output port data lines. Other output data lines are utilized through decoding de¬ vices to actuate, separately, the various display devices and simultaneously to actuate, separately, the various input control devices, such that the number of output data lines . can be held to a minimum.

The program stored in ROM is designed to respond to the actuation of the record time switch and the record distance switch in a reiterative loop which steps through a sequence of instructions actuating the plurality of display devices and the plurality of manually operable control de- vices. As the program steps through the reiterative loop, each time the presence of a signal or lack of a signal on the ' input data line from the odometer head is sensed. If a signal is present and if the record distance switch is closed,, a count is made in RAM. The length of the program is such that whether or not a count is made on each iteration when the total number of iterations has been completed to complete the display, before returning to the beginning of the display, a count is made in RAM for time if the record time switch is closed. The total program loop is fixed in length and hence fixed in time such that under the operation of a crystal controlled clock, the count of time which has been stored in RAM is real time. When both the record time and record distance switches have been opened and closed, the progra then causes the microprocessor, to divide distance by time and displays the result.

For a more complete understanding of the practical application of this invention, reference is made to the appended drawings in which:

FIG. 1 is a diagrammatic representation of a microcomputer for carrying out this invention;

FIG. 2 is a schematic diagram of a portion of the circuitry shown in FIG 1; and

FIG. 3 is a flow diagram of the fundamental pro¬ gram.

A microcomputer in accordance with this invention is diagrammatically shown in FIG. 1. The central unit is a microprocessor chip 10 which has an address bus 11 leading to a read-only chip (ROM) 12 and a third chip 13 which con¬ tains both random access memory (RAM) and two I/O ports. Microprocessor 10 is an MCS 6503 which has twelve address lines and eight ,data lines. The data lines are connected to a two-way data bus 14 which leads to ROM 12 and to chip

Chip 12 is a 2K x 8 ROM to which all twelve ad¬ dress lines are connected. Eleven of the address lines, A0 to A10, are connected as address lines to chip 12. The twelfth address line All is a chip select for ROM 12 when address line All is high.

Chip 13 is an MCS 6532 which has a 128 x 8 RAM, two I/O ports, Port A and Port B, and an interval timer (unused in the described system) . Address lines A0 through A6 are connected as address lines to chip 13. Address line A7 is connected to the ram select pin (RS) on chip 13, and address line All is connected to the second chip select pin

(CS2) of chip 13, selecting chip 13 when All is low. The first chip select pin (CS1) is pulled high to Vcc.

A control bus 15 also interconnects microprocesso

10 and chip 13. The interrupt pins (IRQ) of microprocessor 10 and chip 13 are tied together in the control bus and pul

O PI

P tyy. WIPO ^

high to Vcc. The reset pins (RES) of microprocessor 10 and chip 13 are also tied together in the control bus and are also pulled high to Vcc. Finally, the control bus 15 includes a connection between the read/write pins (R/W) of the two chips. Microprocessor 10 also has an interrupt pin

(NMI) which is also pulled high to Vcc.

Microprocessor 10 is provided with a clock 16 in the form of a series mode oscillator controlled by a 1.00000 MHZ crystal, which provides a 2 timing signal for chip 13, as well as clocking microprocessor 10.

As indicated above, all eight data lines D0 through D7 are connected from microprocessor 10 both to ROM 12 and chip 13 for two-way communication between ROM 12 and microprocessor 10 and between chip 13 and microprocessor 10.

Chip 13, as well as having a 128 x 8 RAM has two

I/O ports, A and B. These ports each have an eight bit register which will latch in each direction of data flow. In addition, chip 13 has a data direction register associated with each port.

The RAM address, disregarding the connections of address lines A7 and All is 000 to 07F with the stack pointer of microprocessor 10 initially at 07F. The port A address is 080, and the data direction register for port A has an address of 081. The port B address 082, and the data direc- ticn register for port B has an address of 083. As indicated above, address line All when high actuates ROM 12. ROM 12, itself, is programmed from address 800 to FFF.

Chip 13 is selected when address line All is low, and whether a port is addressed or the RAM is addressed is determined by address line A7. Each port in chip 13 has eight data lines PA0 to PA7 and PB0 to PB7. The program in

ROM 12 selects port A as an output port and selects port B

as an input port.

One input data line PB0 inputs data regarding th distance travelled by the vehicle in which microcomputer i installed. Conveniently, as is described, for example, in Liston, Oliver & Gee Patent 3,530,382, the odometer head o the vehicle is modified by installing a disk which has six open segments in it equally spaced about the disk. A ligh source is placed on one side of the disk offset from its center and a photocell or other photosensitive device capa of generating an electrical signal in response to the presence of light is installed on the opposite side of the disk adjacent to the light source.

In most conventional automobiles, the odometer cable makes 1,000 revolutions per mile. Consequently, in travelling one mile, the disk rotating between the light source and photocell produces an electrical signal having 6,000 pulses/mile. Hence, each pulse corresponds to a dis¬ tance travelled by the vehicle of 0.88 feet. This signal before connection to input port B is sharpened and shortene by passage through a dual Schmidt trigger, and then, as in¬ dicated before, is connected to input data line PB0.

Four other input data lines PBl, PB2, PB3 and PB4 are connected to the manual controls for the microcomputer. The remaining three input data lines are not utilized. Fi of the data lines PA3-PA7 are connected to seven segment de coder 18 and three, PA0 to PA2 are connected to a decade d coder 19.

Referring also to FIG. 2, the microcomputer is p vided with a display 20 in the form of five seven segment LED digits 20A-20E. The seven segment decoder 18 in a conventional manner has eight output lines 18A-18H, which lead through display segment drivers 21A-21H to display 20. Each display driver 21A-21G corresponds to one segment and the eighth driver'21H sets the decimal point. The fi

0A1PI

play devices 20A-20E are selectively actuated, at a time in sequence, by selector 19, which as indicated above is a dec¬ ade decoder. Only six of the output lines 19A-19F of the decoder are required. The first five are connected to dis- play unit drivers ~ ~23A-23E which actuate each seven segment LED 20A-20E, respectively, as determined by the signals from segment drivers 21A-21H.

The manual control device 22 consists of five thumbwheel switches 24A-24E which output binary coded deci- mal and a sixth control group consisting of four control switches 25, 26, 27 and 28. The five thumbwheel switches 2 A-24E are driven by the same lines 19A-19E as the display drivers 23A-23E, while the sixth output line 19F of selector 19 is utilized to activate the four control switches 25-28.

Thumbwheel switches 24A-24E are physically dis¬ posed to represent the most significant through the least significant digits of a five digit decimal number. Each thumbwheel switch is manually rotatable to select a digit between 0 and 9 and outputs a true binary-coded decimal signal representative of such digit on four .output lines which are connected, one each to an input data line PB1, PB2, PB3 and PB4, respectively. When, for example, thumb¬ wheel switch 24A is dialed to the number 6, its output, when energized by line 19E presents a signal 0110 to data lines PB1-PB4 respectively. The input data lines PB1-PB4 are normally low. When energized by one of the thumbwheel switches, lines PB1-PB4 input a binary signal to port B representative of. the. -decimal number. -to which the associated switch is set.

Switch 25 and. switch 26 are-momentar switches which when closed and actuated by line 19F input a true condition on lines PB4 and PB3, respectively. Switch 25 is the distance recall switch and switch 26 is the time recall switch. Switches ,27 and 28 are single pole, single

switches which are normally open and are connected, respec¬ tively, to input a true condition on input data lines PB2 and PB1 when closed. Switch 27 is the record distance switc and switch 28 is the record time switch.

FIG. 3 illustrates the flow through the program as utilized to record elapsed time and elapsed distance under the control of switches 27 and 28. When the microcomputer i energized by turning on- power, it proceeds through an initia ization program and then commences to actuate display 20, sequentially energizing the various LED digits 20A through 2 one at a time. In the first iteration of the display group, one of the digits, for example 23A, is activated. Thereafte an inquiry is made by activating line 19F and reading input data line PB2 as to whether distance switch 27 is found ' to b closed, then input data line PB0 is checked to see if there a count from the odometer. If there is, the count is stored in RAM.

If switch 27 was not closed at the inquiry, a sufficie number of non-operative steps (NOP) are performed by the ic roprocessor to equal the number of steps required to add the distance count. Thereafter, whether distance was counte or not, the program then inquires whether the display has been completed. Obviously, this requires five iterations. After the first iteration, the program returns to display the second digit and goes through the process of checking distance again, until five iterations of the loop have been completed.

After five iterations , the program then inquires whether the time switch is on by activating line 19F and reading data input PBl. If the time switch is on, the program counts one unit of time and stores this in RAM. The program then returns to reiterate the display. The total time for the larger loop beginning with display ^ξ Ϊ'

a single digit through the end of the display and counting a unit of time requires 36 milliseconds. Consequently, the counting of time is real time.

When the answer regarding the time switch is that the switch is off, the program then inquires whether both the time switch and distance switch are finished. If the answer is no, the program returns to reiterate the display. If the answer as to whether the time switch and distance switch are finished is yes, the microprocessor then is pro- grammed.to retrieve the total count of distance and the total count of time from RAM and to divide the former by the latter incorporating factors to correct the quotient such that it reads in miles per hour or kilometers per hour as required. This information is then put out on output port lines PA3- PA7 such that on the next iteration through the display loop, the. quotient indicating the speed of the tracked vehicle is read out.

From the foregoing, it will be apparent that the aver¬ age speed of another vehicle can be determined and displayed, as suggested in Marshall Patent No. 3,182,331, first, closing record time switch 28 as the checked vehicle pas " ses a first checkpoint, then closing record distance switch 27 as the checking vehicle passes the same checkpoint. Thereafter, record time switch 28 is opened as the checked vehicle passes a second checkpoint, and finally record distance switch 27 is opened as the checking vehicle passes the same second checkpoint. Display 22 will then automatically read-out the average speed of the checked vehicle.

However, it is equally feasible for the checking vehicle to pass two checkpoints which can be viewed from a common point to clock the mileage between the checkpoints utilizing record distance switch 27. Thereafter, the check¬ ing vehicle can establish itself at the common viewpoinj

\ KcΛ U ~ CMP! So

simply time checked vehicles as they pass the two check¬ points with record time switch 28. The microcomputer automatically displays the average speed at the opening of switch 28.

The program for the microcomputer is, moreover, set up so that if a distance is known, it can be dialed on switches 24A-25E by dialing a 9 for the most significant digit and thereafter the mileage between the two points as a four decimal figure up to 0.9999. In this event, distanc recall switch 25 is then pressed and the 9 in the most sig¬ nificant digit is then manually dialed to zero. Thereafter vehicles crossing the two visible checkpoints simply are checked by measuring time and automatically the microcomput reads out speed.

It is also a fact of life that, as a vehicle travels and-tires wear, odometer readings become inaccurate. The program for the microcomputer described above ' is set up to provide calibration. To do so, the vehicle must be driven qver a known distance, for example, a measured mile along a highway. Before doing this, all zeros are dialed in on the thumbwheel switches 24A-24E. Power is then turned on. Thereafter, the known distance is dialed in on the thumbwhe switches 24A-24E assuming the decimal point to be immediate after switch 24A. The vehicle having the microcomputer the is taken over the course involving the known distance and utilizing the record distance switch 27, the elapsed distan is placed in the micocomputer. The display at that point with the recall distance switch 25 being activated displays the number of pulses per mile (nominally the vehicle should be recording 6,000 pulses per mile) . This number or if the readout differs the number on the readout should be dialed on the thumbwheel switches in order to calibrate the distan measurement thereafter. While the computer is on, the cali bration the stays in RAM and the thumbwheel switches can be changed for other purposes such as distance recall.