Copy the IAR company's ICC8051.EXE and XLINK.EXE to the source folder. (Note: Those programs are commercial, thus we don't provide them with this source.) 1. How to compile the source. Type the following in DOS mode and press Enter. XT LINE_OV If successful, A(file name) will be created in the same folder. A is a binary file. Just burn it onto the AT89C2051 with the ROM writer. Note : 1. The A file is the same as LINE_OV.BIN. The LINE_OV.BIN is a renamed version of the A. 2. The LINE_AD.BIN file is another binary file for the Mr. Line. It uses an advanced algrothm, but source code is not provided. This is the default written program to the Mr. Line. 3. XT.bat is a batch file for compiling, linking and changing into a binary file. 4. Refer to the IAR manual for more details concerning the compiler and linker. 2. Source code information. There a two different operation mode. They can be chosen by the jumper JP4. normal_speed() : Low speed mode. JP4 is not pressed. high_speed() : High speed mode. JP4 is pressed. In the main(), the two functions above are called according to the JP4(=JMP_SW)'s state. The two functions do the following: 1. Read the sensors. 2. Display read sensors' data with three LEDs. 3. Drive both motors according to the sensors' data. 4. PWM(Pulse Width Modulation) is used to dirve the motors. Power supplied to each motor turns on and off constantly. From James Microrobot NA Co., Ltd