C51 COMPILER V8.12   START_ON_CLAP                                                         08/17/2013 11:05:51 PAGE 1   


C51 COMPILER V8.12, COMPILATION OF MODULE START_ON_CLAP
OBJECT MODULE PLACED IN start_on_clap.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE start_on_clap.c BROWSE DEBUG OBJECTEXTEND

line level    source

   1          // Project name : Start on Clap Robot
   2          // Designed By  : ROBOMART
   3          //                http://www.robomart.com
   4          
   5          /* Program for "Start on Clap Robot" 
   6          ___________________________________________________
   7          
   8          Connection settings of Kit
   9          
  10          Sound Sensor---@------------->P1.0
  11          
  12          RIGHT MOTOR(+)------->P0.0
  13          RIGHT MOTOR(-)------->P0.1
  14          LEFT MOTOR(-)-------->P0.2
  15          LEFT MOTOR(+)-------->P0.3
  16          
  17          RESET-------------------------->PIN9
  18          Crystal Ossilator-------------->PIN18 and PIN19
  19          VCC=Regulated 5V
  20          Gnd=Ground(0V)
  21          */
  22          
  23          #include<reg52.h>
  24          sbit sensor = P1^0;        //this pin is connected to Sound sensor
  25          void main(void)
  26          {
  27   1      sensor=1;       // make the bit as input pin.
  28   1      P0=0x00;        // make port2 as output port.
  29   1      while(1)    
  30   1      {
  31   2      if(sensor==1)
  32   2      P0=0x09;                // Move Forward
  33   2      
  34   2       }
  35   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     13    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)
