C51 COMPILER V6.02  MAIN                                                                   05/08/2008 14:10:59 PAGE 1   


C51 COMPILER V6.02, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN .\main.OBJ
COMPILER INVOKED BY: E:\Brno\zaloha\disk_C\ATMEL\C51\Keil6\C51\BIN\C51.EXE .\main.c OPTIMIZE(9,SPEED) NOINTPROMOTE DEBUG
                    - OBJECTEXTEND

stmt level    source

   1          //#pragma SRC
   2          
   3          #include <AT89C51CC03.h>
   4          #include <string.h>
   5          #include <stdlib.h>
   6          
   7          #include "main.h"
   8          #include "LCD_functions.h"
   9          #include "text_graphics.h"
  10          #include "buttons.h"
  11          #include "MODBUS.h"
  12          #include "screens.h"
  13          #include "E3D_demo.h"
  14          
  15          
  16          // ==============================
  17          // ====== global variables ======
  18          // ==============================
  19          unsigned char xdata img0[240*128/8];
  20          unsigned char data xpos,ypos;
  21          char xdata strtmp[1024];
  22          
  23          
  24          //=====================================================================================================
  25          // main
  26          //=====================================================================================================
  27          int main(void)
  28          {
  29   1      	
  30   1      	// double speed
  31   1      	CKCON=1;
  32   1      	AUXR=0x16;
  33   1      
  34   1      	// enable backlight
  35   1      	LLED=0;
  36   1      
  37   1      	// clear actions buffer
  38   1      	ClearActions();
  39   1      
  40   1      	// init button read timer 0
  41   1      	ButtonsInit();
  42   1      		
  43   1      	// initialize LCD
  44   1      	LCDinit();
  45   1      
  46   1      	// init UART, MODBUS
  47   1      	MODBUSinit();
  48   1      
  49   1      	// enable INT
  50   1      	EA=1;
  51   1      	
  52   1      	// initial logo
  53   1      	FillImage(0x00);
  54   1      	Screen1(false);
C51 COMPILER V6.02  MAIN                                                                   05/08/2008 14:10:59 PAGE 2   

  55   1      	LCDdrawImg();
  56   1      	Delay10ms(250);
  57   1      	
  58   1      	// initial clear image
  59   1      	FillImage(0x00);
  60   1      	Screen2(true);
  61   1      	LCDdrawImg();
  62   1      
  63   1      	srand(444);
  64   1      
  65   1      	// main loop
  66   1      	while(1)
  67   1      	{
  68   2      		// test button events/execute actions, refresh LCD
  69   2      		GUI();
  70   2      		// test MODBUS buffer/execute actions
  71   2      		MODBUS();
  72   2      	}
  73   1      }
  74          
  75          
  76          
  77          
  78          
  79          


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


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