【正文】
}led_on(){P2_0=0。}TR1=0。TL1=65524/256。TR1=1。}time_lms(lms){TMOD=TMODamp。time_lms(x)。time_lms(x)。//adding the speed values, there is a Valuationx=(3000)/(v)。 //restart receiving speed data whenVariable get zero.3 SCM Control the Line Scan Camera in RealTimeSCM controls the linescan camera in realtime by using SCM 89 C51 [3] to the need of every two millimeters to give a trigger signal to the camera, the system uses timer to control the trigger time in SCM, reads the vehicle’s speed from the GPS by serial munication [4]. It uses the SCM T1 timer to time. The timing mode adopts mode1. It needs to calculate the interval time required by 2 millimeters to trigger according to the vehicle’s speed value. In this method, the system presets time to be 12 seconds by using timers’ T1, depends on the P20 port level output to realize the control for camera. The system uses manner 1 to time .This mode can get much timing time and more timing cycles. The detection system can meetthe requirements of the camera’s work frequency[5]. It can get the best timer input and output by using software to control TF1 and TR1, which means depending on the timers’ time and timing cycles to control trigger signal. The system selects timer1’s mode 1 to work. The crystal is 12 MHz. The machine cycle is 1μs. presetting time period is 12μs,then 12μs = (2 Y)*1μs, next calculates the initial timing value Y as 65,524 and puts it into a 16 bits timer, then starts T1 to work .When the timing time12μs is over, TF1 = 1. According to the different speed values and formula: x=3000?v, calculate the cycle times and get to control for P20 highlow level so as to control the working frequency of the camera. Part of the realizing programs asfollows:{int v=35。 Record=0。 // The end of the data presented at the end of thestringnumbera=0。}}} // the first mand is over when receive the second $, Variable giventhe initial valueif (num==2){stringgps[igps]=39。}//record the numbers of maif(numbera==2){if(SBUF==0x41)// if the second judge is A, then the data is valid{if (numbera==7) //the character followed the seventh ma is speed signal{stringgps[igps]=SBUF。r=strcmp(string,s)。string[k]=SBUF。// variables Recording number of charactersspeed datanumbera=0。r=1。i=0。 //software clear interrupt indexif (SBUF==0x24){num++。//serial port interrupt permittingTR1=1。 PCON=0x00。11TH1=0xf3。 SCM serial munication interface circuit designThe system adopts 1 to transfer data. The baud rate is 4800. SCM serial portadopts the mode 2 to work. Part of the realizing program is as follows:TMOD=0x20。 crack detection.1 IntroductionBecause of the overweight of vehicles, rain erosion, climate change, the pavement may be destroyed. Using traditional crack detecting methods may lead to low efficiency, high cost, insecurity and poor consistency of detecting results. With the development of puter hardware and software technology, automatic pavement detectio