【正文】
d to control the linescan camera. The paper focuses on GPS and the serial port munication as well as the control programs of singlechip microputer .By paring and analyzing large amounts of experiments’ data and the serial images which are obtained in the highspeed vehicle moving by using this system, it shows that this system design satisfies the requirement of external trigger control in realtime linescan camera for the pavement detection system. The result shows that the images obtained in high speed are much clearer.Keywords: GPS。 SCON=0x50。k=0。if(r==0){ if(SBUF==0x2c) {numbera++。 igps=0。}while(1)。led_off(){P2_0=1。 //start the timerWhile (lms){TH1=65524/256。 //calculate the cycle timesled_on()。\039。 if (record==1) // Begin to judge whether the data receivedGPRMC format{ s=GPRMC。 } serial () interrupt 4 using 1 //Serial port interrupt service function{RI=0。s road detecting technology and the developed countries’. In the pavement crack detection system, the linescan camera first captures highspeed realtime images about the road, then sends it to the main image processor puter, at last processes it with image analysis software, get the crack’s place, length and area so as to give reference to the road maintenance. Detection system is posed of the vehicle, linescan camera, GPS, puter, image processing software, SCM control system. Detecting the asphalt pavement by use of the system can find the crack which is more than two millimeters, including its width, length and locations. By using the speed of GPS [1] and SCM control algorithms, it realizes the real time control for linescan camera according to every two millimeters to give a LineScan Camera Control Pavement Detection System Research 9 triggering signal. The detecting results meet the requirements of the system, meanwhile,obtain much clearer pavement moving design structure of linescan camera control system is shown in Fig 1.Fig 1. Linescan camera control system design structure2 GPS and SCM Serial Port Communication as Well as Control Realizing MethodBy using GPS, the system is mainly used to obtain the crack location and the speed of the vehicle. The link between GPS and SCM depends on the RS232 serial interface standard. RS232 defines the physical interface standards between the data terminal equipment (DTE) and the data munications equipment (DCE) [2]. SCM serial port initializes programming finished by the special function register PCON and power control SCON register. SCON serial port is used to set the working modes, accept or send the control / state signal. The serial port has four working modes. This system uses working mode 2. Because the GPS 4800 baud rate is fixed, there is no need to calculate it. Communication mode adopts 8N1. GPS locating method has two modes. One is a single point locating mode. The other one is differential locating mode. Singlepoint approach is using a GPS receiver to receive three or four satellite signals so as