Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZhongTong-ZR5-A
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵康弘
ZhongTong-ZR5-A
Commits
50f9ae5a
Commit
50f9ae5a
authored
Sep 28, 2025
by
赵康弘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: MC33984初始化设定
parent
ba4f68a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
CAN_CH0_APP.c
GHS/App/CAN_APP/CAN_CH0_APP.c
+2
-2
MC33984EHFK.c
GHS/App/MC33984EHFK.c
+6
-0
PC_Control.c
GHS/App/PC_Control.c
+2
-2
No files found.
GHS/App/CAN_APP/CAN_CH0_APP.c
View file @
50f9ae5a
...
...
@@ -150,8 +150,8 @@ void Can_Set_Buff_18000001(uint8_t CopyData[])
CopyData
[
0
]
=
(
uint8_t
)(
ADC_U16
&
0xFFu
);
CopyData
[
1
]
=
(
uint8_t
)((
uint8_t
)(
ADC_U16
>>
8
)
&
0xFFu
);
/*U48电流*/
CopyData
[
2
]
=
(
uint8_t
)(
ADC_U
16
&
0xFFu
);
CopyData
[
3
]
=
(
uint8_t
)((
uint8_t
)(
ADC_U
16
>>
8
)
&
0xFFu
);
CopyData
[
2
]
=
(
uint8_t
)(
ADC_U
48
&
0xFFu
);
CopyData
[
3
]
=
(
uint8_t
)((
uint8_t
)(
ADC_U
48
>>
8
)
&
0xFFu
);
CopyData
[
4
]
=
0
;
CopyData
[
5
]
=
0
;
...
...
GHS/App/MC33984EHFK.c
View file @
50f9ae5a
...
...
@@ -22,12 +22,18 @@ void MC33984EHFK_Init(void)
/*3.过电流高/低选择*/
Sim_SPI_Master_0_Byte_Write
(
MC33984_SOCHLR_0
);
/*大电流100A,小电流7.5A*/
Sim_SPI_Master_0_Byte_Write
(
0x07
);
Sim_SPI_Master_0_Byte_Write
(
MC33984_SOCHLR_1
);
/*大电流100A,小电流7.5A*/
Sim_SPI_Master_0_Byte_Write
(
0x07
);
/*4.电流检测时间与开负载*/
Sim_SPI_Master_0_Byte_Write
(
MC33984_CDTOLR_0
);
/*禁用此检测*/
Sim_SPI_Master_0_Byte_Write
(
0x0c
);
Sim_SPI_Master_0_Byte_Write
(
MC33984_CDTOLR_1
);
/*禁用此检测*/
Sim_SPI_Master_0_Byte_Write
(
0x0c
);
/*5.直接输入控制*/
Sim_SPI_Master_0_Byte_Write
(
MC33984_DICR_0
);
/*使用外部控制,电流监测比例:1=1/41000,快速输出斜率*/
Sim_SPI_Master_0_Byte_Write
(
0x0c
);
Sim_SPI_Master_0_Byte_Write
(
MC33984_DICR_1
);
/*使用外部控制,电流监测比例:1=1/41000,快速输出斜率*/
Sim_SPI_Master_0_Byte_Write
(
0x0c
);
/*6.输出切换延迟*/
Sim_SPI_Master_0_Byte_Write
(
MC33984_OSDR
);
/*挑了个中间值,延时300ms*/
Sim_SPI_Master_0_Byte_Write
(
0x03
);
...
...
GHS/App/PC_Control.c
View file @
50f9ae5a
...
...
@@ -75,8 +75,8 @@ void PC_Control_U48(void)
{
/*3.过电流高/低选择*/
MC33984EHFK_CS1_Output_Low
();
Sim_SPI_Master_0_Byte_Write
(
MC33984_SOCHLR_
0
);
Sim_SPI_Master_0_Byte_Write
(
0x07
);
Sim_SPI_Master_0_Byte_Write
(
MC33984_SOCHLR_
1
);
Sim_SPI_Master_0_Byte_Write
(
U48_Overcurrent
);
MC33984EHFK_CS1_Output_High
();
U48_Overcurrent_Last
=
U48_Overcurrent
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment