C51 COMPILER V9.56.0.0   BSP_JDQ                                                           09/09/2024 13:43:20 PAGE 1   


C51 COMPILER V9.56.0.0, COMPILATION OF MODULE BSP_JDQ
OBJECT MODULE PLACED IN .\Objects\bsp_jdq.obj
COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE ..\bsp\bsp_jdq.c LARGE OPTIMIZE(8,SPEED) BROWSE INCDIR(..\bsp;..\app) DE
                    -BUG OBJECTEXTEND PRINT(.\Listings\bsp_jdq.lst) TABS(2) OBJECT(.\Objects\bsp_jdq.obj)

line level    source

   1          #include "bsp.h"
   2          bit force_jdq_on = 0;
   3          void bsp_jdq_init(void)
   4          {
   5   1        P2M2 = P2M2 & 0x0F | 0x80;//P2.5推挽输出 外部继电器控制管脚
   6   1        P5M0 = P5M0 & 0x0F | 0x80;//P5.1推挽输出，MOS管控制
   7   1        P3M2 = P3M2 & 0xF0 | 0x04;//P3.4带SMT输入 继电器常通管脚
   8   1        PITS1 |= 0x03;      //INT4启用双沿中断
   9   1        PINTE0 |= 0x10;     //允许INT4中断
  10   1        IE1 |=0x20;         //允许外部Ex2-7中断
  11   1        bsp_jdq_off();
  12   1      }
  13          void bsp_change_jdq(u8 act)
  14          {
  15   1        if(force_jdq_on == 0)
  16   1        {
  17   2          if(act == 0) bsp_jdq_off();
  18   2          else  bsp_jdq_on();
  19   2        }
  20   1      }
  21          void INT2_7_Rpt() interrupt INT2_7_VECTOR 
  22          {
  23   1        if(PINTF0&0x20)
  24   1        {
  25   2          PINTF0 &=~ 0x20;      //清除INT5中断标志位
  26   2          if(P3_5 == 0){
  27   3            force_jdq_on = 1;
  28   3            bsp_change_jdq(1);//立即开启继电器
  29   3          }else{
  30   3            force_jdq_on = 0;
  31   3          }
  32   2        }
  33   1      }


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


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