C51 COMPILER V8.18   CH375                                                                 06/05/2009 10:43:05 PAGE 1   


C51 COMPILER V8.18, COMPILATION OF MODULE CH375
OBJECT MODULE PLACED IN ch375.OBJ
COMPILER INVOKED BY: D:\keil\C51\BIN\C51.EXE ch375.c BROWSE DEBUG OBJECTEXTEND

line level    source

   1                    //CH372外部固件模式 命令子函数 默认在24MHz下
   2          
   3          //#include "common.h"
   4          //#include <CH375INC.H>
   5          //#include <usb_descriptor.h>
   6          #include <stdio.h> 
   7          #include <ADuC845.h>
   8           #include <intrins.h>
   9          #include <UART.H>
  10          #include "absacc.h"
  11          #include <nRF2401.H>
  12          
  13          sbit DR1=P3^3;
  14          #define RCV_FIFO_LEN 25 
  15          unsigned char  RcvFifo[ RCV_FIFO_LEN ] = {0, 0};
  16          
  17          void main(void)
  18          {
  19   1              unsigned char  te,tmp;
  20   1      //      Delay25us(40);
  21   1      
  22   1      // Initial for UART
  23   1              InitUART();
  24   1          Prints("////////////////////////////////////\r\n",1);
  25   1      
  26   1      
  27   1      // Initial for CH375    DisConnect();
  28   1      /*      Delay25us(400);
  29   1              init_CH37x();
  30   1              EXInt1_Init();
  31   1              IP=0x10;
  32   1       */
  33   1       
  34   1       // Initial for nRF2401
  35   1          nRF2401_Init();
  36   1      //        CE_High();
  37   1      //      EXInt0_Init();                   // 接收方
  38   1              SetRXMode();
  39   1      
  40   1              while(1)
  41   1              {               
  42   2                         DR1=1;
  43   2                              if(DR1==0)
  44   2                                      {
  45   3                                              Prints("m",1);
  46   3                                               PrintHex(20) ;
  47   3                                       for(te=0;te<25;te++)
  48   3                                           {
  49   4                                               RcvFifo[te]=SPI_RcvByte();
  50   4                                               }
  51   3                                      
  52   3                                      
  53   3                                              tmp = RcvFifo[2];
  54   3                                          PrintHex(tmp) ;
  55   3                      //                  ep0_data.data_buf[ 0 ] = tmp;
C51 COMPILER V8.18   CH375                                                                 06/05/2009 10:43:05 PAGE 2   

  56   3                                      //       Prints("t",1);
  57   3                                      
  58   3                                              tmp = RcvFifo[3];
  59   3                                          PrintHex(tmp) ;
  60   3                      //                      ep0_data.data_buf[ 1 ] = report_x = tmp;
  61   3                                              
  62   3                                              tmp = RcvFifo[4];
  63   3                                          PrintHex(tmp) ;
  64   3                      //                      ep0_data.data_buf[ 2 ] = report_y = tmp;
  65   3      
  66   3                                              tmp = RcvFifo[5];
  67   3                                      PrintHex(tmp) ;
  68   3                      //                      ep0_data.data_buf[ 3 ] = tmp;
  69   3      
  70   3                      //                      CH37x_wr_usb_data5( 4 );
  71   3                      
  72   3                                              
  73   3                                      } 
  74   2      
  75   2      
  76   2                    }  
  77   1              
  78   1      
  79   1       }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     97    ----
   CONSTANT SIZE    =     41    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =     25       2
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


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