合泰单片机模拟单总线收发数据程序 IC解密
单片机源程序如下:
- IC解密/******************************************************************************
- ; This file is a basic template for assembly code for a HT66FXXX. Copy *
- ; this file into your project directory and modify or add to it as needed. *
- ; *
- ; The HT66FXXX architecture allows two interrupt configurations. This *
- ; template code is written for priority interrupt levels and the IPEN bit *
- ; in the RCON register must be set to enable priority levels. If IPEN is *
- ; left in its default zero state, only the interrupt vector at 0x008 will *
- ; be used and the WREG_TEMP, BSR_TEMP and STATUS_TEMP variables will not *
- ; be needed. *
- ; *
- ; Refer to the HI-IDE3000 User's Guide for additional information on the *
- ; features of the assembler. *
- ; *
- ; Refer to the HT66F002 Data Sheet for additional *
- ; information on the architecture and instruction set. *
- ; *
- ;******************************************************************************
- ; Filename:******* *
- ; creation time:2018.01.10 *
- ; modification time: *
- ; Author: ********* *
- ; *
- ;******************************************************************************
- ; Files required: HT66F002.INC *
- ;******************************************************************************
- ; notes:
- ;*******************************************************************************
- ;
- ; Revision History:
- ;
- ;******************************************************************************
- ; list p=HT66F002;directive to define processor
- ;******************************************************************************
- ;Configuration bits
- ;HOLTEK has changed the format for defining the configuration bits, please
- ;see the .inc file for futher details on notation. Below are a few examples.
- ;******************************************************************************/
- #define _HT_66F003_
- #ifdef _HT_66F003_
- //#include <HT50F51.h>
- #include <HT66F003.h>
- #endif
- #include "initial.h"
- #include "Define.h"
- #include "function.h"
- #include "switch.h"
- #define _MAIN_
- #include "variable.h"
- #undef _MAIN_
- //list p=HT50F51;
- #pragma rambank0
- extern uchar8 rError_Temp;
- #pragma norambank
- void main()
- {
- pInit_Port_IO() ;
- ENABLE_ALL_INT_EA() ;
- Usb_Lianjie_OK_F = 0 ;
- while(!F_4S) // 上电所有灯亮4s,进入主程序
- {
- _clrwdt() ;
- if(F_1MS)
- {
- F_1MS = 0 ;
- pTimerAccoutDeal();
- PTest_Usb_Signal();
- }
- if(F_10MS)
- {
- F_10MS = 0 ;
- LED_ALL_ON();
- Key_Process();
- }
- }
- // F_Send_Data_Enable = 1 ;
- LED_ALL_OFF();
- PTM1_START() ;
- // Usb_Lianjie_OK_F = 1 ;
- if(!Usb_Lianjie_OK_F)
- {
- USB_IO_Output_Mode() ;
- }
- //***********************main program***********************************************************
- while(1)
- {
- _clrwdt() ;
- if(F_1MS)
- {
- F_1MS = 0 ;
- pTimerAccoutDeal();
- }
- if(F_10MS)
- {
- F_10MS = 0 ;
- if(!Usb_Lianjie_OK_F)
- {
- pLed_Indicator_Deal();
- }
- Key_Process ();
- }
- }
- }

芯片解密