C51 COMPILER V9.54   MAIN                                                                  04/26/2022 17:14:53 PAGE 1   


C51 COMPILER V9.54, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN .\Objects\main.obj
COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE source\main.c OPTIMIZE(8,SPEED) BROWSE DEBUG OBJECTEXTEND PRINT(.\Listin
                    -gs\main.lst) TABS(2) OBJECT(.\Objects\main.obj)

line level    source

   1          /******************** (C) COPYRIGHT 2021 SONiX *******************************
   2          * COMPANY:  SONiX
   3          * DATE:   2022/04/22
   4          * IC:     SN8F5835
   5          *____________________________________________________________________________
   6          * REVISION    Date        AUTHOR    Description
   7          * 1.0         2022/04/22  SONiX     1. First release
   8          *____________________________________________________________________________
   9          *****************************************************************************/
  10          /*_____ I N C L U D E S _________________________________*/
  11          #define __XRAM_SFR_H__
  12          #include <SN8F5835.h>
  13          
  14          /*_____ F U N C T I O N S _______________________________*/
  15          void GPIO_Initialization(void);
  16          
  17          /*_____ D E F I N I T I O N S ___________________________*/
  18          
  19          /*_____ D E C L A R A T I O N S _________________________*/
  20          
  21          /*_____ M A C R O S _____________________________________*/
  22          #define IO_PORT0_OUTPUT_LOW   P0M |= 0xFF;  P0 &= 0x00;
  23          #define IO_PORT1_OUTPUT_LOW   P1M |= 0xFF;  P1 &= 0x00;
  24          #define IO_PORT3_OUTPUT_LOW   P3M |= 0xFF;  P3 &= 0x00;
  25          #define IO_PORT4_OUTPUT_LOW   P4M |= 0xFF;  P4 &= 0x00;
  26          
  27          #define OB_IO_OUTPUT_LOW      P00=0;  P0M |=0x01; 
  28          #define OB_IO_OUTPUT_HIGH     P00=1;  P0M |=0x01;
  29          
  30          /**
  31           *  @Brief    main: STOP Mode Test Demo Function
  32           *  @param    None
  33           *  @retval   None
  34           */
  35          
  36          void main(void)
  37          {
  38   1        /*  Initialize GPIO status  */
  39   1        GPIO_Initialization();
  40   1        
  41   1        /*  Step 1: System into IDLE mode, measure system current about 1mA
  42   1                    , the STOP() macro define on SN8F5835.h   
  43   1            Step 2: If system into ILDE mode, IO status keep output high 
  44   1                    If system wakeup to normal mode, IO status return to output low */    
  45   1      
  46   1        OB_IO_OUTPUT_HIGH     
  47   1        STOP()  
  48   1        OB_IO_OUTPUT_LOW      
  49   1        
  50   1        while(1);
  51   1      }
  52          
  53          /**
  54           *  @Brief    Initialize GPIO status
C51 COMPILER V9.54   MAIN                                                                  04/26/2022 17:14:53 PAGE 2   

  55           *  @param    None
  56           *  @retval   None
  57           */
  58          void GPIO_Initialization(void)
  59          {
  60   1        /*  Set whole IOs to output low */
  61   1        IO_PORT0_OUTPUT_LOW
  62   1        IO_PORT1_OUTPUT_LOW
  63   1        IO_PORT3_OUTPUT_LOW
  64   1        IO_PORT4_OUTPUT_LOW
  65   1        
  66   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     43    ----
   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)
