📄 lpwr_check.c
字号:
#include "sfr_r81b.h"
#include "global.h"
#include "iic.h"
uchar int0_temp[3] ;
void interrupt_int0_init(void)
{
inten = 0x01 ;
int0f = 0x01 ;
int0ic = 0x11 ;
pd4_5 = 0 ;
}
void interrupt_int0_lpwr(void)
{
//Write_EeprData(0xa6,TEST1,16,0x60 );
// asm("nop") ;
// asm("nop") ;
// pd1_2 = 1 ;
// p1_2 = 0 ;
int0_temp[0] = power_counter%256 ;
int0_temp[1] = power_counter/256 ;
data_add(int0_temp,2) ;
Write_eeprom_function(0xa0,int0_temp,3 ,save_pulse) ;
Write_eeprom_function(0xa2,int0_temp,3 ,save_pulse) ;
int0_temp[0] = jdq_xian;
int0_temp[1] = jdq_xian;
Write_eeprom_function(0xa0,int0_temp,2 ,jdq_save) ;
Write_eeprom_function(0xa2,int0_temp,2 ,jdq_save) ;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -