C51 COMPILER V8.05a   DEBUGGER_DESIGN                                                      11/30/2006 09:22:50 PAGE 1   


C51 COMPILER V8.05a, COMPILATION OF MODULE DEBUGGER_DESIGN
OBJECT MODULE PLACED IN debugger_design.OBJ
COMPILER INVOKED BY: C:\ProgramFiles\Keil\C51\BIN\C51.EXE debugger_design.c BROWSE DEBUG OBJECTEXTEND

line level    source

   1          /*
   2          -------------------------------------------------------------------------------
   3          -- (c) Copyright 2006 Actel Corporation
   4          --
   5          -- name:                main.c
   6          -- function:    routines for sample sysmon design
   7          -- comments:    best viewed with tabstops set to "4"
   8          -- history:             11/30/06 - SNG created
   9          --
  10          -------------------------------------------------------------------------------
  11          */
  12          #include "reg8051s.h"
  13          //#include <stdlib.h>
  14          //#include <stdio.h>
  15          
  16          #include "sysmon682.h"
  17          #include "SW_TIMER.H"
  18          #include "COREAI.H"
  19          #include "COREUARTAPB.H"
  20          
  21          // main routine
  22          
  23          void main (void)  {
  24   1              uint16 ctmp;
  25   1              uint16 sample16;
  26   1              uchar8 sample8;
  27   1      
  28   1              // initialize CoreUARTapb that communicates with PC
  29   1              UART2_CTRL1 = 0x09; // baud-rate set to 115.2Kbaud (18.431MHz clock)
  30   1              UART2_CTRL2 = 0x01; // no parity, 8-bit data
  31   1      
  32   1              // Write a default startup value to all output bits for GPIO_REG
  33   1              GPIO_REG = 0xFF;
  34   1      
  35   1              // Initialize the ACM
  36   1              init_coreai();
  37   1      
  38   1              // canned message to screen ...
  39   1              tx_str("Core8051s says hello!");
  40   1      
  41   1              // infinite loop
  42   1              while (1) {
  43   2                      // check if any characters have been received
  44   2                      ctmp = rx_char();
  45   2                      if (ctmp!=0xffff) {
  46   3                              // ADC conversion for AC5 (Potentiometer)
  47   3                              prescaled_vmon_conversion(get_chan(AC,5));
  48   3                              sample16 = get_adc_val();
  49   3                              // Print result
  50   3                              tx_str("RX char:");
  51   3                              tx_char(ctmp);
  52   3                              txhex(sample16,3);
  53   3                              // CR/LF
  54   3                              tx_char(0x0d);tx_char('\n');
  55   3      
C51 COMPILER V8.05a   DEBUGGER_DESIGN                                                      11/30/2006 09:22:50 PAGE 2   

  56   3                              GPIO_REG = 0x00;
  57   3      
  58   3                      }
  59   2              }
  60   1      }
*** WARNING C280 IN LINE 26 OF DEBUGGER_DESIGN.C: 'sample8': unreferenced local variable


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =   1269    ----
   CONSTANT SIZE    =     31    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =      1      36
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


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