你的位置:
首页
>
IT圈
>
智能充电器源代码
2024年4月5日发(作者:昌凝雪)
/*==============================================================================
程序名称:
程序功能:
输入参数:
输出参数:
返回值 :
调用函数:
被调函数:
修改历史:
1:作者:
2:日期:
3:修改内容:
==============================================================================*/
#include //
#include //
/*
#include //头文件
#include//
#include//
#include//
*/
#include"TM1618.h"
#include"delay.h"
//#include"uart.h"
#include"common.h"
#include"tab_temp.h"
#include "work.h" //头文件
#include "smg.h" //头文件
#include "key.h" //头文件
#include "Countdown.h" //头文件
#include"stc12c5412adeerom.h"//
//
#define uchar unsigned char// 无符号字符型变量。
#define uint unsigned int// 无符号整型常量。
//
/*==============================================================================
程序名称:”Q 457315090”
程序功能:
输入参数:
输出参数:
返回值 :
调用函数:
被调函数:
修改历史:
1:作者:
2:日期:
3:修改内容:
==============================================================================*/
//
#define I_RH 5.1//
#define I_RL 0.36//
#define I_RH_RL 6.46//上
#define I_VD 0.0//
#define I_MCU_V 4.3//
#define I_MAX_PWM 255//
idata float I_V_OUT; //
idata uchar I_PWM; //
//
//
#define V_RH 0.94//
#define V_RL 4.7//
#define V_RH_RL 5.64//
#define V_VD 0.6//
#define V_MCU_V 4.3//
#define V_MAX_PWM 255//
/////////////////////////////////////////////////////////////////////
//#define Battery_voltage_36v 36//电池电压36V
//#define Battery_voltage_48v 48//电池电压48V
//#define Battery_voltage_60v 60//电池电压60V
//#define Battery_voltage_64v 64//电池电压60V
//#define Battery_voltage_72v 72//电池电压72V
//
idata float V_V_OUT; //
idata uchar V_PWM; //
idata uchar key_delay;//
idata uchar set_adj_mode;//
idata uchar Auto_delay_data;//
//
idata uchar G_one;//
idata uchar G_two;//
//
//sbit test11 = P3^3; //
//
//uchar constant_current;//恒流标志。
//uchar Constant_voltage;//恒压标志。
2024年4月5日发(作者:昌凝雪)
/*==============================================================================
程序名称:
程序功能:
输入参数:
输出参数:
返回值 :
调用函数:
被调函数:
修改历史:
1:作者:
2:日期:
3:修改内容:
==============================================================================*/
#include //
#include //
/*
#include //头文件
#include//
#include//
#include//
*/
#include"TM1618.h"
#include"delay.h"
//#include"uart.h"
#include"common.h"
#include"tab_temp.h"
#include "work.h" //头文件
#include "smg.h" //头文件
#include "key.h" //头文件
#include "Countdown.h" //头文件
#include"stc12c5412adeerom.h"//
//
#define uchar unsigned char// 无符号字符型变量。
#define uint unsigned int// 无符号整型常量。
//
/*==============================================================================
程序名称:”Q 457315090”
程序功能:
输入参数:
输出参数:
返回值 :
调用函数:
被调函数:
修改历史:
1:作者:
2:日期:
3:修改内容:
==============================================================================*/
//
#define I_RH 5.1//
#define I_RL 0.36//
#define I_RH_RL 6.46//上
#define I_VD 0.0//
#define I_MCU_V 4.3//
#define I_MAX_PWM 255//
idata float I_V_OUT; //
idata uchar I_PWM; //
//
//
#define V_RH 0.94//
#define V_RL 4.7//
#define V_RH_RL 5.64//
#define V_VD 0.6//
#define V_MCU_V 4.3//
#define V_MAX_PWM 255//
/////////////////////////////////////////////////////////////////////
//#define Battery_voltage_36v 36//电池电压36V
//#define Battery_voltage_48v 48//电池电压48V
//#define Battery_voltage_60v 60//电池电压60V
//#define Battery_voltage_64v 64//电池电压60V
//#define Battery_voltage_72v 72//电池电压72V
//
idata float V_V_OUT; //
idata uchar V_PWM; //
idata uchar key_delay;//
idata uchar set_adj_mode;//
idata uchar Auto_delay_data;//
//
idata uchar G_one;//
idata uchar G_two;//
//
//sbit test11 = P3^3; //
//
//uchar constant_current;//恒流标志。
//uchar Constant_voltage;//恒压标志。