Commit cdac3953 authored by 赵康弘's avatar 赵康弘

feat: U16控制流程已通

parent 92c5b596
......@@ -66,7 +66,7 @@
* E:\Git\中通\ZhongTong-ZR5-A\Config\Config292\generator\BSWMDT\R431_PORT_U2A8_BSWMDT.arxml
* E:\Git\中通\ZhongTong-ZR5-A\Config\Config292\stubs\Dem\xml\Dem_Port.arxml
* E:\Git\中通\ZhongTong-ZR5-A\Config\Config292\Translation.trxml
* GENERATED ON: 27 Sep 2025 - 11:58:57
* GENERATED ON: 27 Sep 2025 - 14:40:31
*/
......
......@@ -66,7 +66,7 @@
* E:\Git\中通\ZhongTong-ZR5-A\Config\Config292\generator\BSWMDT\R431_PORT_U2A8_BSWMDT.arxml
* E:\Git\中通\ZhongTong-ZR5-A\Config\Config292\stubs\Dem\xml\Dem_Port.arxml
* E:\Git\中通\ZhongTong-ZR5-A\Config\Config292\Translation.trxml
* GENERATED ON: 27 Sep 2025 - 11:58:57
* GENERATED ON: 27 Sep 2025 - 14:40:31
*/
......@@ -2375,7 +2375,7 @@ CONST(Port_Pin_Config, PORT_CONFIG_DATA) Port_GaaPinConfig[] =
/* Index: 96 - PortConfigSet_0_PortGroup21_PortPin4 */
{
/* usChangeable */
0x0000U,
0x0001U,
/* usPortType */
0x0001U,
......@@ -2398,7 +2398,7 @@ CONST(Port_Pin_Config, PORT_CONFIG_DATA) Port_GaaPinConfig[] =
/* Index: 97 - PortConfigSet_0_PortGroup21_PortPin5 */
{
/* usChangeable */
0x0000U,
0x0001U,
/* usPortType */
0x0001U,
......@@ -2421,7 +2421,7 @@ CONST(Port_Pin_Config, PORT_CONFIG_DATA) Port_GaaPinConfig[] =
/* Index: 98 - PortConfigSet_0_PortGroup21_PortPin6 */
{
/* usChangeable */
0x0000U,
0x0001U,
/* usPortType */
0x0001U,
......@@ -2444,7 +2444,7 @@ CONST(Port_Pin_Config, PORT_CONFIG_DATA) Port_GaaPinConfig[] =
/* Index: 99 - PortConfigSet_0_PortGroup21_PortPin7 */
{
/* usChangeable */
0x0000U,
0x0001U,
/* usPortType */
0x0001U,
......@@ -2467,7 +2467,7 @@ CONST(Port_Pin_Config, PORT_CONFIG_DATA) Port_GaaPinConfig[] =
/* Index: 100 - PortConfigSet_0_PortGroup22_PortPin0 */
{
/* usChangeable */
0x0000U,
0x0001U,
/* usPortType */
0x0001U,
......@@ -2490,7 +2490,7 @@ CONST(Port_Pin_Config, PORT_CONFIG_DATA) Port_GaaPinConfig[] =
/* Index: 101 - PortConfigSet_0_PortGroup22_PortPin1 */
{
/* usChangeable */
0x0000U,
0x0001U,
/* usPortType */
0x0001U,
......@@ -2536,7 +2536,7 @@ CONST(Port_Pin_Config, PORT_CONFIG_DATA) Port_GaaPinConfig[] =
/* Index: 103 - PortConfigSet_0_PortGroup22_PortPin3 */
{
/* usChangeable */
0x0000U,
0x0001U,
/* usPortType */
0x0001U,
......@@ -2559,7 +2559,7 @@ CONST(Port_Pin_Config, PORT_CONFIG_DATA) Port_GaaPinConfig[] =
/* Index: 104 - PortConfigSet_0_PortGroup22_PortPin4 */
{
/* usChangeable */
0x0000U,
0x0001U,
/* usPortType */
0x0001U,
......@@ -5300,7 +5300,7 @@ CONST(Port_Reg_Init, PORT_CONFIG_DATA) Port_GaaPortConfig[] =
0x0000U,
/* P */
0x0000U,
0x00B0U,
/* Reserve */
0x0000U,
......@@ -5320,7 +5320,7 @@ CONST(Port_Reg_Init, PORT_CONFIG_DATA) Port_GaaPortConfig[] =
/* Index: 0 - Register Value */
{
/* PMC */
0x001CU,
0x0004U,
/* PM */
0xFFFBU,
......@@ -5332,13 +5332,13 @@ CONST(Port_Reg_Init, PORT_CONFIG_DATA) Port_GaaPortConfig[] =
0x0000U,
/* PFC */
0x001CU,
0x0004U,
/* PFCE */
0x001CU,
0x0004U,
/* PFCAE */
0x0008U,
0x0000U,
/* Reserve */
0x0000U,
......@@ -5410,7 +5410,7 @@ CONST(Port_Reg_Init, PORT_CONFIG_DATA) Port_GaaPortConfig[] =
0x0000U,
/* P */
0x0010U,
0x001BU,
/* Reserve */
0x0000U,
......
......@@ -5,10 +5,10 @@
/*此文件用于上位机控制U16和U48*/
/*U16*/
void PC_Control_U16(void)
{
uint8_t state_23 = 1;
/*U16*/
void PC_Control_U16(void)
{
uint8_t state_24 = 1;
/*DIA_EN 引脚置为高电平*/
......@@ -29,18 +29,18 @@ void PC_Control_U16(void)
}
/*OUT24*/
if (state_24 == 1)
{
TPS2HB35_SetOutput3A_OUT24(1);
}
else if (state_24 == 0)
{
TPS2HB35_SetOutput3A_OUT24(0);
}
else
{
;
}
// if (state_24 == 1)
// {
// TPS2HB35_SetOutput3A_OUT24(1);
// }
// else if (state_24 == 0)
// {
// TPS2HB35_SetOutput3A_OUT24(0);
// }
// else
// {
// ;
// }
}
/*U48*/
......
......@@ -321,7 +321,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip1_1_Segment0.UINT8 != SGM4591Q_Chip1_1_Segment0_Last)
{
SGM4591Q_IIC2_Send(0xE8, 0x02, SGM4591Q_Chip1_1_Segment0.UINT8);
SGM4591Q_IIC1_Send(0xE8, 0x02, SGM4591Q_Chip1_1_Segment0.UINT8);
SGM4591Q_Chip1_1_Segment0_Last = SGM4591Q_Chip1_1_Segment0.UINT8;
}
}
......@@ -329,7 +329,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip1_1_Segment1.UINT8 != SGM4591Q_Chip1_1_Segment1_Last)
{
SGM4591Q_IIC2_Send(0xE8, 0x03, SGM4591Q_Chip1_1_Segment1.UINT8);
SGM4591Q_IIC1_Send(0xE8, 0x03, SGM4591Q_Chip1_1_Segment1.UINT8);
SGM4591Q_Chip1_1_Segment1_Last = SGM4591Q_Chip1_1_Segment1.UINT8;
}
}
......@@ -339,7 +339,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip1_2_Segment0.UINT8 != SGM4591Q_Chip1_2_Segment0_Last)
{
SGM4591Q_IIC2_Send(0xEC, 0x02, SGM4591Q_Chip1_2_Segment0.UINT8);
SGM4591Q_IIC1_Send(0xEC, 0x02, SGM4591Q_Chip1_2_Segment0.UINT8);
SGM4591Q_Chip1_2_Segment0_Last = SGM4591Q_Chip1_2_Segment0.UINT8;
}
}
......@@ -347,7 +347,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip1_2_Segment1.UINT8 != SGM4591Q_Chip1_2_Segment1_Last)
{
SGM4591Q_IIC2_Send(0xEC, 0x03, SGM4591Q_Chip1_2_Segment1.UINT8);
SGM4591Q_IIC1_Send(0xEC, 0x03, SGM4591Q_Chip1_2_Segment1.UINT8);
SGM4591Q_Chip1_2_Segment1_Last = SGM4591Q_Chip1_2_Segment1.UINT8;
}
}
......@@ -358,7 +358,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip1_3_Segment0.UINT8 != SGM4591Q_Chip1_3_Segment0_Last)
{
SGM4591Q_IIC2_Send(0xEA, 0x02, SGM4591Q_Chip1_3_Segment0.UINT8);
SGM4591Q_IIC1_Send(0xEA, 0x02, SGM4591Q_Chip1_3_Segment0.UINT8);
SGM4591Q_Chip1_3_Segment0_Last = SGM4591Q_Chip1_3_Segment0.UINT8;
}
}
......@@ -366,7 +366,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip1_3_Segment1.UINT8 != SGM4591Q_Chip1_3_Segment1_Last)
{
SGM4591Q_IIC2_Send(0xEA, 0x03, SGM4591Q_Chip1_3_Segment1.UINT8);
SGM4591Q_IIC1_Send(0xEA, 0x03, SGM4591Q_Chip1_3_Segment1.UINT8);
SGM4591Q_Chip1_3_Segment1_Last = SGM4591Q_Chip1_3_Segment1.UINT8;
}
}
......@@ -377,7 +377,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip1_4_Segment0.UINT8 != SGM4591Q_Chip1_4_Segment0_Last)
{
SGM4591Q_IIC2_Send(0xEE, 0x02, SGM4591Q_Chip1_4_Segment0.UINT8);
SGM4591Q_IIC1_Send(0xEE, 0x02, SGM4591Q_Chip1_4_Segment0.UINT8);
SGM4591Q_Chip1_4_Segment0_Last = SGM4591Q_Chip1_4_Segment0.UINT8;
}
}
......@@ -385,7 +385,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip1_4_Segment1.UINT8 != SGM4591Q_Chip1_4_Segment1_Last)
{
SGM4591Q_IIC2_Send(0xEE, 0x03, SGM4591Q_Chip1_4_Segment1.UINT8);
SGM4591Q_IIC1_Send(0xEE, 0x03, SGM4591Q_Chip1_4_Segment1.UINT8);
SGM4591Q_Chip1_4_Segment1_Last = SGM4591Q_Chip1_4_Segment1.UINT8;
}
}
......@@ -472,7 +472,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip3_1_Segment0.UINT8 != SGM4591Q_Chip3_1_Segment0_Last)
{
SGM4591Q_IIC2_Send(0xE8, 0x02, SGM4591Q_Chip3_1_Segment0.UINT8);
SGM4591Q_IIC3_Send(0xE8, 0x02, SGM4591Q_Chip3_1_Segment0.UINT8);
SGM4591Q_Chip3_1_Segment0_Last = SGM4591Q_Chip3_1_Segment0.UINT8;
}
}
......@@ -480,7 +480,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip3_1_Segment1.UINT8 != SGM4591Q_Chip3_1_Segment1_Last)
{
SGM4591Q_IIC2_Send(0xE8, 0x03, SGM4591Q_Chip3_1_Segment1.UINT8);
SGM4591Q_IIC3_Send(0xE8, 0x03, SGM4591Q_Chip3_1_Segment1.UINT8);
SGM4591Q_Chip3_1_Segment1_Last = SGM4591Q_Chip3_1_Segment1.UINT8;
}
}
......@@ -491,7 +491,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip3_2_Segment0.UINT8 != SGM4591Q_Chip3_2_Segment0_Last)
{
SGM4591Q_IIC2_Send(0xEC, 0x02, SGM4591Q_Chip3_2_Segment0.UINT8);
SGM4591Q_IIC3_Send(0xEC, 0x02, SGM4591Q_Chip3_2_Segment0.UINT8);
SGM4591Q_Chip3_2_Segment0_Last = SGM4591Q_Chip3_2_Segment0.UINT8;
}
}
......@@ -499,7 +499,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip3_2_Segment1.UINT8 != SGM4591Q_Chip3_2_Segment1_Last)
{
SGM4591Q_IIC2_Send(0xEC, 0x03, SGM4591Q_Chip3_2_Segment1.UINT8);
SGM4591Q_IIC3_Send(0xEC, 0x03, SGM4591Q_Chip3_2_Segment1.UINT8);
SGM4591Q_Chip3_2_Segment1_Last = SGM4591Q_Chip3_2_Segment1.UINT8;
}
}
......@@ -510,7 +510,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip3_3_Segment0.UINT8 != SGM4591Q_Chip3_3_Segment0_Last)
{
SGM4591Q_IIC2_Send(0xEA, 0x02, SGM4591Q_Chip3_3_Segment0.UINT8);
SGM4591Q_IIC3_Send(0xEA, 0x02, SGM4591Q_Chip3_3_Segment0.UINT8);
SGM4591Q_Chip3_3_Segment0_Last = SGM4591Q_Chip3_3_Segment0.UINT8;
}
}
......@@ -518,7 +518,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip3_3_Segment1.UINT8 != SGM4591Q_Chip3_3_Segment1_Last)
{
SGM4591Q_IIC2_Send(0xEA, 0x03, SGM4591Q_Chip3_3_Segment1.UINT8);
SGM4591Q_IIC3_Send(0xEA, 0x03, SGM4591Q_Chip3_3_Segment1.UINT8);
SGM4591Q_Chip3_3_Segment1_Last = SGM4591Q_Chip3_3_Segment1.UINT8;
}
}
......@@ -529,7 +529,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip1_4_Segment0.UINT8 != SGM4591Q_Chip1_4_Segment0_Last)
{
SGM4591Q_IIC2_Send(0xEE, 0x02, SGM4591Q_Chip1_4_Segment0.UINT8);
SGM4591Q_IIC3_Send(0xEE, 0x02, SGM4591Q_Chip1_4_Segment0.UINT8);
SGM4591Q_Chip1_4_Segment0_Last = SGM4591Q_Chip1_4_Segment0.UINT8;
}
}
......@@ -537,7 +537,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip1_4_Segment1.UINT8 != SGM4591Q_Chip1_4_Segment1_Last)
{
SGM4591Q_IIC2_Send(0xEE, 0x03, SGM4591Q_Chip1_4_Segment1.UINT8);
SGM4591Q_IIC3_Send(0xEE, 0x03, SGM4591Q_Chip1_4_Segment1.UINT8);
SGM4591Q_Chip1_4_Segment1_Last = SGM4591Q_Chip1_4_Segment1.UINT8;
}
}
......@@ -548,7 +548,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip4_1_Segment0.UINT8 != SGM4591Q_Chip4_1_Segment0_Last)
{
SGM4591Q_IIC2_Send(0xE8, 0x02, SGM4591Q_Chip4_1_Segment0.UINT8);
SGM4591Q_IIC4_Send(0xE8, 0x02, SGM4591Q_Chip4_1_Segment0.UINT8);
SGM4591Q_Chip4_1_Segment0_Last = SGM4591Q_Chip4_1_Segment0.UINT8;
}
}
......@@ -556,7 +556,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip4_1_Segment1.UINT8 != SGM4591Q_Chip4_1_Segment1_Last)
{
SGM4591Q_IIC2_Send(0xE8, 0x03, SGM4591Q_Chip4_1_Segment1.UINT8);
SGM4591Q_IIC4_Send(0xE8, 0x03, SGM4591Q_Chip4_1_Segment1.UINT8);
SGM4591Q_Chip4_1_Segment1_Last = SGM4591Q_Chip4_1_Segment1.UINT8;
}
}
......@@ -567,7 +567,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip4_2_Segment0.UINT8 != SGM4591Q_Chip4_2_Segment0_Last)
{
SGM4591Q_IIC2_Send(0xEC, 0x02, SGM4591Q_Chip4_2_Segment0.UINT8);
SGM4591Q_IIC4_Send(0xEC, 0x02, SGM4591Q_Chip4_2_Segment0.UINT8);
SGM4591Q_Chip4_2_Segment0_Last = SGM4591Q_Chip4_2_Segment0.UINT8;
}
}
......@@ -575,7 +575,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip4_2_Segment1.UINT8 != SGM4591Q_Chip4_2_Segment1_Last)
{
SGM4591Q_IIC2_Send(0xEC, 0x03, SGM4591Q_Chip4_2_Segment1.UINT8);
SGM4591Q_IIC4_Send(0xEC, 0x03, SGM4591Q_Chip4_2_Segment1.UINT8);
SGM4591Q_Chip4_2_Segment1_Last = SGM4591Q_Chip4_2_Segment1.UINT8;
}
}
......@@ -586,7 +586,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip4_3_Segment0.UINT8 != SGM4591Q_Chip4_3_Segment0_Last)
{
SGM4591Q_IIC2_Send(0xEA, 0x02, SGM4591Q_Chip4_3_Segment0.UINT8);
SGM4591Q_IIC4_Send(0xEA, 0x02, SGM4591Q_Chip4_3_Segment0.UINT8);
SGM4591Q_Chip4_3_Segment0_Last = SGM4591Q_Chip4_3_Segment0.UINT8;
}
}
......@@ -594,7 +594,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip4_3_Segment1.UINT8 != SGM4591Q_Chip4_3_Segment1_Last)
{
SGM4591Q_IIC2_Send(0xEA, 0x03, SGM4591Q_Chip4_3_Segment1.UINT8);
SGM4591Q_IIC4_Send(0xEA, 0x03, SGM4591Q_Chip4_3_Segment1.UINT8);
SGM4591Q_Chip4_3_Segment1_Last = SGM4591Q_Chip4_3_Segment1.UINT8;
}
}
......@@ -605,7 +605,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip1_4_Segment0.UINT8 != SGM4591Q_Chip1_4_Segment0_Last)
{
SGM4591Q_IIC2_Send(0xEE, 0x02, SGM4591Q_Chip1_4_Segment0.UINT8);
SGM4591Q_IIC4_Send(0xEE, 0x02, SGM4591Q_Chip1_4_Segment0.UINT8);
SGM4591Q_Chip1_4_Segment0_Last = SGM4591Q_Chip1_4_Segment0.UINT8;
}
}
......@@ -613,7 +613,7 @@ void SGM4591Q_Global_Control(uint8_t Chip, uint8_t Segment)
{
if (SGM4591Q_Chip1_4_Segment1.UINT8 != SGM4591Q_Chip1_4_Segment1_Last)
{
SGM4591Q_IIC2_Send(0xEE, 0x03, SGM4591Q_Chip1_4_Segment1.UINT8);
SGM4591Q_IIC4_Send(0xEE, 0x03, SGM4591Q_Chip1_4_Segment1.UINT8);
SGM4591Q_Chip1_4_Segment1_Last = SGM4591Q_Chip1_4_Segment1.UINT8;
}
}
......
......@@ -108,7 +108,7 @@ void Sys_100ms_Tasks(void)
ADC_4=g_u16ADCValue[i];
}
}
SGM4591Q_Control();
// SGM4591Q_Control();
// Port_SetPinDirection(Port_Config_PortGroup4_PortPin8, PORT_PIN_OUT);
Dio_WriteChannel(DioConf_DioChannel_P04_08, STD_LOW);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment