C51 COMPILER V9.54   ISP                                                                   05/18/2022 18:40:38 PAGE 1   


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

line level    source

   1          /******************** (C) COPYRIGHT 2022 SONiX *******************************
   2          * COMPANY:  SONiX
   3          * DATE:   2022/04/27
   4          * IC:     SN8F5835
   5          *____________________________________________________________________________
   6          * REVISION    Date        Author    Description
   7          * 1.0         2021/04/27  Eden      1. First release
   8          *____________________________________________________________________________
   9          *****************************************************************************/
  10          /*_____ I N C L U D E S _________________________________*/
  11          #include <SN8F5835.h>
  12          #include "ISP.h"
  13          /*_____ F U N C T I O N S _______________________________*/
  14          
  15          /*_____ D E F I N I T I O N S ___________________________*/
  16          
  17          /*_____ D E C L A R A T I O N S _________________________*/
  18          
  19          /*_____ M A C R O S _____________________________________*/
  20          
  21          /**
  22           *  @Brief    isp_page_write: ISP Page Write Function
  23           *  @param    None
  24           *  @retval   None
  25           */
  26          void isp_page_write(uint8_t code* bRomAdress, uint8_t* bRamBufAddress)
  27          {
  28   1        PERAM =(uint8_t)  bRamBufAddress;   /*  Setting RAM Address */
  29   1        PEROM =(uint16_t) bRomAdress;       /*  Setting ROM Address */
  30   1        PAGE_WRITE_START();
  31   1      }
  32          
  33          /**
  34           *  @Brief    isp_byte_write: ISP Page Write Function
  35           *  @param    None
  36           *  @retval   None
  37           */
  38          void isp_byte_write(uint8_t code* bRomAdress, uint8_t bRamAddress)
  39          {
  40   1        uint8_t i, baryIspTemp[32];
  41   1        uint8_t code* ptrRom = (uint16_t*) ((uint16_t) bRomAdress & 0xFFC0);  
  42   1        
  43   1        for(i=0; i<32 ;i++)
  44   1        {
  45   2          baryIspTemp[i] = *(ptrRom+i);
  46   2        }
  47   1        
  48   1        baryIspTemp[ ((uint16_t) bRomAdress & 0x1F)] = bRamAddress;
  49   1        
  50   1        PERAM = baryIspTemp;              /*  Setting RAM Address */
  51   1        PEROM =(uint16_t) bRomAdress;     /*  Setting ROM Address */
  52   1        PAGE_WRITE_START();
  53   1      }
  54          
C51 COMPILER V9.54   ISP                                                                   05/18/2022 18:40:38 PAGE 2   

  55          


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


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