C51 COMPILER V9.52.0.0   FU68XX_2_SYSTEM                                                   09/27/2018 13:46:27 PAGE 1   


C51 COMPILER V9.52.0.0, COMPILATION OF MODULE FU68XX_2_SYSTEM
OBJECT MODULE PLACED IN .\Output\FU68xx_2_System.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\Library\FU68xx_Hardware_Driver\Source\FU68xx_2_System.c LARGE OMF2 WARNI
                    -NGLEVEL(0) BROWSE INCDIR(..\Library\FU68xx_Hardware_Driver\Include;..\User\Include) DEBUG PRINT(.\Listing\FU68xx_2_Syste
                    -m.lst) OBJECT(.\Output\FU68xx_2_System.obj)

line level    source

   1          /**************************** (C) COPYRIGHT 2017 Fortiortech shenzhen *****************************
   2          * File Name          : FU68xx_2_System.c
   3          * Author             : Javin.Liang,Fortiortech  Appliction Team
   4          * Version            : V1.0
   5          * Date               : 2018-9-26
   6          * Description        : This file contains the system function used for Motor Control.
   7          ***************************************************************************************************
   8          * All Rights Reserved
   9          **************************************************************************************************/
  10          /* Includes -------------------------------------------------------------------------------------*/
  11          #include <FU68xx_2.h>
  12          
  13          /*-------------------------------------------------------------------------------------------------
  14              Function Name : VREFConfig(Value, Status)
  15              Description   : 参考电压VREF配置，如果使能VREF模块，则内部产生VREF输入到ADC作�
             -�ADC
  16                              参考电压，如果禁止VREF模块，则由外部提供VREF输入到ADC作为ADC参
             -考电压。
  17              Input         : Value--VCC低电压预警值
  18                              0: VREF4_5, 参考电压VREF输出为4.5V
  19                              1: VREF5_0, 参考电压VREF输出为5.0V
  20                              2: VREF3_0, 参考电压VREF输出为3.0V
  21                              3: VREF4_0, 参考电压VREF输出为4.0V
  22                              Status--使能控制，Disable或Enable。
  23              Output        : None
  24          -------------------------------------------------------------------------------------------------*/
  25          void VREFConfig(uint8 Value, bool Status)
  26          {
  27   1          switch(Value)
  28   1          {
  29   2              case 0: ClrBit(VREF_VHALF_CR, VRVSEL0 | VRVSEL1);          break;
  30   2              case 1: SetReg(VREF_VHALF_CR, VRVSEL0 | VRVSEL1, VRVSEL0); break;
  31   2              case 2: SetReg(VREF_VHALF_CR, VRVSEL0 | VRVSEL1, VRVSEL1); break;
  32   2              case 3: SetBit(VREF_VHALF_CR, VRVSEL0 | VRVSEL1);          break;
  33   2          }
  34   1      
  35   1          SetReg(VREF_VHALF_CR, VREFEN, (Status ? VREFEN : 0x00));
  36   1      }
  37          
  38          /*-------------------------------------------------------------------------------------------------
  39              Function Name : VHALFConfig(Mode, Status)
  40              Description   : 基准电压VHALF配置，使能VHALF工作模块，选择VREF/2作为基准
  41                              电压VHALF输出，VHALF可用作运放基准电压。
  42              Input         : Status--使能控制，0-Disable或1-Enable。
  43              Output        : None
  44          -------------------------------------------------------------------------------------------------*/
  45          void VHALFConfig(bool Status)
  46          {
  47   1          SetReg(VREF_VHALF_CR, VHALFEN, (Status ? VHALFEN : 0x00));
  48   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
C51 COMPILER V9.52.0.0   FU68XX_2_SYSTEM                                                   09/27/2018 13:46:27 PAGE 2   

   CODE SIZE        =     94    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----       2
   EDATA SIZE       =   ----    ----
   HDATA SIZE       =   ----    ----
   XDATA CONST SIZE =   ----    ----
   FAR CONST SIZE   =   ----    ----
END OF MODULE INFORMATION.


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