lpwr_check.c

来自「本代码以低成本的瑞萨单片机为主控制器」· C语言 代码 · 共 28 行

C
28
字号
#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 + =
减小字号Ctrl + -
显示快捷键?