移植Test命令,验证成功

EJ EX 写工厂信息验证成功
This commit is contained in:
ranchuan
2023-10-12 18:43:17 +08:00
parent f0f36cf79a
commit 17b4ebf188
25 changed files with 2363 additions and 87 deletions

View File

@@ -17,7 +17,6 @@ static volatile CurrentSample_Range_eu buscurrent_range = Current_Max;
#endif
#define SMod_Read_Idle_Filter 90
// 根据反码电流改变
#define DMod_Read_Idle_Filter 50
volatile uint16_t* EW_Read_AD_V = FireBus_ADC_Buf;
@@ -746,7 +745,7 @@ static void DMod_SendBytesSelf(uint8_t* buf, uint8_t len, uint16_t pre,uint8_t r
EW_DIFF_MOD_L;
}
__enable_irq();
delay_ms(3);//保障芯片总线空闲监听退出
delay_ms(5);//保障芯片总线空闲监听退出
}
@@ -814,12 +813,11 @@ void DMod_ReadInspect_Data(uint16_t count,uint8_t* buf)
while(index < count)
{
data = *(buf+(index >> 3));
if( DMod_ReadBit(300) > 0)
if( DMod_ReadBit(400) > 0)
{
data |= (0x01 << (index & 0x07));
};
EW_DIFF_MOD_L
delay_us(800);
}
delay_us(1200);
*(buf+(index >> 3)) = data;
index++;
}