You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
3.8 KiB

1 year ago
////////////////////////////////////////////////////////////////////////////
///@copyright Copyright (c) 2018, 传控科技 All rights reserved.
///-------------------------------------------------------------------------
/// @file bsp_drv.c
/// @brief bsp @ driver config
///-------------------------------------------------------------------------
/// @version 1.0
/// @author CC
/// @date 20180331
/// @note cc_AS_stc02
//////////////////////////////////////////////////////////////////////////////
#include "app_task_debug.h"
///#include "common.h"
#include "../bsp/bsp_config.h"
#include "msp_uart0.h"
#include "app_weight.h"
S_TASK_DEBUG _s_task_debug;
//=============================================
void L3_task_debug_init(void)
{
L1_task_init(&_s_task_debug.task);
L3_task_s_go(_s_task_debug,D_task_init);
}
#define D_task_ADC_CHx_DEBUG 0x53
void L3_task_debug(S_TASK_DEBUG *s)
{
TTSS_Task_init():
L2_task_go(D_task_ADC_CHx_DEBUG);
TTSS_Task_step(D_task_ADC_CHx_DEBUG):
if(ts_adc_samples[0].ok)
{ts_adc_samples[0].ok = 0;
L0_uart0_ushex(ts_adc_samples[0].out1);
L0_uart0_uc(0x09);
L0_uart0_ushex(ts_adc_samples[0].out2);
L0_uart0_uc(0x09);
L0_uart0_ushex(ts_adc_samples[0].ts_SAa.out4);
L0_uart0_0d0a();
}
//// L2_task_go_Tdelay(D_task_ADC_CHx_DEBUG,D_Tdelay_Msec(150)); //延时15ms
TTSS_Task_end()
}
/************
...
: STC8H3K48S2
: 7.4.1U
:
. ISP工作频率: 23.866MHz
. IRC振荡器的频率: 11.064MHz
. : 35.250KHz
. 使
. P3.2P3.3
.
. I/O口
.
. : 3.00 V
. ,
. : 256
.
. ,,
. ,EEPROM区一并擦除
. ,485
.
. : 1195 mV (: 1100~1300mV)
. : 202192
: STC8H3K48S2
: 7.4.1U
... [0.812"]
: 11.057MHz (-0.022%)
... [0.125"]
: 115200
... ! [0.656"]
: F74DC52602599C
... ! [3.796"]
... ! [0.016"]
:
. ISP工作频率: 23.866MHz
. IRC振荡器的频率: 11.057MHz
. : 35.250KHz
. 使
. P3.2P3.3
.
. I/O口
.
. : 3.00 V
. ,
. : 256
.
. ,,
. ,EEPROM区
. ,485
.
. : 1195 mV (: 1100~1300mV)
. : 202192
: F74DC52602599C
: STC8H3K48S2
: 7.4.1U
. : 11.059MHz
. : 11.057MHz
. : -0.022%
!(2022-01-08 10:36:46)
*************/